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

Gangs equipment


DevelopeR
 Share

Recommended Posts

How to create a mod that equip your homies with AK's, M4, Rocket Launcher's and Miniguns. And I want to have some proportions:

40% - with Pistols

30% - with Tec-9

10% - with Shotguns

8% - with AK's

8% - with M4

2%-with Rocket Launcher's

2% - with Minigun.

OK. If to create a proportions is very hard, can I simply equip my gang with SMG and AK?

Link to comment
Share on other sites

brotherbozar

mmm.. i'd like to know also.

 

I'm a newb at this but don't your gangs weapons get upgraded or something when you've sprayed all the tags? I think so (i've not played many missions yet), if so then i'm sure there's a piece of code there for it and it's probably a case of just changing the weapon ID's ...DEPENDANT ON ANIMATIONS PERHAPS... i really don't know but it'll be worth finding out about what guns your gang members have animations for (stance,firing ect, and the actual weapon model itself)...again i say PROBABLY but i'm just speculating.

If you wan't to simply make your gang (gang2) tougher then you can simply change their stats in data/pedstats.dat - open with notepad or use an editor.

Edited by brotherbozar
Link to comment
Share on other sites

Maybe you'll want to try the Give 'n Take mod by mrTi. As the name states, with it you can give your recruited gang members any weapon that you have. You can also take it back, or take THEIR weapon.

 

And no, your gang doesnt get upgraded with weapons when you spray all tags. As far as I know weapons only spawn in your Johnson House. These are the AK,Ingram, and Molotovs. Might be a little wrong on which weapons tho. -Bigun

Link to comment
Share on other sites

bigun i think you a wrong, the gang get a upgrade with Desert Eagles, MP5´s and knifes i think, and still 45er. but i want also pumpgun, molotov AK or M4 etc.

 

 

Link to comment
Share on other sites

Oh yes. Thanks Opius. I just checked the SCM with that opcode, and yes, your gang does get diffrent weapons when you get all tags. Desert Eagle, MP5, and knife.

Sorry for mistaking ya'll.

Link to comment
Share on other sites

brotherbozar

Way to go Opius! wink.gif

 

(EDIT) , Ok i've been testing this and it seems to work fine... i had my gangs weapons upgraded after the 'Robbing Uncle Sam' mission to Knife, Desert Eagle and MP5 (i hate that mission). When i collect all tags they should get , Katana, Silenced Pistol and M4 but i just can't be arsed right now.

...I'm wondering what happens if you spray all tags before doing the 'robbing uncle sam' mission though...Downgrade from MP5 to Tec9 perhaps?

Edited by brotherbozar
Link to comment
Share on other sites

is it possible that they have more then 3-4 weapons, i find it more real when they take from the whole arsenal of "light" weapons.

 

and have i see this right. that i have to change the line in main.scm ?

Link to comment
Share on other sites

brotherbozar

...yes thats right, MAIN.SCM, there are TWO instances of it - the first at the end of 'robbing uncle sam' and the second when you collect all tags... They still seem to use the colt45 mostly hower.... even if you don't give them one.

After 'robbing uncle sam' when my boys got their new weapons there were only one or two carrying the new guns (D.Eagle and MP5)...a few more had knives, so now i'm thinking if i give them less choice... perhaps something like:

 

0237: gang_weapons 1 31 (deleting last two)

 

... then maybe they'll carry an M4 more often?

 

Opius sais to change the last 3, well the first is 'knuckleduster'....any reason for this Opius?

 

I think i might try and give them just MP5 and M4 and see what happens....

Link to comment
Share on other sites

First parameter is the gang this applies to. That's why I said only edit the last three values.

 

And you have to have the correct amount of parameters for an opcode or else it won't compile. If you want a gang to only use a particular weapon, use that weapon number in all three slots.

Link to comment
Share on other sites

brotherbozar

(edited so as not to confuse)

 

