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

[REL | CODE] SnakeNOS


Viper187
 Share

Recommended Posts

This allows you to add NOS component to cars, planes, and the Vortex. You can't add it to bikes/boats/trains though. You can, however use the other adjustable NOS. smile.gif

 

EDIT: V2 now posted. Some button combos are different.

EDIT 2: V3 posted. Remote mode added. Maybe other tweaks/fixes. Sunk car check wasn't quite right, etc.

 

*works on both RC cars and regular cars

*When your car is on it's roof and stopped, it'll flip back to it's wheel's

*When you drop into the water in a car, it'll will change to a Vortex.

*Each vehicle type has its own NOS var, but they're all set with the same buttons. Whatever vehicle you're in, you'll adjust the NOS for that vehicle type by pressing the buttons listed below.

*ALL choppers will have magnets

 

All Vehicles:

Handbrake + Shoot + Weapon 2 = rise up

Handbrake + Brake/reverse = Air Brakes

Handbrake + Brake/reverse + Shoot = Emergency/Air Brakes

Horn + Look Left/Right = NOS adjustment

Look Left + Look Right + Weapon 2 = Add Nitro 2x to car

Look Left + Look Right + Prev Radio = Add Nitro 5x to car

Look Left + Look Right + Next Radio = Add Nitro 10x to car

Handbrake + Brake/Reverse + Look Left = rotate left

Handbrake + Brake/Reverse + Look Right = rotate right

 

Cars/Boats/Motorbikes:

Gas + Shoot (without looking left/right) = NOS

Brake/Reverse + Fire = reverse (not on bikes)

 

Choppers/Planes:

Gas + Handbrake = NOS

Brake/Reverse + Fire = reverse

 

Cars/Choppers/Planes:

Skip Trip + Camera = Remote mode (control your current car by remote)

Convo No = Blow up remote car

Convo No + Skip Trip = Blow up remote car & put character at that location

Convo No + Exit Vehicle = End remote mode and put player where car is.

Exit Vehicle = End remote mode

 

 

