GtaHellmodded Posted October 5, 2014 Share Posted October 5, 2014 you know the "blind firing" feature from gta iv or shootdodge from max payne right ?? i want making them for shooting within any animation like above but i don't know any opcode that allow us shooting when in animation Link to comment Share on other sites More sharing options...
miclin Posted October 5, 2014 Share Posted October 5, 2014 a little hint for you 06BC: create_M4_shoot_from 2193.268 -1165.441 1031.124 target $TEMPVAR_X_COORD $TEMPVAR_Y_COORD $TEMPVAR_Z_COORD energy 1 Link to comment Share on other sites More sharing options...
GtaHellmodded Posted October 6, 2014 Author Share Posted October 6, 2014 yeah, i using it but it not played a gun sound,because when in custom animation player can't shoot, so how i can do now ?? and other problem is bullet not accurate with crosshairs Link to comment Share on other sites More sharing options...
DK22Pac Posted October 6, 2014 Share Posted October 6, 2014 You need to call CAEPedWeaponAudioEntity::AddAudioEvent() Link to comment Share on other sites More sharing options...
GtaHellmodded Posted October 6, 2014 Author Share Posted October 6, 2014 (edited) thanks _DK, // This file was decompiled using SASCM.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007{$CLEO .cs}//-------------MAIN---------------0000: NOP :NONAME_20819: [email protected] = actor $PLAYER_ACTOR distance_from_ground 0470: [email protected] = actor $PLAYER_ACTOR current_weapon 0A96: [email protected] = actor $PLAYER_ACTOR struct wait 0 if 02D8: actor $PLAYER_ACTOR current_weapon == 22 jf @NONAME_70 [email protected] = 17 [email protected] = 200 [email protected] = 15 :NONAME_70if or02D8: actor $PLAYER_ACTOR current_weapon == 23 02D8: actor $PLAYER_ACTOR current_weapon == 24 jf @NONAME_117 [email protected] = 7 [email protected] = 400 [email protected] = 20 :NONAME_117if or02D8: actor $PLAYER_ACTOR current_weapon == 28 02D8: actor $PLAYER_ACTOR current_weapon == 32 02D8: actor $PLAYER_ACTOR current_weapon == 29 jf @NONAME_170 [email protected] = 30 [email protected] = 70 [email protected] = 15 :NONAME_170if or02D8: actor $PLAYER_ACTOR current_weapon == 30 02D8: actor $PLAYER_ACTOR current_weapon == 31 02D8: actor $PLAYER_ACTOR current_weapon == 38 jf @NONAME_223 [email protected] = 50 [email protected] = 50 [email protected] = 20 :NONAME_223if or02D8: actor $PLAYER_ACTOR current_weapon == 33 02D8: actor $PLAYER_ACTOR current_weapon == 34 jf @NONAME_270 [email protected] = 50 [email protected] = 700 [email protected] = 25 :NONAME_270if 02D8: actor $PLAYER_ACTOR current_weapon == 25 jf @NONAME_295 [email protected] = 1 :NONAME_295if 02D8: actor $PLAYER_ACTOR current_weapon == 26 jf @NONAME_320 [email protected] = 2 :NONAME_320if 02D8: actor $PLAYER_ACTOR current_weapon == 27 jf @NONAME_345 [email protected] = 7 :NONAME_345if and [email protected] >= 21 34 >= [email protected] 8A0C: not player $PLAYER_CHAR on_jetpack not Actor.Driving($PLAYER_ACTOR)84C8: not actor $PLAYER_ACTOR driving_flying_vehicle [email protected] > 0.2 00E1: player 0 pressed_key 17 801D: not [email protected] > [email protected] // (int) jf @NONAME_1238 if or [email protected] == 38 34 >= [email protected] jf @NONAME_1238 if or02D8: actor $PLAYER_ACTOR current_weapon == 25 02D8: actor $PLAYER_ACTOR current_weapon == 26 02D8: actor $PLAYER_ACTOR current_weapon == 27 jf @NONAME_972 0992: set_player $PLAYER_CHAR weapons_scrollable 0 [email protected] = 300 [email protected] = 20 wait [email protected] [email protected] += 1 0AB1: call_scm_func @NONAME_1300 5 $PLAYER_ACTOR 26 0.0 0.0 0.0 [email protected] [email protected] [email protected] 0AB1: call_scm_func @NONAME_1300 5 $PLAYER_ACTOR 26 10.0 -20.5 0.0 [email protected] [email protected] [email protected] 06BC: create_M4_shoot_from [email protected] [email protected] [email protected] target [email protected] [email protected] [email protected] energy [email protected] 0AB1: call_scm_func @NONAME_1300 5 $PLAYER_ACTOR 26 10.0 -20.5 -0.3 [email protected] [email protected] [email protected] 06BC: create_M4_shoot_from [email protected] [email protected] [email protected] target [email protected] [email protected] [email protected] energy [email protected] 0AB1: call_scm_func @NONAME_1300 5 $PLAYER_ACTOR 26 10.0 -20.5 0.3 [email protected] [email protected] [email protected] 06BC: create_M4_shoot_from [email protected] [email protected] [email protected] target [email protected] [email protected] [email protected] energy [email protected] 0AB1: call_scm_func @NONAME_1300 5 $PLAYER_ACTOR 26 10.3 -20.5 -0.3 [email protected] [email protected] [email protected] 06BC: create_M4_shoot_from [email protected] [email protected] [email protected] target [email protected] [email protected] [email protected] energy [email protected] 0AB1: call_scm_func @NONAME_1300 5 $PLAYER_ACTOR 26 10.3 -20.5 0.3 [email protected] [email protected] [email protected] 06BC: create_M4_shoot_from [email protected] [email protected] [email protected] target [email protected] [email protected] [email protected] energy [email protected] 0AB1: call_scm_func @NONAME_1300 5 $PLAYER_ACTOR 26 [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] 0AA6: call_method 6157120 struct [email protected] num_params 2 pop 0 0 250 [email protected] += 916 0AA6: call_method 5138928 struct [email protected] num_params 1 pop 0 145 0470: [email protected] = actor $PLAYER_ACTOR current_weapon 041A: [email protected] = actor $PLAYER_ACTOR weapon [email protected] ammo [email protected] -= 1 017B: set_actor $PLAYER_ACTOR weapon [email protected] ammo_to [email protected] jump @NONAME_1238 :NONAME_9720992: set_player $PLAYER_CHAR weapons_scrollable 0 wait [email protected] [email protected] += 1 [email protected] = 0.1 [email protected] = -0.15 [email protected] = 0.0 0AB1: call_scm_func @NONAME_1300 5 $PLAYER_ACTOR 26 0.0 0.0 0.0 [email protected] [email protected] [email protected] 0AB1: call_scm_func @NONAME_1300 5 $PLAYER_ACTOR 26 10.0 -20.5 0.0 [email protected] [email protected] [email protected] 06BC: create_M4_shoot_from [email protected] [email protected] [email protected] target [email protected] [email protected] [email protected] energy [email protected] 0AB1: call_scm_func @NONAME_1300 5 $PLAYER_ACTOR 26 [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] 0AA6: call_method 6157120 struct [email protected] num_params 2 pop 0 0 250 [email protected] += 916 0AA6: call_method 5138928 struct [email protected] num_params 1 pop 0 145 0470: [email protected] = actor $PLAYER_ACTOR current_weapon 041A: [email protected] = actor $PLAYER_ACTOR weapon [email protected] ammo [email protected] -= 1 017B: set_actor $PLAYER_ACTOR weapon [email protected] ammo_to [email protected] :NONAME_1238if and [email protected] > 0.2 8818: not actor $PLAYER_ACTOR in_air 8A0C: not player $PLAYER_CHAR on_jetpack not Actor.Driving($PLAYER_ACTOR)84C8: not actor $PLAYER_ACTOR driving_flying_vehicle jf @NONAME_1293 [email protected] = 1 0992: set_player $PLAYER_CHAR weapons_scrollable 1 :NONAME_1293jump @NONAME_2 :NONAME_13000A96: [email protected] = actor [email protected] struct 0AA8: call_function_method 5450528 struct [email protected] num_params 0 pop 0 [email protected] [email protected] += 24 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 0AA7: call_function 7555648 num_params 1 pop 1 [email protected] [email protected] 0AA7: call_function 8147360 num_params 2 pop 2 [email protected] [email protected] [email protected] [email protected] += 8 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] *= 64 005A: [email protected] += [email protected] // (int) 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AA7: call_function 5566192 num_params 4 pop 4 [email protected] [email protected] 1 [email protected] [email protected] 0AB2: ret 3 [email protected] [email protected] [email protected] and here a script allow we shoot within animation but it make player hurt and don't accurate shooting with crosshair aiming,anyone can fix it ?? Edited October 6, 2014 by GtaHellmodded Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now