Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. DLC
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
      7. The Diamond Casino Heist
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

Opius

GTA:SA Opcodes

Recommended Posts

mbell

Reduce the resolution at which you're running the game. If your game is at 1024x768 and so is the screen, you'll get a window covering the entire screen.

Share this post


Link to post
Share on other sites
DaEllum67

I've found what 081A does.

 

It allows you to set a actor's weapon animations. I know 2 is hitman, 1 is normal, and using 0 makes an actor use unskilled animations for weapons.

 

Usage: $actorid, $int

Share this post


Link to post
Share on other sites
C06alt

Where

 

 

075F: $9542

 

 

Is used in external script Ammu (Ammunation), It unlocks all weapons for purchase.

 

Setting it to other numbers With

 

 

0004: $9542 =  (15 to 1)

 

 

Will unlock the various levels up to All weapons.

 

 

 

09E6:  1

 

 

Makes houses enterable as in the burglar missions

0 closes the houses entrance again.

Edited by C06alt

Share this post


Link to post
Share on other sites
mbell

 

081C: draw_text_outline $i1  $i2  $i3  $i4  $i5 

 

Sets the parameters for the outline drawn any any future 'draw_text' commands. Parameters as follows:

1 (int) = Size of outline (pixels?)

2 (int) = Outline colour (red)

3 (int) = Outline colour (blue)

4 (int) = Outline colour (green)

5 (int) = Outline alpha

 

A closely related opcode is 060D:

 

060D: draw_text_shadow $offset $R $G $B $alpha

 

This controls the drop-shadow for text created with 'draw_text'. The offset controls the distance down and to the right at which the shadow is placed (probably in pixels). Negative offsets make the shadow go up and to the left. The remaining params control the color/alpha of the shadow.

 

EDIT: In case this wasn't already clear, an offset of 0 turns off the shadow.

Edited by mbell

Share this post


Link to post
Share on other sites
spaceeinstein

0707: scene_skip_to £LABEL

Skips a scene in the game is you press a key to skip a scene. That label always has opcode 0701. So I assumed that 0701 is

0701: end_scene_skip

Edited by spaceeinstein

Share this post


Link to post
Share on other sites
Opius

ANY key?

 

Because that's awesome.

Share this post


Link to post
Share on other sites
spaceeinstein
Not any key. Keys like Return, Enter, Space, Shift, etc. Keys that skips a cutscene. I found an opcode that controls camera modes but I'm on another computer right now.

Share this post


Link to post
Share on other sites
demonj0e

Great find,

Is there a way to controll a camera view so like make a security cam maybe

Set a cam location and then be able to move the cam up and down and left and right a bit

Share this post


Link to post
Share on other sites
BBumper
Great find,

Is there a way to controll a camera view so like make a security cam maybe

Set a cam location and then be able to move the cam up and down and left and right a bit

You can do it on the cranes I tried looking into the mission code but its a little too complicated for me to figure out.

Share this post


Link to post
Share on other sites
demonj0e
thnx ill look into that tomoz time for sleeping now sleepy.gifsleepy.gif

Share this post


Link to post
Share on other sites
spaceeinstein

09AD: vehicle_camera_mode 0

0 = first person

1 = close camera

2 = default camera

3 = far camera

4 = cinematic camera

Edited by spaceeinstein

Share this post


Link to post
Share on other sites
GodGell
09AD: camera_mode 0

0 = first person

1 = close camera

2 = default camera

3 = far camera

4 = cinematic camera

wow, there's first person mode in SA?

Share this post


Link to post
Share on other sites
spaceeinstein
It's for vehicles. Sorry for misleading you.

Share this post


Link to post
Share on other sites
demonj0e

would it be possible to change the train cams

i hate the cinematic camera

Share this post


Link to post
Share on other sites
GodGell
It's for vehicles. Sorry for misleading you.

oh, 'k then.. like the other guy said, is it possible to change the camera mode while in a train? cause the cinematic camera really ruins the fun.

Share this post


Link to post
Share on other sites
Quadropheniac90

What controls the access to the cities? I have the following as a continuous loop:

 

 

0629: change_stat  181 (islands unlocked) to  4 ; integer see statdisp.dat0652: $ISLANDS_UNLOCKED = stat  181 (islands unlocked) ; integer07A8:  009E4:  00A24:  1

 

 