004F: create_thread ££SNAKENOS00:SNAKENOS000001: wait  0 ms00D6: if  00241:   player $PLAYER_CHAR in_remote_mode004D: jump_if_false ££SNAKENOS00B0484: @0 = player $PLAYER_CHAR rc_car0002: jump ££SNAKENOS00C:SNAKENOS00B00D6: if  000DF:   actor $PLAYER_ACTOR driving004D: jump_if_false ££SNAKENOS4003C0: @0 = actor $PLAYER_ACTOR car:SNAKENOS00C00D6: if  101F4:   car @0 flipped01C1:   car @0 stopped004D: jump_if_false ££SNAKENOS0100AA: store_car @0 position_to @1 @2 @30174: @4 = car @0 z_angle00AB: put_car @0 at @1 @2 @30175: set_car @0 z_angle_to @4:SNAKENOS01;;air brakes + left/right rotate00D6: if  100E1:   key_pressed  0  6;; handbrake00E1:   key_pressed  0  14;; brake/reverse004D: jump_if_false ££SNAKENOS0200D6: if  2201F4:   car @0 flipped01F3:   car @0 airborne00E1:   key_pressed  0  17;; fire004D: jump_if_false ££SNAKENOS01B04BA: set_car @0 speed_instantly 0:SNAKENOS01B00D6: if  200E1:   key_pressed  0  5;; look left004D: jump_if_false ££SNAKENOS01C0174: @4 = car @0 z_angle000B: @4 +=  5.0 ;; floating-point values0175: set_car @0 z_angle_to  @4:SNAKENOS01C00D6: if  200E1:   key_pressed  0  7;; look right004D: jump_if_false ££SNAKENOS020174: @4 = car @0 z_angle000F: @4 -=  5.0 ;; floating-point values0175: set_car @0 z_angle_to  @4:SNAKENOS02;;choppers0441: @6 = car @0 model00D6: if  68039:   NOT   @6 ==  417;; leviathan8039:   NOT   @6 ==  425;; hunter8039:   NOT   @6 ==  447;; seaspar8039:   NOT   @6 ==  465;; rcraider8039:   NOT   @6 ==  469;; sparrow8039:   NOT   @6 ==  487;; maverick8039:   NOT   @6 ==  488;; vcnmav004D: jump_if_false ££SNAKENOS02B00D6: if  38039:   NOT   @6 ==  497;; polmav8039:   NOT   @6 ==  501;; rcgoblin8039:   NOT   @6 ==  548;; cargobob8039:   NOT   @6 ==  563;; raindanc004D: jump_if_false ££SNAKENOS02B;;planes00D6: if  68039:   NOT   @6 ==  460;; skimmer8039:   NOT   @6 ==  476;; rustler8039:   NOT   @6 ==  511;; beagle8039:   NOT   @6 ==  512;; cropdust8039:   NOT   @6 ==  513;; stunt8039:   NOT   @6 ==  519;; shamal8039:   NOT   @6 ==  520;; hydra004D: jump_if_false ££SNAKENOS02C00D6: if  48039:   NOT   @6 ==  553;; nevada8039:   NOT   @6 ==  577;; at4008039:   NOT   @6 ==  592;; adrom8039:   NOT   @6 ==  593;; dodo8039:   NOT   @6 ==  464;; rcbaron004D: jump_if_false ££SNAKENOS02C;;bikes00D6: if  28039:   NOT   @6 ==  509;; bike8039:   NOT   @6 ==  510;; mtbike8039:   NOT   @6 ==  481;; bmx004D: jump_if_false ££SNAKENOS02D;;motorbikes00D6: if  58039:   NOT   @6 ==  461;; pcj6008039:   NOT   @6 ==  462;; faggio8039:   NOT   @6 ==  463;; freeway8039:   NOT   @6 ==  448;; pizzaboy8039:   NOT   @6 ==  468;; sanchez8039:   NOT   @6 ==  471;; quad004D: jump_if_false ££SNAKENOS02E00D6: if  48039:   NOT   @6 ==  521;; fcr9008039:   NOT   @6 ==  522;; nrg5008039:   NOT   @6 ==  523;; copbike8039:   NOT   @6 ==  581;; bf4008039:   NOT   @6 ==  586;; wayfarer004D: jump_if_false ££SNAKENOS02E;;boats00D6: if  58039:   NOT   @6 ==  539;; vortex8039:   NOT   @6 ==  430;; predator8039:   NOT   @6 ==  446;; sqalo8039:   NOT   @6 ==  452;; speeder8039:   NOT   @6 ==  453;; reefer8039:   NOT   @6 ==  454;; tropic004D: jump_if_false ££SNAKENOS02F00D6: if  38039:   NOT   @6 ==  472;; coastg8039:   NOT   @6 ==  473;; dinghy8039:   NOT   @6 ==  484;; marquis8039:   NOT   @6 ==  493;; jetmax004D: jump_if_false ££SNAKENOS02F;;trains00D6: if  58039:   NOT   @6 ==  449;; tram8039:   NOT   @6 ==  537;; freight8039:   NOT   @6 ==  538;; streak8039:   NOT   @6 ==  569;; freiflat8039:   NOT   @6 ==  570;; streakc8039:   NOT   @6 ==  590;; freibox004D: jump_if_false ££SNAKENOS02G0004: $SNVTYPE =  0 ;; cars0002: jump ££SNAKENOS03:SNAKENOS02B0004: $SNVTYPE =  1 ;; choppers0002: jump ££SNAKENOS03:SNAKENOS02C0004: $SNVTYPE =  2 ;; planes0002: jump ££SNAKENOS03:SNAKENOS02D0004: $SNVTYPE =  3 ;; bikes0002: jump ££SNAKENOS03:SNAKENOS02E0004: $SNVTYPE =  4 ;; motorbikes0002: jump ££SNAKENOS03:SNAKENOS02F0004: $SNVTYPE =  5 ;; boats0002: jump ££SNAKENOS03:SNAKENOS02G0004: $SNVTYPE =  6 ;; trains0002: jump ££SNAKENOS03:SNAKENOS03;;remote mode00D6: if  200E1:   key_pressed  0  11;; skip trip00E1:   key_pressed  0  13;; camera8241:   NOT    player $PLAYER_CHAR in_remote_mode004D: jump_if_false ££SNAKENOS03B00D6: if  28038:   NOT    $SNVTYPE ==  3;; bikes8038:   NOT    $SNVTYPE ==  4;; motorbikes8038:   NOT    $SNVTYPE ==  6;; trains004D: jump_if_false ££SNAKENOS0400D6: if  218038:   NOT    $SNVTYPE ==  5;; boats00DD:   actor $PLAYER_ACTOR driving_vehicle_type 539;; vortex004D: jump_if_false ££SNAKENOS0403C0: @0 = actor $PLAYER_ACTOR car0407: create_coordinate @7 @8 @9 from_car @0 offset 0.0  -2.0  0.00362: remove_actor $PLAYER_ACTOR from_car_and_place_at  @7 @8  @904D7: lock_actor $PLAYER_ACTOR in_current_position  10715: put_player $PLAYER_CHAR in_RC_mode_in_car @0 ; on foot version04D6: enable_rc_car_detonation  0 ; or opcode 048Ah048A: enable_rc_car_detonation  0 ; or opcode 04D6h0004: $SNAKERC =  1 ;; integer values0002: jump ££SNAKENOS04:SNAKENOS03B00D6: if  10241:   player $PLAYER_CHAR in_remote_mode0038:   $SNAKERC ==  1;; integer values004D: jump_if_false ££SNAKENOS040484: @0 = player $PLAYER_CHAR rc_car00AA: store_car @0 position_to @1 @2 @300D6: if  000E1:   key_pressed  0  10;; no004D: jump_if_false ££SNAKENOS03C020B: explode_car @0020C: create_explosion_with_radius  10 at @1 @2 @3:SNAKENOS03C00D6: if  2100E1:   key_pressed  0  15;; exit0119:   car @0 wrecked004D: jump_if_false ££SNAKENOS040004: $SNAKERC =  0 ;; integer values04DB: exit_rc_mode ; on foot version04D7: lock_actor $PLAYER_ACTOR in_current_position  00001: wait  50 ms:SNAKENOS03D00D6: if  000E1:   key_pressed  0  11;; skip trip004D: jump_if_false ££SNAKENOS0400A1: put_actor $PLAYER_ACTOR at  @1 @2 @3:SNAKENOS04;;raise vehicle00D6: if  200E1:   key_pressed  0  6;; handbrake00E1:   key_pressed  0  4;; weapon 200E1:   key_pressed  0  17;; fire004D: jump_if_false ££SNAKENOS0500AA: store_car @0 position_to @1 @2 @300D6: if  001F3:   car @0 airborne004D: jump_if_false ££SNAKENOS04B000B: @3 +=  .5 ;; floating-point values00AB: put_car @0 at @1  @2  @30002: jump ££SNAKENOS05:SNAKENOS04B000B: @3 +=  4.0 ;; floating-point values00AB: put_car @0 at @1  @2  @3:SNAKENOS05         ;;sunk car fix - sort of00D6: if  102BF:   car @0 sunk8241:   NOT   player $PLAYER_CHAR in_remote_mode004D: jump_if_false ££SNAKENOS0600D6: if  280DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 447;; seaspar80DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 460;; skimmer8038:   NOT    $SNVTYPE ==  5;; integer values004D: jump_if_false ££SNAKENOS060247: request_model  539038B: load_requested_models00D6: if  00248:   model  539 available004D: jump_if_false ££SNAKENOS0600AA: store_car @0 position_to @1 @2 @30174: @4 = car @0 z_angle0362: remove_actor $PLAYER_ACTOR from_car_and_place_at  @1 @2  @301C3: remove_references_to_car @0 ;; Like turning a car into any random car00A5: @0 = create_car  539 at @1 @2 @30175: set_car @0 z_angle_to @4036A: put_actor $PLAYER_ACTOR in_car @00249: release_model  539:SNAKENOS0600D6: if  21001A:    3 > $SNVTYPE;; integer values00DD:   actor $PLAYER_ACTOR driving_vehicle_type 539;; vortex004D: jump_if_false ££SNAKENOS0700D6: if  400E1:   key_pressed  0  5;; look left00E1:   key_pressed  0  7;; look right00E1:   key_pressed  0  4;; weapon280E1:   NOT   key_pressed  0  6;; handbrake80E1:   NOT   key_pressed  0  18;; horn004D: jump_if_false ££SNAKENOS06B06E9: request_car_component  1008038B: load_requested_models00D6: if  006EA:   car_component_available 1008 004D: jump_if_false ££SNAKENOS0806E7: $SNAKENITRO = add_car_component 1008 to_car @0 06EB: release_car_component 1008:SNAKENOS06B00D6: if  400E1:   key_pressed  0  5;; look left00E1:   key_pressed  0  7;; look right00E1:   key_pressed  0  8;; next radio80E1:   NOT   key_pressed  0  6;; handbrake80E1:   NOT   key_pressed  0  18;; horn004D: jump_if_false ££SNAKENOS06C06E9: request_car_component  1010038B: load_requested_models00D6: if  006EA:   car_component_available 1010 004D: jump_if_false ££SNAKENOS0806E7: $SNAKENITRO = add_car_component 1010 to_car @0 06EB: release_car_component 1010:SNAKENOS06C00D6: if  400E1:   key_pressed  0  5;; look left00E1:   key_pressed  0  7;; look right00E1:   key_pressed  0  9;; prev radio80E1:   NOT   key_pressed  0  6;; handbrake80E1:   NOT   key_pressed  0  18;; horn004D: jump_if_false ££SNAKENOS0706E9: request_car_component  1009038B: load_requested_models00D6: if  006EA:   car_component_available 1009 004D: jump_if_false ££SNAKENOS0806E7: $SNAKENITRO = add_car_component 1009 to_car @0 06EB: release_car_component 1009:SNAKENOS0700D6: if  20038:   $SNVTYPE ==  1;; integer values8039:   NOT   @6 ==  465;; rcraider8039:   NOT   @6 ==  501;; rcgoblin004D: jump_if_false ££SNAKENOS080788: enable_heli @0 magnet  1        :SNAKENOS08;;set NOS type0871: init_jump_table $SNVTYPE total_jumps  7  0 ££SNAKENOS08B  0 ££SNAKENOS08B jumps  1 ££SNAKENOS08C  2 ££SNAKENOS08D  3 ££SNAKENOS08E  4 ££SNAKENOS08F  5 ££SNAKENOS08G  6 ££SNAKENOS08H :SNAKENOS08B0089: @1 = $SWNOS1 ;; floating-point values only0002: jump ££SNAKENOS09:SNAKENOS08C0089: @1 = $SWNOS2 ;; floating-point values only0002: jump ££SNAKENOS09:SNAKENOS08D0089: @1 = $SWNOS3 ;; floating-point values only0002: jump ££SNAKENOS09:SNAKENOS08E0089: @1 = $SWNOS4 ;; floating-point values only0002: jump ££SNAKENOS09:SNAKENOS08F0089: @1 = $SWNOS5 ;; floating-point values only0002: jump ££SNAKENOS09:SNAKENOS08G0089: @1 = $SWNOS6 ;; floating-point values only0002: jump ££SNAKENOS09:SNAKENOS08H0089: @1 = $SWNOS7 ;; floating-point values only:SNAKENOS09;;NOS check00D6: if  210021:   @1 >  3.0 ;; floating-point values0023:   1.0 > @1 ;; floating-point values004D: jump_if_false ££SNAKENOS09B0007: @1 =  1.22 ;; floating-point values0002: jump ££SNAKENOS09D:SNAKENOS09B00D6: if  000E1:   key_pressed  0  18;; horn004D: jump_if_false ££SNAKENOS100087: @2 = @1 ;; floating-point values only000F: @2 -=  1.0 ;; floating-point values0013: @2 *=  100.0 ;; floating-point values 0092: @2 = float_to_integer @2  03F0:  10341:  103E4:  00348:  0045A:  25.0 25.0 "NUMBER" @200D6: if  000E1:   key_pressed  0  5;; look left004D: jump_if_false ££SNAKENOS09C000F: @1 -=  .01 ;; floating-point values00D6: if  00023:   1.0 > @1 ;; floating-point values004D: jump_if_false ££SNAKENOS09D0007: @1 =  2.99 ;; floating-point values0002: jump ££SNAKENOS09D:SNAKENOS09C00D6: if  000E1:   key_pressed  0  7;; look right004D: jump_if_false ££SNAKENOS10000B: @1 +=  .01 ;; floating-point values00D6: if  00021:   @1 >  3.0 ;; floating-point values004D: jump_if_false ££SNAKENOS09D0007: @1 =  1.0 ;; floating-point values:SNAKENOS09D0871: init_jump_table $SNVTYPE total_jumps  7  0 ££SNAKENOS09E  0 ££SNAKENOS09E jumps  1 ££SNAKENOS09F  2 ££SNAKENOS09G  3 ££SNAKENOS09H  4 ££SNAKENOS09I  5 ££SNAKENOS09J  6 ££SNAKENOS09K:SNAKENOS09E0088: $SWNOS1 = @1 ;; floating-point values only0002: jump ££SNAKENOS10:SNAKENOS09F0088: $SWNOS2 = @1 ;; floating-point values only0002: jump ££SNAKENOS10:SNAKENOS09G0088: $SWNOS3 = @1 ;; floating-point values only0002: jump ££SNAKENOS10:SNAKENOS09H0088: $SWNOS4 = @1 ;; floating-point values only0002: jump ££SNAKENOS10:SNAKENOS09I0088: $SWNOS5 = @1 ;; floating-point values only0002: jump ££SNAKENOS10:SNAKENOS09J0088: $SWNOS6 = @1 ;; floating-point values only0002: jump ££SNAKENOS10:SNAKENOS09K0088: $SWNOS7 = @1 ;; floating-point values only:SNAKENOS1000D6: if  08038:   NOT    $SNVTYPE ==  3;; bikes8038:   NOT    $SNVTYPE ==  6;; trains004D: jump_if_false ££SNAKENOS4002E3: @4 = car @0 speed        ;;chopper/plane NOS00D6: if  210038:   $SNVTYPE ==  1;; choppers0038:   $SNVTYPE ==  2;; planes004D: jump_if_false ££SNAKENOS1100D6: if  080DD:   NOT   actor $PLAYER_ACTOR driving_vehicle_type 520;; hydra004D: jump_if_false ££SNAKENOS1100D6: if  100E1:   key_pressed  0  16;; gas00E1:   key_pressed  0  6;; handbrake004D: jump_if_false ££SNAKENOS10B0002: jump ££SNAKENOS20:SNAKENOS10B;;chopper/plane reverse00D6: if 1 00E1:   key_pressed  0  14;; brake/reverse00E1:   key_pressed  0  17;; fire004D: jump_if_false ££SNAKENOS400002: jump ££SNAKENOS20B:SNAKENOS110002: jump ££SNAKENOS16:SNAKENOS16;;car/motorbike/boat NOS00D6: if  100E1:   key_pressed  0  16;; gas00E1:   key_pressed  0  17;; fire004D: jump_if_false ££SNAKENOS16B0002: jump ££SNAKENOS20:SNAKENOS16B;;car/motorbike/boat reverse00D6: if  200E1:   key_pressed  0  14;; brake/reverse00E1:   key_pressed  0  17;; fire80E1:   NOT   key_pressed  0  6;; handbrake004D: jump_if_false ££SNAKENOS400002: jump ££SNAKENOS20B:SNAKENOS2000D6: if  00023:   30.0 > @4 ;; floating-point values004D: jump_if_false ££SNAKENOS20C0007: @4 =  40.0 ;; floating-point values0002: jump ££SNAKENOS20C:SNAKENOS20B00D6: if  00021:   @4 >  -30.0 ;; floating-point values004D: jump_if_false ££SNAKENOS20C0007: @4 =  -25.0 ;; floating-point values:SNAKENOS20C006B: @4 *= @1 ;; floating-point values04BA: set_car @0 speed_instantly @4:SNAKENOS400002: jump ££SNAKENOS00

 

