How do I add weapons to a unit? [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Par3210
Jedi
Jedi
Posts: 1033
Joined: Sun Jun 14, 2009 10:31 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Owning people in SWBF2
Contact:

How do I add weapons to a unit? [Solved]

Post 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.
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Need To Make Weapons

Post 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.
User avatar
Par3210
Jedi
Jedi
Posts: 1033
Joined: Sun Jun 14, 2009 10:31 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Owning people in SWBF2
Contact:

Re: Need To Make Weapons

Post 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?
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Need To Make Weapons

Post by Fierfek »

Okay, here is the Weapon Section:
Hidden/Spoiler:
WEAPONSECTION = 1
WeaponName1 = "cis_weap_hero_jangopistol"
WeaponAmmo1 = 8

WEAPONSECTION = 2
WeaponName2 = "cis_weap_hero_flamethrower"
WeaponAmmo2 = 3

WEAPONSECTION = 3
WeaponName3 = "cis_weap_inf_wrist_rocket_fett"
WeaponAmmo3 = 6
WeaponChannel3 = 1

WEAPONSECTION = 4
WeaponName4 = "cis_weap_inf_timebomb"
WeaponAmmo4 = 3
WeaponChannel4 = 1
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:
Hidden/Spoiler:
WEAPONSECTION = 1
WeaponName1 = "cis_weap_hero_jangopistol"
WeaponAmmo1 = 8

WEAPONSECTION = 2
WeaponName2 = "cis_weap_hero_flamethrower"
WeaponAmmo2 = 3

WEAPONSECTION = 3
WeaponName2 = "cis_weap_inf_bulldog"
WeaponAmmo2 = 5

WEAPONSECTION = 4
WeaponName3 = "cis_weap_inf_wrist_rocket_fett"
WeaponAmmo3 = 6
WeaponChannel3 = 1

WEAPONSECTION = 5
WeaponName4 = "cis_weap_inf_timebomb"
WeaponAmmo4 = 3
WeaponChannel4 = 1

WEAPONSECTION = 6
WeaponName4 = "cis_weap_inf_detpack"
WeaponAmmo4 = 4
WeaponChannel4 = 1
That is how it would need to look for him to have all his original weapons plus a bulldog and detpacks.
User avatar
Par3210
Jedi
Jedi
Posts: 1033
Joined: Sun Jun 14, 2009 10:31 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Owning people in SWBF2
Contact:

Re: Need To Make Weapons

Post 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 :x Or does it mean something else?
Last edited by Par3210 on Wed Jul 29, 2009 1:00 pm, edited 1 time in total.
vegati
Chief Warrant Officer
Chief Warrant Officer
Posts: 352
Joined: Fri Dec 26, 2008 1:21 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: At Gametoast.com enjoyin some fresh salmon jerky. Mmmmmm.
Contact:

Re: Need To Make Weapons

Post 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.
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Need To Make Weapons

Post 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.
User avatar
Par3210
Jedi
Jedi
Posts: 1033
Joined: Sun Jun 14, 2009 10:31 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Owning people in SWBF2
Contact:

Re: Need To Make Weapons

Post 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 :x Or does it mean something else?
This still needs answering. Please?
vegati
Chief Warrant Officer
Chief Warrant Officer
Posts: 352
Joined: Fri Dec 26, 2008 1:21 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: At Gametoast.com enjoyin some fresh salmon jerky. Mmmmmm.
Contact:

Re: Need To Make Weapons

Post 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)
User avatar
Par3210
Jedi
Jedi
Posts: 1033
Joined: Sun Jun 14, 2009 10:31 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Owning people in SWBF2
Contact:

Re: Need To Make Weapons

Post by Par3210 »

does it stand for the ammo?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Need To Make Weapons

Post by AQT »

The number of clips.
User avatar
Par3210
Jedi
Jedi
Posts: 1033
Joined: Sun Jun 14, 2009 10:31 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Owning people in SWBF2
Contact:

Re: Need To Make Weapons

Post by Par3210 »

Oh thank you very much AQT.
Do you know how I would set the weapon's ammo?
vegati
Chief Warrant Officer
Chief Warrant Officer
Posts: 352
Joined: Fri Dec 26, 2008 1:21 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: At Gametoast.com enjoyin some fresh salmon jerky. Mmmmmm.
Contact:

Re: Need To Make Weapons

Post 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?
Hidden/Spoiler:
450
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.
Last edited by vegati on Wed Jul 29, 2009 1:21 pm, edited 1 time in total.
User avatar
Par3210
Jedi
Jedi
Posts: 1033
Joined: Sun Jun 14, 2009 10:31 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Owning people in SWBF2
Contact:

Re: Need To Make Weapons

Post by Par3210 »

lol :P 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.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Need To Make Weapons

Post by AQT »

In the weapon's ODF itself, the line RoundsPerClip = "" determines the capacity of shots in a single clip.
User avatar
Par3210
Jedi
Jedi
Posts: 1033
Joined: Sun Jun 14, 2009 10:31 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Owning people in SWBF2
Contact:

Re: Need To Make Weapons

Post by Par3210 »

thanks much!
Post Reply