I'll just turn this into a quick tutorial (because people are asking) for noobs like me who want cool weapons at the start of the game for their gang to keep for the entire game, and thanks to Opius for his crucial help.

This gives your gang the weapons of your choice upon passing the first mission in the game (the bike ride one 'big smoke')

 

First, backup your MAIN.scm and SCRIPT.img found in GTAsan andreas/data/script

 

a)Open your 'MAIN.scm' using Bartons mission builder and use the 'find' function to find these two lines.

 

0237: gang_weapons 1 24 29 4

 

...and:

 

0237: gang_weapons 1 22 32 0

 

b) Delete both lines but before you do, make a copy of one of them (paste it in notepad or something).

 

c) Now use the find function to look for this:

 

:INTRO1_2230

 

...a few lines underneath this line you'll see the line:

 

030C: set_mission_points += 1

 

d) Now paste or type in the line you copied directly under that one and change the last three numbers to the ID numbers of the weapons you want your gang to have, - the first number, as Opius stated tells which gang to give the weapons to, so just leave it.

 

e) Now go to 'run' and compile the file and copy over the MAIN.scm and SCRIPT.img from the mission builder folder into your GTASanandreas/data/scripts folder and run the game.

Note - Your gang will no longer get its weapons upgraded after the mission 'robbing uncle sam' or when you collect all tags (you'll still get your respect and weapon pickups though).

 

Here's the (incomplete) list of weapon ID's again:

 

0 - Unarmed

1 - Brass Knuckles

2 - Golf Club

3 - Night Stick

4 - Knife

5 - Baseball Bat

6 - Shovel

7 - Pool cue

8 - Katana

9 - Chainsaw

10 - Purple Dildo

11 - White Dildo

12 - Long White Dildo

13 - White Dildo 2

14 - Flowers

15 - Cane

16 - Grenades

17 - Tear Gas

18 - Molotovs

19 - Missile (crashes if you try to fire)

20 - Missile (crashes if you try to fire)

21 - Missile (crashes if you try to fire)

22 - Pistol

23 - Silenced Pistol

24 - Desert Eagle

25 - Shotgun

26 - Sawn Off Shotgun

27 - Combat Shotgun

28 - Micro Uzi (Mac 10)

29 - MP5

30 - AK47

31 - M4

32 - Tec9

33 - Rifle

34 - Sniper Rifle

35 - RPG

36 - Missile Launcher

37 - Flame Thrower

38 - Minigun

39 - Sachet Charges

40 - Detonator

 

... Go crazy.

Edited by brotherbozar
Link to comment
Share on other sites

  • 3 weeks later...
You just might have to make an external script for that.

My research suggests that assigning an external thread to a ped model only allows it to be run once at a time. When studying HOME_BRAINS, I told it to be called upon for all 10 prostitute models, but there was only ever one afflicted at any given time. So that would work, but would be VERY limited in scope. Possible workaround: If the opcode/process for that is one time and needn't be looped, an end thread should make it appear on more than one. The nature of gang spawning in VC/SA though is generally in clumps, so even that might not be fast enough to see it on more than one per group.

 

I'm shocked this is a topic at all. It's been set by opcode since GTA3. Nobody searches anymore tounge.gif

Link to comment
Share on other sites

  • 3 months later...

been reading through this for a while now, nice work! okay question, am to understand that if i wanted to set other gangs to have different weapons, i would go about it by adding this line: 0237: gang_weapons 1 24 29 4, and changing the first number to whichever gang i wanted to have different weapons?

Link to comment
Share on other sites

 

is there anyway I can make it so that they spawn with Dual uzis

there are some missions(i think that the final mission too) that have guys shooting at you with doual wielded guns.

hell i know for sure that happens, as I got really pissed during a mission the first time I've beat the game cuz those muthafu*kers had dual uzis/tecs and I didn't.

 

so maybe there are some opcodes. just search through the last mission, cuz I remember that there were guys having dual guns in that one.

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.