Adding weapons to units

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.

Adding weapons to units

Post by RogueCruiser »

How would i add a weapon (chaingun) to a unit.

Would i put this in the odf?

WEAPONSECTION = 1
WeaponName1 = "rep_weap_inf_chaingun"
WeaponAmmo1 = 5

WEAPONSECTION = 2
WeaponName2 = "rep_weap_inf_pistol"
WeaponAmmo2 = 3

WEAPONSECTION = 3
WeaponName3 = "rep_weap_inf_thermaldetonator"
WeaponAmmo3 = 2
WeaponChannel3 = 1

WEAPONSECTION = 4
WeaponName4 = "rep_weap_inf_thermaldetonator"
WeaponAmmo4 = 2
WeaponChannel4 = 1

<that didn't work by the way
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Adding weapons to units

Post by DarthD.U.C.K. »

any bf2log errors?
(beside the common solderanim and invehicle ones)
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Adding weapons to units

Post by Deviss »

RogueCruiser wrote:
Hidden/Spoiler:
How would i add a weapon (chaingun) to a unit.

Would i put this in the odf?

WEAPONSECTION = 1
WeaponName1 = "rep_weap_inf_chaingun"
WeaponAmmo1 = 5

WEAPONSECTION = 2
WeaponName2 = "rep_weap_inf_pistol"
WeaponAmmo2 = 3

WEAPONSECTION = 3
WeaponName3 = "rep_weap_inf_thermaldetonator"
WeaponAmmo3 = 2
WeaponChannel3 = 1

WEAPONSECTION = 4
WeaponName4 = "rep_weap_inf_thermaldetonator"
WeaponAmmo4 = 2
WeaponChannel4 = 1

<that didn't work by the way
WEAPONSECTION = 1
WeaponName = "rep_weap_inf_chaingun"
WeaponAmmo = 0

WEAPONSECTION = 2
WeaponName = "rep_weap_inf_pistol"
WeaponAmmo = 0

WEAPONSECTION = 3
WeaponName = "rep_weap_inf_powerup_dispenser"
WeaponAmmo = 0
WeaponChannel = 1

WEAPONSECTION = 4
WeaponName = "rep_weap_inf_mine_dispenser"
WeaponAmmo = 3
WeaponChannel = 1

WEAPONSECTION = 5
WeaponName = "rep_weap_award_shotgun"
WeaponAmmo = 8

WEAPONSECTION = 6
WeaponName = "rep_weap_award_pistol"
WeaponAmmo = 5

this work fine for me :D
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: Adding weapons to units

Post by RogueCruiser »

no just ctd after i select him as a unit, (it shows no weapon in his hand or in his list)

oh and do i need to add the msh and tga to my custom side?
User avatar
B.I.G_Cookie
High General
High General
Posts: 839
Joined: Sun Feb 22, 2009 4:28 pm
Games I'm Playing :: Battlefield 4
Location: Frankfurt, Germany

Re: Adding weapons to units

Post by B.I.G_Cookie »

You added it right to the odf.
But you need the msh's, tga's, odf's and all sounds and effetcs of the weapon in your side folder I think..

btw. Why do you have 2 slots with the same weapons?
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: Adding weapons to units

Post by RogueCruiser »

I copied the text from rep_inf_rocket_chaingun or something close to that
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Adding weapons to units

Post by Deviss »

RogueCruiser wrote:no just ctd after i select him as a unit, (it shows no weapon in his hand or in his list)

oh and do i need to add the msh and tga to my custom side?
ovbiouly you need the msh and tga files from chaingun weapon lol
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: Adding weapons to units

Post by RogueCruiser »

Ok, I just thought it might work without putting them in, because they are in original, just trying, now i know
Post Reply