Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

[SA|QUES]any opcodes using for shoot within animation ?


GtaHellmodded
 Share

Recommended Posts

GtaHellmodded

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

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

GtaHellmodded

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 :yawn:

Link to comment
Share on other sites

You need to call CAEPedWeaponAudioEntity::AddAudioEvent()

Link to comment
Share on other sites

GtaHellmodded

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 by GtaHellmodded
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.