Page 1 of 1
Adding award weapons/awards
Posted: Sat Jun 19, 2010 9:30 pm
by SAMofBIA
im making a (hopefully) good map and i have started making custom weapons(no new msh's or anything) and i have run into problems with award weapons. for an example: i made a gun called the "rep_weap_inf_AA-12" (automatic shotgun for small bursts(MW2 inspired)) it shoots great and it is a great weapon that works perfectly. i also made its award weapon "rep_weap_award_AA-12" and ive created all of their ord's tracer's and the com_weap forms. but i have no clue how to get my award weapon working. if someone could help me, it would be great
--thanks, SAMofBIA
Re: adding award weapons/awards
Posted: Sat Jun 19, 2010 9:34 pm
by Deviss
well you added this line in both odf (award and inf) ?
MedalsTypeToUnlock = 5
ScoreForMedalsType = 5
second in your award odf you have this line
[WeaponClass]
ClassParent = "com_weap_award_shotgun"
and into your inf odf this line
[WeaponClass]
ClassParent = "com_weap_inf_shotgun"
??
Re: adding award weapons/awards
Posted: Sat Jun 19, 2010 11:09 pm
by SAMofBIA
for the AA-12 i have all that is required according to you, but i dont have the class parent as com_weap_award_shotgun nor do i have com_weap_inf_shotgun as the inf's parent. I made a whole new weapon (besides msh/skins) and made a "com_weap_award_AA-12" and a "com_weap_inf_AA-12" do i somehow need to create a whole new award system for my map? instead of sticking to the old one? (btw, this > :plokoon: <is kind of scary)
Re: adding award weapons/awards
Posted: Sat Jun 19, 2010 11:43 pm
by Deviss
SAMofBIA wrote:for the AA-12 i have all that is required according to you, but i dont have the class parent as com_weap_award_shotgun nor do i have com_weap_inf_shotgun as the inf's parent. I made a whole new weapon (besides msh/skins) and made a "com_weap_award_AA-12" and a "com_weap_inf_AA-12" do i somehow need to create a whole new award system for my map? instead of sticking to the old one? (btw, this > :plokoon: <is kind of scary)
no, only add those things to your weapons odfs (no ordcenance xD) and if you are leyend in shotgun so you will

if is turret prop maybe that is the problem i am not sure
Re: adding award weapons/awards
Posted: Sun Jun 20, 2010 10:53 am
by MercuryNoodles
Just to clarify, MedalsTypeToUnlock adds that weapon to the visible inventory upon achieving the award, and MedalsTypeToLock will remove the associated weapon from it. Make sure you're using the right parameter. You don't need to associate with the stock weapons at all. It only needs the parameters set somewhere in your weapons' odf properties, and the weapon odfs referenced in your unit odf. At least, that's the way I remember it off the top of my head.
Deviss also brings up a good point in that you need to have earned the award enough times on the profile you're using in order to activate the award weapon.
Re: adding award weapons/awards
Posted: Sun Jun 20, 2010 3:06 pm
by SAMofBIA
hmmm well i got my AA-12 award weapon working (i believe thanks to deviss's first reply, tnks) but my blazer (a cross between a chaingun, sniper, and absolute doom) still doesnt have the awards working. im going to try getting even more awards for it to see if anything changes.
(the blazer is a chaingun that shoots green variants of the regular chaingun, its for the droid sniper, it makes the sniper sound when fired, and it is a semi-auto gun with a pistol animation bank...the award changes it into its complete doom form which is full auto and a nasty gun to run into), also my blazer has an issue with the little picture thats supposed to be in the weapons box. the pic is almost in teh middle of the screen (any fixes for that?)