View Full Version : secondary weapons
i am krazy
09-14-2007, 05:30 PM
can there only be 2 weapons for a unit or can there be more? if so how coul i do that?
CaptainIraq
09-14-2007, 05:59 PM
Just take a look at the Ranger's modules and use them with another unit. You'll have to do some experimenting, but I've gotten it to work. All I can remember is you have to add the weapons as PRIMARY, SECONDARY, or TERTIARY. Also, you will need to edit the CommandButton.ini and CommandSet.ini files. Plus, you will need to edit the .csf file if you want to give you weapon an explanation.
i am krazy
09-14-2007, 06:59 PM
whats TERTIARY? is that like 3?
Tesla
09-14-2007, 07:08 PM
yes
i am krazy
09-14-2007, 08:19 PM
k thx iraq, got it workin, but theres a problem, 2 accualy. but both upgraes must be perchese before the third upgrade can be used, almost as if there linked or something heres my weaponset for the ranger if that helps
WeaponSet
Conditions = None
Weapon = PRIMARY RangerAdvancedCombatRifle
End
WeaponSet
Conditions = PLAYER_UPGRADE
Weapon = PRIMARY RangerAdvancedCombatRifle
Weapon = SECONDARY RangerFlashBangGrenadeWeapon
Weapon = TERTIARY ColonelBurtonKnifeWeapon
AutoChooseSources = PRIMARY FROM_SCRIPT FROM_AI DEFAULT_SWITCH_WEAPON
AutoChooseSources = SECONDARY FROM_SCRIPT FROM_AI
WeaponLockSharedAcrossSets = Yes ; This set is so similar to the default set that it can hold the weapon lock
End
dont know if anything else is involved
second question: anyway i can get the ranger to use col burtons stab animations?
CaptainIraq
09-25-2007, 09:22 PM
It's as simple as making the prerequisite for the 2nd upgrade be the 1st upgrade, and the 2nd being the perequisite for the 3rd. I haven't modded in a while so I don't know where the files are, however, look in the upgrades and use an upgrade that already uses a prerequisite as a model.
As for the second question, you'd need some serious 3d editing skills and 3Dsmax to do that. Neither of which I have.
Also, in your coding you will need an "AutoChooseSources" for the tertiary, being "DEFAULT_SWITCH_WEAPON" and MAYBE "FROM_SCRIPT". Don't use "FROM_AI" though, unlessyou somehow program te AI to use that weapon in certain situations.
vBulletin® v3.8.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.