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] Weapon Select


Viper187
 Share

Recommended Posts

Well, this is a slightly nutty way to do it, but it works. Hold Aim + Jump to spawn a set of weapons/items around you. Press Next Weapon/PRevious weapon to change sets, pickup whatever you want. Jetpack, and Police Bribe are even included. smile.gif

 

I still haven't figured out how clothes pickups work, or I'd do those too.

 

 

;;this goes with the other thread opcodes in main004F: create_thread ££SNAKEWS00;;the rest of this can be put at the bottom of main.:SNAKEWS000001: wait  100 ms00D6: if  480DF:   NOT   actor $PLAYER_ACTOR driving00E1:   key_pressed  0  6;; aim button00E1:   key_pressed  0  14;; jump weapon80E1:   NOT   key_pressed  0  17;; fire80E1:   NOT   key_pressed  0  4;; action004D: jump_if_false ££SNAKEWS000215: destroy_pickup $SWPICK10215: destroy_pickup $SWPICK20215: destroy_pickup $SWPICk30215: destroy_pickup $SWPICK40215: destroy_pickup $SWPICK50215: destroy_pickup $SWPICK60215: destroy_pickup $SWPICK70215: destroy_pickup $SWPICK80215: destroy_pickup $SWPICK90215: destroy_pickup $SWPICK100215: destroy_pickup $SWPICK110215: destroy_pickup $SWPICK120215: destroy_pickup $SWPICK130215: destroy_pickup $SWPICK140215: destroy_pickup $SWPICK150215: destroy_pickup $SWPICK16:SNAKEWS0100D6: if  000E1:   key_pressed  0  5;; prev weapon004D: jump_if_false ££SNAKEWS02000C: $SWSID -=  1;; integer values00D6: if  0001A:    0 > $SWSID;; integer values004D: jump_if_false ££SNAKEWS200004: $SWSID =  2;; integer values0002: jump ££SNAKEWS20:SNAKEWS0200D6: if  000E1:   key_pressed  0  7;; next weapon004D: jump_if_false ££SNAKEWS200008: $SWSID +=  1;; integer values00D6: if  00018:   $SWSID >  2;; integer values004D: jump_if_false ££SNAKEWS200004: $SWSID =  0;; integer values0002: jump ££SNAKEWS20:SNAKEWS2000D6: if  00038:   $SWSID ==  0;; integer values004D: jump_if_false ££SNAKEWS2104C4: create_coordinate @1 @2 @3 from_actor $PLAYER_ACTOR offset  2.0  2.0  0.0032B: $SWPICK1 = create_weapon_pickup  342  15 ammo  20000 at @1  @2  @3000B: @2 +=  1.0;; floating-point values032B: $SWPICK2 = create_weapon_pickup  343  15 ammo  20000 at @1  @2  @3000B: @2 +=  1.0;; floating-point values032B: $SWPICK3 = create_weapon_pickup  344  15 ammo  20000 at @1  @2  @3000B: @2 +=  1.0;; floating-point values 032B: $SWPICK4 = create_weapon_pickup  346  15 ammo  20000 at @1  @2  @304C4: create_coordinate @1 @2 @3 from_actor $PLAYER_ACTOR offset  2.0  -2.0  0.0032B: $SWPICK5 = create_weapon_pickup  347  15 ammo  20000 at @1  @2  @3000B: @2 +=  1.0;; floating-point values032B: $SWPICK6 = create_weapon_pickup  348  15 ammo  20000 at @1  @2  @3000B: @2 +=  1.0;; floating-point values032B: $SWPICK7 = create_weapon_pickup  349  15 ammo  20000 at @1  @2  @3000B: @2 +=  1.0;; floating-point values032B: $SWPICK8 = create_weapon_pickup  350  15 ammo  20000 at @1  @2  @304C4: create_coordinate @1 @2 @3 from_actor $PLAYER_ACTOR offset  2.0  -2.0  0.0032B: $SWPICK9 = create_weapon_pickup  351  15 ammo  20000 at @1  @2  @3000B: @1 +=  1.0;; floating-point values032B: $SWPICK10 = create_weapon_pickup  352  15 ammo  20000 at @1  @2  @3000B: @1 +=  1.0;; floating-point values032B: $SWPICK11 = create_weapon_pickup  353  15 ammo  20000 at @1  @2  @3000B: @1 +=  1.0;; floating-point values032B: $SWPICK12 = create_weapon_pickup  355  15 ammo  20000 at @1  @2  @304C4: create_coordinate @1 @2 @3 from_actor $PLAYER_ACTOR offset  -2.0  2.0  0.0032B: $SWPICK13 = create_weapon_pickup  356  15 ammo  20000 at @1  @2  @3000B: @1 +=  -1.0;; floating-point values032B: $SWPICK14 = create_weapon_pickup  357  15 ammo  20000 at @1  @2  @3000B: @1 +=  -1.0;; floating-point values032B: $SWPICK15 = create_weapon_pickup  358  15 ammo  20000 at @1  @2  @3000B: @1 +=  -1.0;; floating-point values032B: $SWPICK16 = create_weapon_pickup  359  15 ammo  20000 at @1  @2  @3:SNAKEWS2100D6: if  00038:   $SWSID ==  1;; integer values004D: jump_if_false ££SNAKEWS2204C4: create_coordinate @1 @2 @3 from_actor $PLAYER_ACTOR offset  2.0  2.0  0.0032B: $SWPICK1 = create_weapon_pickup  360  15 ammo  20000 at @1  @2  @3000B: @2 +=  1.0;; floating-point values032B: $SWPICK2 = create_weapon_pickup  361  15 ammo  20000 at @1  @2  @3000B: @2 +=  1.0;; floating-point values032B: $SWPICK3 = create_weapon_pickup  362  15 ammo  20000 at @1  @2  @3000B: @2 +=  1.0;; floating-point values 032B: $SWPICK4 = create_weapon_pickup  363  15 ammo  20000 at @1  @2  @304C4: create_coordinate @1 @2 @3 from_actor $PLAYER_ACTOR offset  2.0  -2.0  0.0032B: $SWPICK5 = create_weapon_pickup  365  15 ammo  20000 at @1  @2  @3000B: @2 +=  1.0;; floating-point values032B: $SWPICK6 = create_weapon_pickup  366  15 ammo  20000 at @1  @2  @3000B: @2 +=  1.0;; floating-point values032B: $SWPICK7 = create_weapon_pickup  367  15 ammo  20000 at @1  @2  @3000B: @2 +=  1.0;; floating-point values032B: $SWPICK8 = create_weapon_pickup  368  15 ammo  20000 at @1  @2  @304C4: create_coordinate @1 @2 @3 from_actor $PLAYER_ACTOR offset  2.0  -2.0  0.0032B: $SWPICK9 = create_weapon_pickup  369  15 ammo  20000 at @1  @2  @3000B: @1 +=  1.0;; floating-point values032B: $SWPICK10 = create_weapon_pickup  372  15 ammo  20000 at @1  @2  @3000B: @1 +=  1.0;; floating-point values032B: $SWPICK11 = create_weapon_pickup  370  15 ammo  20000 at @1  @2  @3000B: @1 +=  1.0;; floating-point values0213: $SWPICK12 = create_pickup  321 type  15 at  @1  @2  @304C4: create_coordinate @1 @2 @3 from_actor $PLAYER_ACTOR offset  -2.0  2.0  0.00213: $SWPICK13 = create_pickup  322 type  15 at  @1  @2  @3000B: @1 +=  -1.0;; floating-point values0213: $SWPICK14 = create_pickup  323 type  15 at  @1  @2  @3000B: @1 +=  -1.0;; floating-point values0213: $SWPICK15 = create_pickup  324 type  15 at  @1  @2  @3000B: @1 +=  -1.0;; floating-point values0213: $SWPICK16 = create_pickup  325 type  15 at  @1  @2  @3:SNAKEWS2200D6: if  00038:   $SWSID ==  2;; integer values004D: jump_if_false ££SNAKEWS3004C4: create_coordinate @1 @2 @3 from_actor $PLAYER_ACTOR offset  2.0  2.0  0.00213: $SWPICK1 = create_pickup  326 type  15 at  @1  @2  @3000B: @2 +=  1.0;; floating-point values0213: $SWPICK2 = create_pickup  327 type  15 at  @1  @2  @3000B: @2 +=  1.0;; floating-point values0213: $SWPICK3 = create_pickup  328 type  15 at  @1  @2  @3000B: @2 +=  1.0;; floating-point values 0213: $SWPICK4 = create_pickup  331 type  15 at  @1  @2  @304C4: create_coordinate @1 @2 @3 from_actor $PLAYER_ACTOR offset  2.0  -2.0  0.00213: $SWPICK5 = create_pickup  333 type  15 at  @1  @2  @3000B: @2 +=  1.0;; floating-point values0213: $SWPICK6 = create_pickup  334 type  15 at  @1  @2  @3000B: @2 +=  1.0;; floating-point values0213: $SWPICK7 = create_pickup  335 type  15 at  @1  @2  @3000B: @2 +=  1.0;; floating-point values0213: $SWPICK8 = create_pickup  336 type  15 at  @1  @2  @304C4: create_coordinate @1 @2 @3 from_actor $PLAYER_ACTOR offset  2.0  -2.0  0.00213: $SWPICK9 = create_pickup  337 type  15 at  @1  @2  @3000B: @1 +=  1.0;; floating-point values0213: $SWPICK10 = create_pickup  338 type  15 at  @1  @2  @3000B: @1 +=  1.0;; floating-point values0213: $SWPICK11 = create_pickup  339 type  15 at  @1  @2  @3000B: @1 +=  1.0;; floating-point values0213: $SWPICK12 = create_pickup  341 type  15 at  @1  @2  @304C4: create_coordinate @1 @2 @3 from_actor $PLAYER_ACTOR offset  -2.0  2.0  0.00213: $SWPICK13 = create_pickup  #BODYARMOUR type  15 at  @1  @2  @3000B: @1 +=  -1.0;; floating-point values0213: $SWPICK14 = create_pickup  #BRIBE type  15 at  @1  @2  @3000B: @1 +=  -1.0;; floating-point values0213: $SWPICK15 = create_pickup  #HEALTH type  15 at  @1  @2  @3000B: @1 +=  -1.0;; floating-point values;;0213: $SWPICK16 = create_pickup  #CLOTHESP type  15 at  @1  @2  @3:SNAKEWS300002: jump ££SNAKEWS00

 

