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
Adding weapons to units
Moderator: Moderators
- RogueCruiser
- 3rd Warning

- Posts: 144
- Joined: Sun May 10, 2009 4:09 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Inside a whale.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Adding weapons to units
any bf2log errors?
(beside the common solderanim and invehicle ones)
(beside the common solderanim and invehicle ones)
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Adding weapons to units
WEAPONSECTION = 1RogueCruiser wrote:Hidden/Spoiler:
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
- RogueCruiser
- 3rd Warning

- Posts: 144
- Joined: Sun May 10, 2009 4:09 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Inside a whale.
Re: Adding weapons to units
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?
oh and do i need to add the msh and tga to my custom side?
- B.I.G_Cookie
- High General

- Posts: 839
- Joined: Sun Feb 22, 2009 4:28 pm
- Location: Frankfurt, Germany
Re: Adding weapons to units
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?
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?
- RogueCruiser
- 3rd Warning

- Posts: 144
- Joined: Sun May 10, 2009 4:09 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Inside a whale.
Re: Adding weapons to units
I copied the text from rep_inf_rocket_chaingun or something close to that
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Adding weapons to units
ovbiouly you need the msh and tga files from chaingun weapon lolRogueCruiser 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?
- RogueCruiser
- 3rd Warning

- Posts: 144
- Joined: Sun May 10, 2009 4:09 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Inside a whale.
Re: Adding weapons to units
Ok, I just thought it might work without putting them in, because they are in original, just trying, now i know