Edited by Viper187
Link to comment
Share on other sites

now that i know where to add the threads in main.scm (thank you again) i have been looking throw the other mods and adding them in i have to say you sure have been busy ! lol

Link to comment
Share on other sites

Your code possible to optimize, having used commands

 

 

847A:   NOT actor $PLAYER_ACTOR driving_a_motorbike84AB:   NOT actor $PLAYER_ACTOR driving_boat84C8:   NOT actor $PLAYER_ACTOR driving_plane

 

Link to comment
Share on other sites

I edited my original post with a new version. Even crazier than before. smile.gif

 

Link to comment
Share on other sites

Updated to V3. Remote mode now added for those with a James Bond fetish. wink.gif

Link to comment
Share on other sites

  • 1 month later...

 

where do i set in the code?

That's more of a general question regarding code modding and not really specific to this mod. Checking that area out, or even a PM to the author might be better than a 2 month bump.

 

To answer your question, you would need to add the code just before Mission 0. Also be sure to put a create_thread for it in with the others. The MB readme covers this. Since you didn't know this, I should also mention that such a mod will require you to start a new game.

 

@Viper: Looks like awesome work. Too many lines, so I didn't read through, but I have a question: Does this mod overwrite/replace anything about the way the original game functions? If not, do you have any intentions of releasing a Darkpactor version for those who won't code mod or don't want to start a new game?

Link to comment
Share on other sites

  • 2 months later...

there are some errors with remote mode.i think you codes changs the way of remote mode. If i use your snakespawn mod to sapwn a car and press

some keys to activate the remote mode ,then i explode the car,the game

does not crash.IF you explode a car which is not spawned by your snakespawn mod,the game will crash!!!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 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.