Jump to content

[SA] Changing the water cannon


Danikov

Recommended Posts

I want to edit the S.W.A.T.'s water cannon to a cannon that shoots bullets,sort of make it shoot what the Police Mavericks shoot,so what I wanted to ask is how can I disable the water cannon? and how can I make it shoot what the police mavericks shoot?

Link to comment
Share on other sites

  • 5 weeks later...

How:

 

1. Modify the particle FX file for that type of water spout. FYI: If the default is used in other instances/parts of the game, you'll see the change there too. (Ex. Fire truck)

 

2. Then look at the code for attaching guns on vehicles and duplicate it in your code for the SWAT vehicle.

  • Like 1
Link to comment
Share on other sites

How:

 

1. Modify the particle FX file for that type of water spout. FYI: If the default is used in other instances/parts of the game, you'll see the change there too. (Ex. Fire truck)

 

2. Then look at the code for attaching guns on vehicles and duplicate it in your code for the SWAT vehicle.

 

Obviousley,I meant how can it be done through coding,no need for any particle fx editing...otherwise it wouldn't be in this section...

Link to comment
Share on other sites

The address that controls the water gun should be ( i guess ) somewhere in the struct pool of the SWAT vehicle , 0@ being the SWAT vehicle :

0A97: 1@ = car 0@ struct 
0AD3: string 2@v format "0x%X" 1@
0ACA: show_text_box 2@v

The Struct beginning address will be displayed , write it down , launch CheatEngine , select the gta_sa.exe process , click memory view , left click (> go to address , enter that address you wrote down , now you should see different datas concerning that Swat vehicle , explore till you find the address that is related to the Water Gun


Sorry i cant help much cz i don't have GTA SA right now , that procedure that i just showed you is the same i follow for the documentation of new addresses

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
  • 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.