Quantcast

Jump to content

» «
Photo

Ok, This is a good start

No replies to this topic
Viper187
  • Viper187

    Crazy Snake

  • Members
  • Joined: 17 Oct 2002

#1

Posted 16 June 2005 - 02:49 PM Edited by Viper187, 16 June 2005 - 02:53 PM.

I got most of the usual stuff written up for my SA mod.. I'll see what else I need to add/edit as I play through.

Snakemod 0.1 beta

CODE

004F: create_thread ££SNAKEMOD00

:SNAKEMOD00
0001: wait  0 ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false ££SNAKEMOD00
02A9: set_actor $PLAYER_ACTOR immune_to_nonplayer  1
0223: set_actor $PLAYER_ACTOR health_to  500
02AB: set_actor $PLAYER_ACTOR immunities  1  1  1  1  1
035F: set_actor $PLAYER_ACTOR armour_to  100
0330: set_player $PLAYER_CHAR infinite_run_to  1 (true)
0629: change_stat  225 (lung capasity) to  1000; integer see statdisp.dat
0629: change_stat  22 (stamina) to  1000; integer see statdisp.dat
0629: change_stat  230 (cycling skill) to  1000; integer see statdisp.dat
0629: change_stat  229 (bike skill) to  1000; integer see statdisp.dat
0629: change_stat  223 (flying skill) to  1000; integer see statdisp.dat
062A: change_stat  23 (muscle) to  1000.0; float
062A: change_stat  21 (fat) to  0.0; float
062A: change_stat  160 (driving skill) to  1000.0; float
062A: change_stat  69 (Weap skill: pistol) to  1000.0; float
062A: change_stat  70 to  1000.0; float
062A: change_stat  71 to  1000.0; float
062A: change_stat  72 to  1000.0; float
062A: change_stat  73 to  1000.0; float
062A: change_stat  74 to  1000.0; float
062A: change_stat  75 to  1000.0; float
062A: change_stat  76 to  1000.0; float
062A: change_stat  77 to  1000.0; float
062A: change_stat  78 to  1000.0; float
062A: change_stat  79 to  1000.0; float
00D6: if  0
00DF:   actor $PLAYER_ACTOR driving
004D: jump_if_false ££SNAKEMOD03
03C0: @0 = actor $PLAYER_ACTOR car
02AC: set_car @0 immunities  1  1  1  1  1
0224: set_car @0 health_to  9999
053F: set_car @0 tires_vulnerable  0
02AA: set_car @0 immune_to_nonplayer  1
020A: set_car @0 door_status_to  2
00D6: if  5
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 430
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 452
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 453
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 446
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 454
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 472
004D: jump_if_false ££SNAKEMOD01
00D6: if  4
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 493
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 473
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 484
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 595
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 460
004D: jump_if_false ££SNAKEMOD01
01EC: make_car @0 very_heavy  1

:SNAKEMOD01
00D6: if  21
00E1:   key_pressed  0  6
8449:   NOT   actor $PLAYER_ACTOR in_a_car
004D: jump_if_false ££SNAKEMOD02
020A: set_car @0 door_status_to  1

:SNAKEMOD02
00D6: if  1
01F4:   car @0 flipped
01C1:   car @0 stopped
004D: jump_if_false ££SNAKEMOD02A
00AA: store_car @0 position_to @1 @2 @3
0174: @4 = car @0 z_angle
00AB: put_car @0 at @1 @2 @3
0175: set_car @0 z_angle_to @4

:SNAKEMOD02A
00D6: if  2
00E1:   key_pressed  0  6
00E1:   key_pressed  0  14
80E1:   NOT   key_pressed  0  18
004D: jump_if_false ££SNAKEMOD02B
00D6: if  21
01F4:   car @0 flipped
01F3:   car @0 airborne
004D: jump_if_false ££SNAKEMOD02B
04BA: set_car @0 speed_instantly 0

