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

Speed of rockets?


antimonycat
 Share

Recommended Posts

antimonycat

Is it possible to change the velocities of the rockets in SA (the RPG weapons and the ones on the Hydra/Hunter) or is it hardcoded?

Link to comment
Share on other sites

I use GTASA ultimate editor and when editing specific weapon stats there is a field called "speed". According to the readme file this affects projectile velocity. I haven't experimented with it yet (and do not plan to), but this readme suggests that you can.

 

 

If I was going to experiment, this is what i would do

 

The data can be found in folder:

Rockstar Games\GTA San Andreas\data

filename:

weapon.dat

 

rocketlauncher properties are as follows

$ RLAUNCHER PROJECTILE 50.0 55.0 359 -1 7 rocket 1 75 0.42 0.0 0.05 1 0 1.0 1.0 11 19 12 (14) 99 15 99 48214

 

I have bracketed the relevant number to highlight it - the brackets do not belong in the line.

 

The number 14 represents the "speed" stat of the rocket launcher. I have noticed that other weapons eg 9mm have speed stats of about 6. If you want to change the speed of the rockets i suggest you alter this number to a higher/lower one.

 

Good luck, and let us know what happens if you try this.

Link to comment
Share on other sites

I use GTASA ultimate editor and when editing specific weapon stats there is a field called "speed". According to the readme file this affects projectile velocity. I haven't experimented with it yet (and do not plan to), but this readme suggests that you can.

 

 

If I was going to experiment, this is what i would do

 

The data can be found in folder:

Rockstar Games\GTA San Andreas\data

filename:

weapon.dat

 

rocketlauncher properties are as follows

$ RLAUNCHER PROJECTILE 50.0 55.0 359 -1 7 rocket 1 75 0.42 0.0 0.05 1 0 1.0 1.0 11 19 12 (14) 99 15 99 48214

 

I have bracketed the relevant number to highlight it - the brackets do not belong in the line.

 

The number 14 represents the "speed" stat of the rocket launcher. I have noticed that other weapons eg 9mm have speed stats of about 6. If you want to change the speed of the rockets i suggest you alter this number to a higher/lower one.

 

Good luck, and let us know what happens if you try this.

I think that is just the speed for a part of the animation as i have been trying to up rocket speed for a long time to no avail.

I am sure it is exe controlled.

Link to comment
Share on other sites

Ok I went ahead and tested my theory. Turns out that changing the "speed" data does not affect the speed of the projectile.

 

Guess you can't always trust the readme file. sad.gif

 

Here's what it says

 

"Speed

This is the speed that the weapons ammo moves at."

 

Link to comment
Share on other sites

Ok I went ahead and tested my theory. Turns out that changing the "speed" data does not affect the speed of the projectile.

 

Guess you can't always trust the readme file. sad.gif

 

Here's what it says

 

"Speed

This is the speed that the weapons ammo moves at."

Yeah, thought so. Been trying to increase thier speed since I started using the SCM hook to remove the aircraft speed limit, thye missiles can't keep up and make dogfighting pointless.

Link to comment
Share on other sites

You should be able to adjust the speed by modifying a constant float within the memory, simply breakpoint the rocket structure and look at where the x/y/z values are being read and written to.

 

(I took the liberty of doing it for you:)

 

X Values:

 

0x56A4BC (Read)

0x15611B7 (Read)

0x739826 (Write)

 

So this is the part where it writes the x/y/z values:

 

 

.text:00739826 mov    [ebx], eax                      ; RocketX

.text:00739828 mov    ecx, [esi+4]

.text:0073982B mov    eax, [esp+144h+var_C8]

.text:0073982F mov    [ebx+4], ecx                    ; RocketY

.text:00739832 mov    edx, [esi+8]

.text:00739835 mov    [ebx+8], edx                    ; RocketZ

 

EDIT:

 

OK this is the value you need to change:

 

 

.text:00738FAD fmul    ds:Gravity

 

If you NOP this line (6 bytes) the rocket flys at virtually unlimited speed tounge.gif, but then again you can't just modify the whole gravity float to just get a decent rocket velocity can you? Well I can show you a way around that, I'll just write up some code now...

 

 

float* fNewGrav = (float*) malloc(sizeof(float));*fNewGrav = 0.008f; // Modify this to change the missile velocityDWORD dwPtr = (DWORD) fNewGrav;char* cBytes = (char*)&fNewGrav;BYTE bChange[] = { cBytes[0], cBytes[1], cBytes[2], cBytes[3] };Patch(0x738FAF,bChange);

 

 

Very interesting to see the missiles fly at really fast and slow speeds

Edited by Sacky
Link to comment
Share on other sites

  • 4 years later...

Sorry for the MASSIVE bump, but I find this thread very interesting. Is there a way to apply Sacky's script? Thanks.

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.