Edited by Viper187
Link to comment
Share on other sites

Great! thanks.

 

Ha, we can pick up clothes? interesting...I thought I can only do that through assigning to wardrobe.

 

Link to comment
Share on other sites

Great! thanks.

 

Ha, we can pick up clothes? interesting...I thought I can only do that through assigning to wardrobe.

Yeah, you can. I've only seen it happen on that mission you have to impersonate a valet.

 

Link to comment
Share on other sites

New version. This one uses the same keys but only spawns 1 weapon at a time in front of you. Uses less code too.

 

 

:SNAKEWS000001: wait  100 ms00D6: if  480DF:   NOT   actor $PLAYER_ACTOR driving00E1:   key_pressed  0  6;; aim button00E1:   key_pressed  0  14;; jump weapon80E1:   NOT   key_pressed  0  17;; fire80E1:   NOT   key_pressed  0  4;; action004D: jump_if_false ££SNAKEWS00:SNAKEWS0100D6: if  000E1:   key_pressed  0  5;; prev weapon004D: jump_if_false ££SNAKEWS02000C: $SWSID -=  1;; integer values:SNAKEWS0200D6: if  000E1:   key_pressed  0  7;; next weapon004D: jump_if_false ££SNAKEWS02B0008: $SWSID +=  1 ;; integer values:SNAKEWS02B00D6: if  250038:   $SWSID ==  329 ;; integer values0038:   $SWSID ==  332 ;; integer values0038:   $SWSID ==  340 ;; integer values0038:   $SWSID ==  345 ;; integer values0038:   $SWSID ==  354 ;; integer values0038:   $SWSID ==  364 ;; integer values004D: jump_if_false ££SNAKEWS0300D6: if  000E1:   key_pressed  0  5;; prev weapon004D: jump_if_false ££SNAKEWS02C000C: $SWSID -=  1;; integer values0002: jump ££SNAKEWS03:SNAKEWS02C0008: $SWSID +=  1 ;; integer values:SNAKEWS0300D6: if  0001A:    321 > $SWSID ;; integer values004D: jump_if_false ££SNAKEWS03B0004: $SWSID =  373 ;; integer values0002: jump ££SNAKEWS10:SNAKEWS03B00D6: if  00018:   $SWSID >  373 ;; integer values004D: jump_if_false ££SNAKEWS03C0004: $SWSID =  321 ;; integer values0002: jump ££SNAKEWS10:SNAKEWS03C00D6: if  20018:   $SWSID >  341 ;; integer values8038:   NOT    $SWSID ==  371 ;; integer values8038:   NOT    $SWSID ==  373 ;; integer values004D: jump_if_false ££SNAKEWS100002: jump ££SNAKEWS11:SNAKEWS100215: destroy_pickup $SWPICK104C4: create_coordinate @1 @2 @3 from_actor $PLAYER_ACTOR offset  0.0  2.0  0.00213: $SWPICK1 = create_pickup  $SWSID type  15 at  @1  @2  @30002: jump ££SNAKEWS00:SNAKEWS110215: destroy_pickup $SWPICK104C4: create_coordinate @1 @2 @3 from_actor $PLAYER_ACTOR offset  0.0  2.0  0.0032B: $SWPICK1 = create_weapon_pickup  $SWSID  15 ammo  20000 at @1  @2  @30002: jump ££SNAKEWS00

 

 

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...
brotherbozar