:SNAKEMOD02B
00D6: if  2
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 509
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 510
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 481
004D: jump_if_false ££SNAKEMOD03
00D6: if  5
8241:   NOT   player $PLAYER_CHAR in_remote_mode
00E1:   key_pressed  0  16
00E1:   key_pressed  0  17
80E1:   NOT   key_pressed  0  5
80E1:   NOT   key_pressed  0  7
004D: jump_if_false ££SNAKEMOD02D
00D6: if  6
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 461
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 462
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 463
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 448
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 468
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 471
004D: jump_if_false ££SNAKEMOD02D
00D6: if  6
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 521
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 522
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 523
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 581
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 586
004D: jump_if_false ££SNAKEMOD02D
02E3: @4 = car @0 speed
00D6: if  0
0021:   @4 >  30.0;; floating-point values
004D: jump_if_false ££SNAKEMOD02C
0013: @4 *=  1.22;; floating-point values (never used in VC or GTA 3)
04BA: set_car @0 speed_instantly @4
0002: jump ££SNAKEMOD03

:SNAKEMOD02C
0007: @4 =  50.0;; floating-point values
04BA: set_car @0 speed_instantly @4
0002: jump ££SNAKEMOD03

:SNAKEMOD02D
00D6: if  5
8241:   NOT   player $PLAYER_CHAR in_remote_mode
00E1:   key_pressed  0  16
00E1:   key_pressed  0  4
80E1:   NOT   key_pressed  0  5
80E1:   NOT   key_pressed  0  7
004D: jump_if_false ££SNAKEMOD02F
02E3: @4 = car @0 speed
00D6: if  0
0021:   @4 >  30.0;; floating-point values
004D: jump_if_false ££SNAKEMOD02E
0013: @4 *=  1.19;; floating-point values (never used in VC or GTA 3)
04BA: set_car @0 speed_instantly @4
0002: jump ££SNAKEMOD03

:SNAKEMOD02E
0007: @4 =  40.0;; floating-point values
04BA: set_car @0 speed_instantly @4

:SNAKEMOD02F
00D6: if  5
8241:   NOT   player $PLAYER_CHAR in_remote_mode
00E1:   key_pressed  0  14
00E1:   key_pressed  0  17
80E1:   NOT   key_pressed  0  5
80E1:   NOT   key_pressed  0  7
004D: jump_if_false ££SNAKEMOD03
00D6: if  6                    
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 461
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 462
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 463
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 448
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 468
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 471
004D: jump_if_false ££SNAKEMOD03
00D6: if  6
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 521
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 522
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 523
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 581
80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 586
004D: jump_if_false ££SNAKEMOD03
02E3: @4 = car @0 speed
00D6: if  0
0023:   -30.0 > @4;; floating-point values
004D: jump_if_false ££SNAKEMOD02G
0013: @4 *=  -1.19;; floating-point values (never used in VC or GTA 3)
04BA: set_car @0 speed_instantly @4
0002: jump ££SNAKEMOD03

:SNAKEMOD02G
0007: @4 =  -30.0;; floating-point values
04BA: set_car @0 speed_instantly @4
0002: jump ££SNAKEMOD03

:SNAKEMOD03
0470: @1 = actor $PLAYER_ACTOR armed_weapon unknown
041A: @2 = actor $PLAYER_ACTOR weapon  @1 ammo
017B: set_actor $PLAYER_ACTOR weapon  @1 ammo_to  32000
00D6: if  0
0449:   actor $PLAYER_ACTOR in_a_car
004D: jump_if_false ££SNAKEMOD04
0114: set_actor $PLAYER_ACTOR car_weapon  @1 ammo_to  32000

:SNAKEMOD04
0002: jump ££SNAKEMOD00


notes:

Infinite ammo, immunities, the usual.

You can use the nitro on motorbikes and pull back/forward on the stick to fly just about anyway. smile.gif I haven't found a good combo to use with the BMX, etc yet because the secondary fire makes them jump. Any suggestions?

When your vehicle is on its roof and stopped, it'll slip back on it's wheels.

keypress info:

nitro in vehicles: Accelerate + Shoot without looking left/right
nitro on motorbikes: Accelerate + Secondary Fire
fast reverse: Reverse + Shoot
When your vehicle is airborne/flipped you can press Brake/Reverse + Handbrake to stop it from moving




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users