Page 1 of 1
How do I add weapons to a unit? [Solved]
Posted: Wed Jul 29, 2009 12:08 pm
by Par3210
Hi! I want to add a bulldog weapon and also some detpacks to Jango Fett.
How would I do this?
Ty in advance.
Re: Need To Make Weapons
Posted: Wed Jul 29, 2009 12:12 pm
by Fierfek
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.
Re: Need To Make Weapons
Posted: Wed Jul 29, 2009 12:13 pm
by Par3210
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?
Re: Need To Make Weapons
Posted: Wed Jul 29, 2009 12:34 pm
by Fierfek
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.
Re: Need To Make Weapons
Posted: Wed Jul 29, 2009 12:58 pm
by Par3210
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?
Re: Need To Make Weapons
Posted: Wed Jul 29, 2009 12:59 pm
by vegati
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.
Re: Need To Make Weapons
Posted: Wed Jul 29, 2009 1:00 pm
by Fierfek
Par3210 wrote:do i need any textures or mshs or anything
As long as you have the whole cis side in that folder, you should be fine.
Re: Need To Make Weapons
Posted: Wed Jul 29, 2009 1:05 pm
by Par3210
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?
This still needs answering. Please?
Re: Need To Make Weapons
Posted: Wed Jul 29, 2009 1:10 pm
by vegati
WEAPONSECTION = 1
WeaponName1 = "cis_weap_inf_bulldog"
WeaponAmmo1 = 8
That is where you make the changes to ammo (the place highlighted in red)
Re: Need To Make Weapons
Posted: Wed Jul 29, 2009 1:16 pm
by Par3210
does it stand for the ammo?
Re: Need To Make Weapons
Posted: Wed Jul 29, 2009 1:17 pm
by AQT
The number of clips.
Re: Need To Make Weapons
Posted: Wed Jul 29, 2009 1:18 pm
by Par3210
Oh thank you very much AQT.
Do you know how I would set the weapon's ammo?
Re: Need To Make Weapons
Posted: Wed Jul 29, 2009 1:20 pm
by vegati
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.
Re: Need To Make Weapons
Posted: Wed Jul 29, 2009 1:21 pm
by Par3210
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.
Re: Need To Make Weapons
Posted: Wed Jul 29, 2009 1:22 pm
by AQT
In the weapon's ODF itself, the line RoundsPerClip = "" determines the capacity of shots in a single clip.
Re: Need To Make Weapons
Posted: Wed Jul 29, 2009 1:32 pm
by Par3210
thanks much!