How do I add weapons to a unit? [Solved]
Moderator: Moderators
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
How do I add weapons to a unit? [Solved]
Hi! I want to add a bulldog weapon and also some detpacks to Jango Fett.
How would I do this?
Ty in advance.
How would I do this?
Ty in advance.
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Need To Make Weapons
Haha, the newest version of my guide (coming out within the next few days) explains exactly how to do this.
Go find Jango's odf file, and go down to the weapons section.
Take a look at it, then come back here.
Go find Jango's odf file, and go down to the weapons section.
Take a look at it, then come back here.
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Need To Make Weapons
I did, just now.
I know about the WEAPONSECTION bit. Just not sure how to add them. Can I add weapons from the common folder?
I know about the WEAPONSECTION bit. Just not sure how to add them. Can I add weapons from the common folder?
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Need To Make Weapons
Okay, here is the Weapon Section:
To make it a secondary weapon, it has "weaponchannel = 1" on it.
To make him have a bulldog rlr and detpack, it would look like this:
That is how it would need to look for him to have all his original weapons plus a bulldog and detpacks.
Hidden/Spoiler:
To make him have a bulldog rlr and detpack, it would look like this:
Hidden/Spoiler:
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Need To Make Weapons
do i need any textures or mshs or anything
and what does the WeaponAmmo stand for? I think I recall seeing it in the docs being the amount of ammo? But I don't want my bulldog to have only 5 ammo
Or does it mean something else?
and what does the WeaponAmmo stand for? I think I recall seeing it in the docs being the amount of ammo? But I don't want my bulldog to have only 5 ammo
Last edited by Par3210 on Wed Jul 29, 2009 1:00 pm, edited 1 time in total.
-
vegati
- Chief Warrant Officer

- Posts: 352
- Joined: Fri Dec 26, 2008 1:21 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: At Gametoast.com enjoyin some fresh salmon jerky. Mmmmmm.
- Contact:
Re: Need To Make Weapons
You need to copy over any files associated with the bulldog into your sides folder. Since the bulldog is a CIS weapon and jango is a CIS hero then you probably don't have to do this unless he is in a custom side.
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Need To Make Weapons
As long as you have the whole cis side in that folder, you should be fine.Par3210 wrote:do i need any textures or mshs or anything
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Need To Make Weapons
This still needs answering. Please?and what does the WeaponAmmo stand for? I think I recall seeing it in the docs being the amount of ammo? But I don't want my bulldog to have only 5 ammoOr does it mean something else?
-
vegati
- Chief Warrant Officer

- Posts: 352
- Joined: Fri Dec 26, 2008 1:21 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: At Gametoast.com enjoyin some fresh salmon jerky. Mmmmmm.
- Contact:
Re: Need To Make Weapons
WEAPONSECTION = 1
WeaponName1 = "cis_weap_inf_bulldog"
WeaponAmmo1 = 8
That is where you make the changes to ammo (the place highlighted in red)
WeaponName1 = "cis_weap_inf_bulldog"
WeaponAmmo1 = 8
That is where you make the changes to ammo (the place highlighted in red)
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Need To Make Weapons
does it stand for the ammo?
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Need To Make Weapons
The number of clips.
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Need To Make Weapons
Oh thank you very much AQT.
Do you know how I would set the weapon's ammo?
Do you know how I would set the weapon's ammo?
-
vegati
- Chief Warrant Officer

- Posts: 352
- Joined: Fri Dec 26, 2008 1:21 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: At Gametoast.com enjoyin some fresh salmon jerky. Mmmmmm.
- Contact:
Re: Need To Make Weapons
So say that a standard clip held 150 bullets and in the ODF you told it to have 3 clips. How many bullets would you have?
If you're any good at math then it'll be easy for you but if you're like me you should always keep a calculator handy.
*EDIT* I'm not sure how that would be done, but it's probably possible.
Hidden/Spoiler:
*EDIT* I'm not sure how that would be done, but it's probably possible.
Last edited by vegati on Wed Jul 29, 2009 1:21 pm, edited 1 time in total.
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Need To Make Weapons
lol
thanks
I just wanted to know how to change the amount of ammo though. I want it to be something like 700 for the pistol and 100 for the bulldog, and 8 for the detpacks.
I just wanted to know how to change the amount of ammo though. I want it to be something like 700 for the pistol and 100 for the bulldog, and 8 for the detpacks.
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Need To Make Weapons
In the weapon's ODF itself, the line RoundsPerClip = "" determines the capacity of shots in a single clip.
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Need To Make Weapons
thanks much!