The first two lines I thought made the other 2 cities accessible. The last three clear the wanted level at Area 69, the military boat, and another location. However, the islands are not accessible, and if they are not accessible, I cannot test the last three, because I will allways have a wanted level of 4 stars. confused.gif Can someone help me, I also searched for the minimum wanted level of 4, wanted level of 4, maximum wanted level of 4, none of them giving any results.

Share this post


Link to post
Share on other sites
Y_Less
Check Craigs opened up mod, IIRC, hes commented all the modified code so you can see whats he's done to open it all up.

Share this post


Link to post
Share on other sites
spaceeinstein

If you want the whole state to open, you should try this:

0629: change_stat 181 (islands unlocked) to 1

0629: change_stat 181 (islands unlocked) to 2

0629: change_stat 181 (islands unlocked) to 3

0629: change_stat 181 (islands unlocked) to 4

Share this post


Link to post
Share on other sites
Quadropheniac90
Thanks!

Share this post


Link to post
Share on other sites
Demarest
For what it's worth, I figured out that the last two parameters for
078B: @126 = car_on_heli @34 magnet unknown @127 @128

HAS to be variables. Original code only used integer zeroes and they can both be the same var. The command acts as a generic sniff/capture that will return -1 in the event that the magnet has nothing attached to it.

Share this post


Link to post
Share on other sites
ZAZ

 

What controls the access to the cities? I have the following as a continuous loop:

 

 

0629: change_stat  181 (islands unlocked) to  4; integer see statdisp.dat

 

I think, it´s enough. I use it in my stripped main.

The wanted level of area 69 and the military ship is not activate by main.scm. It must come from the the EXE.

Your codes are nice founds. I will test it.

_____________

 

 

@spaceeinstein: Why do you set all the 4 0629: change_stat 181 ?

I also found it in your all in one mod

Share this post


Link to post
Share on other sites
Quadropheniac90
Well, the codes from the main do disable the wanted levels in those areas, I think Opius tested them, not sure though...

Share this post


Link to post
Share on other sites
Demarest
I think that the naval base and that one desert plant are designated as un-enterable by the map files.

Share this post


Link to post
Share on other sites
mageezer

 

A26: (unknown)

 

 

This opcode is used to forcefully change the radio station when entering car mod shops. Just delete it, as its very annoying!!! suicidal.gif

Share this post


Link to post
Share on other sites
Craig Kostelecky

 

Check Craigs opened up mod, IIRC, hes commented all the modified code so you can see whats he's done to open it all up.

That's actually still in progress blush.gif But if you want to know how to open the cities, all you have to do is change all

0629: change_stat  181 (islands unlocked) to  X

to

0629: change_stat  181 (islands unlocked) to  4

 

Also, you need to find this section of the code:

 

