How to give your unit more than 4 weapons? [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
RogueCruiser
3rd Warning
3rd Warning
Posts: 144
Joined: Sun May 10, 2009 4:09 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: Inside a whale.

How to give your unit more than 4 weapons? [Solved]

Post by RogueCruiser »

I tried to give a unit 5 weapons, (4 primary and 1 secondary) this is my odf
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "all_inf_default_rocketeer"

[Properties]
GeometryName = "rep_inf_commando"
FirstPerson = "all\alltroop;all_1st_trooper"

WEAPONSECTION = 1
WeaponName = "imp_weap_inf_rifle"
WeaponAmmo = 7

WEAPONSECTION = 2
WeaponName = "all_weap_inf_commando_pistol"
WeaponAmmo = 7

WEAPONSECTION = 3
WeaponName = "cis_weap_inf_bulldog"
WeaponAmmo = 8

WEAPONSECTION = 4
WeaponName = "all_weap_inf_sniper_rifle"
WeaponAmmo = 7

WEAPONSECTION = 5
WeaponName = "all_weap_inf_thermaldetonator"
WeaponAmmo = 5
WeaponChannel = 1

the rifle and pistol show up in the primary position but the others are in the secondary box. The bulldog and sniper can than not be zoomed in, they can be shot but you have to click secondary shoot button and the weapon comes out to shoot but immeaditly goes back after you fire your shots instead of holding it. Also their icons float by your trooper to the left. (the bulldog and sniper)

How can i move these to the primary box instead?
User avatar
bobfinkl
Rebel Colonel
Rebel Colonel
Posts: 593
Joined: Sun Jul 13, 2008 9:01 am
Projects :: Lots of unreleased stuff
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: The quaint little city gametoast.

Re: How to give your unit more than 4 weapons?

Post by bobfinkl »

Add WeaponChannel = 0 to each of those weapons lines. And for the icons in random spots use this tutorial http://www.gametoast.com/forums/viewtop ... =64&t=9703.
User avatar
RogueCruiser
3rd Warning
3rd Warning
Posts: 144
Joined: Sun May 10, 2009 4:09 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: Inside a whale.

Re: How to give your unit more than 4 weapons?

Post by RogueCruiser »

Just literly 2 min before you said that I had experimented doing that and got it to work. Thanks anyway though :D that also fixed the icons too
User avatar
bobfinkl
Rebel Colonel
Rebel Colonel
Posts: 593
Joined: Sun Jul 13, 2008 9:01 am
Projects :: Lots of unreleased stuff
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: The quaint little city gametoast.

Re: How to give your unit more than 4 weapons?

Post by bobfinkl »

No problem, I'm always willing to help a new modder in need.
Post Reply