Page 1 of 1

Adding weapons to units

Posted: Fri May 22, 2009 5:57 pm
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

Re: Adding weapons to units

Posted: Fri May 22, 2009 5:58 pm
by DarthD.U.C.K.
any bf2log errors?
(beside the common solderanim and invehicle ones)

Re: Adding weapons to units

Posted: Fri May 22, 2009 5:59 pm
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

Re: Adding weapons to units

Posted: Fri May 22, 2009 5:59 pm
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?

Re: Adding weapons to units

Posted: Fri May 22, 2009 6:00 pm
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?

Re: Adding weapons to units

Posted: Fri May 22, 2009 6:02 pm
by RogueCruiser
I copied the text from rep_inf_rocket_chaingun or something close to that

Re: Adding weapons to units

Posted: Fri May 22, 2009 6:02 pm
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

Re: Adding weapons to units

Posted: Fri May 22, 2009 6:05 pm
by RogueCruiser
Ok, I just thought it might work without putting them in, because they are in original, just trying, now i know