ilir Posted January 20, 2009 Share Posted January 20, 2009 Does anyone know about aiming of weapon like Call of Duty 4? How to change aiming? To make like this in photo: Link to comment Share on other sites More sharing options...
JAB HacksouL Posted January 20, 2009 Share Posted January 20, 2009 Does anyone know about aiming of weapon like Call of Duty 4?How to change aiming? To make like this in photo:... When you right click the mouse [PC default] the weapon will aim but I assume you mean you want the 1st person shooter view like a sniper, bazooka, etc..? That could be accomplished by a CLEO script; but it would require some research or you can look to see if such a script exists. Most likely it would involve the codes: 0457: player $PLAYER_CHAR aiming_at_actor 101@ 0458: player $PLAYER_CHAR aiming_at_object $1754[0] or one that works on that basis. I might know someone to ask and get back in a day or two. JAB Link to comment Share on other sites More sharing options...
ilir Posted January 20, 2009 Author Share Posted January 20, 2009 When you right click the mouse [PC default] the weapon will aim but I assume you mean you want the 1st person shooter view like a sniper, bazooka, etc..? That could be accomplished by a CLEO script; but it would require some research or you can look to see if such a script exists. Most likely it would involve the codes: 0457: player $PLAYER_CHAR aiming_at_actor 101@ 0458: player $PLAYER_CHAR aiming_at_object $1754[0] or one that works on that basis. I might know someone to ask and get back in a day or two. JAB And where to put these codes? In which line on main.scm? Link to comment Share on other sites More sharing options...
JAB HacksouL Posted January 22, 2009 Share Posted January 22, 2009 And where to put these codes? In which line on main.scm? Ok here are two solutions for you to try. No Cleo needed insert this into the main loop of the main.scm. IF you decompiled using the Sanny Builder you might try looking around 1000 lines down for this ":MAIN_4054" label any place below this label would be good. :Aim_Cam if 80DF: not actor $PLAYER_ACTOR driving //Make sure the player is on foot jf @endofcam //If the camera mode is active and the player is not aiming turn it off 00D6: if and $Aim_Cam == 1 80E1: not player 0 pressed_key 6 then jump @camoff end //if the camera mode is not active and the player is aiming turn if on 00D6: if and $Aim_Cam == 0 00E1: player 0 pressed_key 6 jf @endofcam //camera on 0159: set_camera_on_ped $PLAYER_ACTOR 45 2 $Aim_Cam = 1 0002: jump @endofcam //camera off :camoff wait 0 02EB: restore_camera_with_jumpcut 0925: restore_camera_to_user_defined $Aim_Cam = 0 :endofcam This will result in a shift to 1st person mode when holding the aim button. The code above is based on a basic translation of the Cleo mod by goin-god's code here and posted below. // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007 {$VERSION 3.1.0027} {$CLEO .cs} //-------------MAIN--------------- 0000: NOP 0A95: enable_thread_saving :FPS_19 thread 'FPS' wait 0 if Player.Defined($PLAYER_CHAR) jf @FPS_19 if not Actor.Driving($PLAYER_ACTOR) jf @FPS_19 if 80E1: not player 0 pressed_key 14 jf @FPS_160 if 80E1: not player 0 pressed_key 19 jf @FPS_183 if 00E1: player 0 pressed_key 13 jf @FPS_19 wait 250 if Player.Defined($PLAYER_CHAR) jf @FPS_19 if 00E1: player 0 pressed_key 13 jf @FPS_19 Camera.OnPed($PLAYER_ACTOR, 45, 2) jump @FPS_19 :FPS_160 wait 0 05BC: AS_actor $PLAYER_ACTOR jump 1 wait 700 jump @FPS_19 :FPS_183 wait 0 Camera.Restore_WithJumpCut 0925: restore_camera_to_user_defined jump @FPS_19 goin-god's mod above use the camera view key "V" to change to 1st person mode then look behind button (middle mouse) to go back to 3rd person. JAB Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now