I love this idea, its a real cheat but it's great. It brings to mind an assassin type character who can always evade the law and get away. I'd like to see a version without the bribe but just using a cloths change to reduce your wanted level. Kind of assassins tools:

A 'robbing' outfit': Balaclava and any dark clothes you see fit, maybe black windcheater and some dark jeans or joggers, maybe leather jeans. And some black sneakers.

Just a couple of weapons suitable for a stealthy guy: the silenced pistol, MP5 and satchel charges.

And a couple of other changes of clothes including tweed suit and dark shades or rimmed shades from DS, and just green jeans, some sneakers and T shirt.

But of course with the emphasis on the fact that a change of clothes will lower your wanted level, i love the idea of nipping down an alley and changing my clothes like superman...LOL, sounds pervy.

So consider this a MOD REQUEST ...please!

 

Oh...and the age old question, where do i put this code please i really want to try this out. Thanks ..great stuff.

EDIT: Ok i must be blind, didn't see the instuctions thanks blush.gif

Edited by brotherbozar
Link to comment
Share on other sites

jamienosdude
I love this idea, its a real cheat but it's great. It brings to mind an assassin type character who can always evade the law and get away. I'd like to see a version without the bribe but just using a cloths change to reduce your wanted level. Kind of assassins tools:

A 'robbing' outfit': Balaclava and any dark clothes you see fit, maybe black windcheater and some dark jeans or joggers, maybe leather jeans. And some black sneakers.

Just a couple of weapons suitable for a stealthy guy: the silenced pistol, MP5 and satchel charges.

And a couple of other changes of clothes including tweed suit and dark shades or rimmed shades from DS, and just green jeans, some sneakers and T shirt.

But of course with the emphasis on the fact that a change of clothes will lower your wanted level, i love the idea of nipping down an alley and changing my clothes like superman...LOL, sounds pervy.

So consider this a MOD REQUEST ...please!

 

Oh...and the age old question, where do i put this code please i really want to try this out. Thanks ..great stuff.

EDIT: Ok i must be blind, didn't see the instuctions thanks blush.gif

theres a tutorial by craig in this forum at link http://www.gtaforums.com/index.php?showtop...0entry1782668

 

thanks to him i know how to do it

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.