0776: init_objects_in_object_group "BARRIERS1" 0776: init_objects_in_object_group "BARRIERS2"        01E8: create_forbidden_for_cars_cube -2696.464  1239.866  40.7599 -2665.359  2190.96  70.812501E8: create_forbidden_for_cars_cube -2740.694  2233.618  40.8431 -2720.91  2338.224  80.482201E8: create_forbidden_for_cars_cube -2695.584  1237.981  40.7328 -2664.417  1454.767  60.812601E8: create_forbidden_for_cars_cube -2670.173  1203.331  50.4297 -2662.66  1237.707  60.578101E8: create_forbidden_for_cars_cube -995.0013 -416.2032  30.4207 -940.5399 -251.8564  40.676201E8: create_forbidden_for_cars_cube -205.8387  250.7443  7.2472 -131.0039  481.8496  15.915201E8: create_forbidden_for_cars_cube -100.7515 -927.8298  18.0 -68.3752 -891.9871  14.001E8: create_forbidden_for_cars_cube  609.7595  327.3437  15.8783  429.8884  616.0168  20.28901E8: create_forbidden_for_cars_cube  317.1688  707.7672  7.0  437.5726  709.0657  20.557801E8: create_forbidden_for_cars_cube  391.1194  640.015  7.0  402.2627  664.798  18.509801E8: create_forbidden_for_cars_cube  289.2904  636.3991  7.8675  409.4943  702.3849  20.034501E8: create_forbidden_for_cars_cube  300.3153  718.7909  7.7846  316.7906  781.0926  14.079501E8: create_forbidden_for_cars_cube  254.9982  837.029  10.1731  270.7453  929.2404  30.255301E8: create_forbidden_for_cars_cube  210.7811  939.2068  10.9062  249.4799  959.1111  30.214101E8: create_forbidden_for_cars_cube  230.4545  946.0961  20.6674  255.9772  969.2755  30.477601E8: create_forbidden_for_cars_cube  249.4279  899.7975  10.5871  268.6826  933.5995  30.397501E8: create_forbidden_for_cars_cube  312.1081  694.1089  6.0  324.0811  733.0005  10.001E8: create_forbidden_for_cars_cube  324.4526  804.9198  9.6186  332.8747  814.356  14.392501E8: create_forbidden_for_cars_cube  1690.819  376.5103  28.1103  1730.223  445.2955  30.841401E8: create_forbidden_for_cars_cube  1643.536  227.3723  27.4457  1673.062  295.5788  30.081501E8: create_forbidden_for_cars_cube  1673.765  388.1013  40.2331  1815.862  804.9291  10.001E8: create_forbidden_for_cars_cube  1705.156  308.3448  20.0  1710.948  316.4094  23.561201E8: create_forbidden_for_cars_cube -12.7067 -1522.455  1.0  80.8463 -1517.111  5.001E8: create_forbidden_for_cars_cube -16.3392 -1532.882  .0394  69.3401 -1523.771  5.92201E8: create_forbidden_for_cars_cube  618.7253 -1189.606  18.0  623.5441 -1161.981  22.001E8: create_forbidden_for_cars_cube -33.4208 -1341.84  9.0  35.3764 -1303.948  13.001E8: create_forbidden_for_cars_cube -41.2393 -1385.87  8.0 -3.5883 -1368.856  10.501E8: create_forbidden_for_cars_cube -1690.705  539.6102  30.3278 -1100.567  1140.569  50.73501E8: create_forbidden_for_cars_cube -1799.54  379.7155  16.0 -1780.199  392.2779  18.001E8: create_forbidden_for_cars_cube -1092.429  1286.505  30.0 -1077.038  1319.495  35.001E8: create_forbidden_for_cars_cube -1860.133  314.7891  38.0 -1638.563  557.4354  40.001E8: create_forbidden_for_cars_cube -1737.333  455.9431  30.3573 -1710.363  500.6261  40.489101E8: create_forbidden_for_cars_cube -1689.229  513.0995  30.2597 -1679.124  524.8383  40.2501E8: create_forbidden_for_cars_cube -1742.906  500.7302  30.4679 -1650.312  551.8201  40.7455

 

Replace it with this:

 

0776: init_objects_in_object_group "BARRIERS1" 0776: init_objects_in_object_group "BARRIERS2"        0777: destroy_objects_in_object_group "BARRIERS1" 0777: destroy_objects_in_object_group "BARRIERS2"

 

Share this post


Link to post
Share on other sites
Quadropheniac90

@Craig: Cool, thanks!

 

Does anybody know how the create_fire opcode is used? It has coordinates which aren't so hard, but there's also a variable at the end, and since no variable has been defined in the stripped main.scm, I don't know what to put there. 2 fails, 1.0 fails. And there are separate opcodes for placing fires on actors and cars allready I think, so I don't think there has to be an actor or something it should be on.

Share this post


Link to post
Share on other sites
demonj0e

thanks for finding that annoying radio changing opcode il try it in the mornin

 

and godgell ill try the train cams tomoz also its prob simple thing such as check if player is driving any train if so change cam to normal or wateva

Share this post


Link to post
Share on other sites
ZAZ

 

I think that the naval base and that one desert plant are designated as un-enterable by the map files.

You can go in there !

01F0: set_max_wanted_level_to 0

Share this post


Link to post
Share on other sites
Demarest

That's a way to force the issue, but I still think the triggers are in the map files.

 

[EDIT]

Just realized that there is a toggle for area 69 in the code. Not sure if there's one for the naval base though.

 

 

0A3D: toggle_prostitutes_pay_you (0/1)

Tested. 1 means they will like after the Pimping mission, 0 means they won't like GTA3 / VC.

Edited by Demarest

Share this post


Link to post
Share on other sites
Opius

The military zones are set through the IPL files, and the opcodes to disable them have already been found.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


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