Page 1 of 1

Weapon not showing up [Solved]

Posted: Sun Feb 20, 2011 8:55 pm
by Fiodis
One of my weapons isn't showing up in-game, but there are no messages whatsoever about it in the error log or munge log. The same unit has another custom weapon that works fine. The game does not crash - it's just as if I had never added the weapon in the first place. What could be wrong?

Re: Weapon not showing up

Posted: Sun Feb 20, 2011 9:00 pm
by 501st_commander
Did you add the weapon to the unit? Not saying you didn't, but this is the only thing i can think of.

Re: Weapon not showing up

Posted: Sun Feb 20, 2011 9:47 pm
by ACEwithSPADES
does it have a class parent(although if it didn't i think crash) but other then what commander said i can't think of anything else :?

Re: Weapon not showing up

Posted: Sun Feb 20, 2011 9:56 pm
by Firefang
Did you check that all numbers (ammo, name, etc.) match up to the weapon number? And that everything is spelled right?

Re: Weapon not showing up

Posted: Sun Feb 20, 2011 10:17 pm
by Fiodis
It does have a class parent. I have checked multiple times for stupid mistakes and have found none.

Re: Weapon not showing up

Posted: Sun Feb 20, 2011 10:20 pm
by ACEwithSPADES
can u post the weps odf?

Re: Weapon not showing up

Posted: Sun Feb 20, 2011 10:22 pm
by Fiodis
Odf:
Hidden/Spoiler:
[code][WeaponClass]
ClassParent = "com_weap_inf_sniper_rifle"
GeometryName = "rep_weap_inf_sniperrifle.msh"

[Properties]
GeometryName = "rep_weap_inf_sniperrifle"
HighResGeometry = "rep_weap_inf_sniperrifle"

OrdnanceName = "rep_weap_testaimer_ord"
FirePointName = "hp_fire"

MedalsTypeToUnlock = 4
ScoreForMedalsType = 9999

MinRange = "8"
OptimalRange = "64"
MaxRange = "128"
AIUseBubbleCircle = "1"
AIBubbleSizeMultiplier = "0.6"

LockOnRange = "0.0"
LockTime = "0.0"
LockOnAngle = "1.0"

ReticuleInAimingOnly = 1
SniperScope = 0
ZoomFirstPerson = 0
ZoomMin = "1.0"
ZoomMax = "1.0"
ZoomRate = "0.0"

YawSpread = "0.0"
PitchSpread = "0.0"

KickStrength = "0.0" // "2.0"

SpreadPerShot = "1.1"
SpreadRecoverRate = "4.8"
SpreadThreshold = "1.6"
SpreadLimit = "6.0"

StandStillSpread = "0.0"
StandMoveSpread = "0.0"
CrouchStillSpread = "0.0"
CrouchMoveSpread = "0.0"
ProneStillSpread = "0.0"
ProneMoveSpread = "0.0"

//***********************************************
//*********** WEAPON PERFORMANCE VALUES *********
//***********************************************

RoundsPerClip = "0"
ReloadTime = "1.0"
ShotDelay = "0.25"
TriggerSingle = "1"
MaxPressedTime = "0.0"

SalvoCount = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.0"
SalvoTime = "0.0"

//************************************************
//******************* SOUND *****************
//************************************************

FireSound = "rep_weap_inf_sniper_rifle_fire"
ReloadSound = "com_weap_inf_reload_med"
ChangeModeSound = "com_weap_inf_blaster_rifle_modechange"
FireEmptySound = "com_weap_inf_ammo_empty"
WeaponChangeSound = "com_weap_inf_equip_med"
JumpSound = "com_weap_inf_rifle_mvt_jump"
LandSound = "com_weap_inf_rifle_mvt_land"
RollSound = "com_weap_inf_rifle_mvt_roll"
//ProneSound = "com_weap_inf_rifle_mvt_lie"
SquatSound = "com_weap_inf_rifle_mvt_squat"
//StandSound = "com_weap_inf_rifle_mvt_getup"


[/code]
Ordance:
Hidden/Spoiler:
[code][OrdnanceClass]
//This area defines the ordnances class and the effects associated with it.
ClassLabel = "beam"

[Properties]
//ImpactEffectWater = "com_sfx_watersplash_ord"

LaserTexture = "com_sfx_laser_red"
LaserGlowColor = "224 128 224 0"
//LightColor = "224 128 224 150"
//LightRadius = "4.0"


LaserWidth = "0.075"
FadeOutTime = "0.25"

//ImpactEffectSoft = "com_sfx_ord_exp"
//ImpactEffectRigid = "com_sfx_ord_exp"
//ImpactEffectStatic = "com_sfx_ord_exp"
//ImpactEffectTerrain = "com_sfx_ord_exp"
//ImpactEffectWater = "com_sfx_watersplash_ord"
//ImpactEffectShield = "com_sfx_ord_exp"

//ExpireEffect = "com_sfx_ord_exp"

LifeSpan = "6.0"
Range = "5.0"
Gravity = "1.0"
Rebound = "0.0"

OrdnanceSound = "com_weap_inf_ord_hum_sm"
CollisionSound = "imp_weap_ord_exp"

MaxDamage = "0.0"

PassThrough = "0"

VehicleScale = "0.1"
ShieldScale = "1.0"
PersonScale = "1.0"
DroidScale = "1.0"
BuildingScale = "0.1"

BonusAmplification = "0.5" //how much more damage will be done when team_bonus_blaster_amplication is on

[/code]

Re: Weapon not showing up

Posted: Sun Feb 20, 2011 10:26 pm
by ACEwithSPADES
pretty sure the
MedalsTypeToUnlock = 4
ScoreForMedalsType = 9999

is supposed to be the same...

Re: Weapon not showing up

Posted: Sun Feb 20, 2011 10:32 pm
by kinetosimpetus
Do you want the unit to always have the weapon? Then put both of those to -1.

ScoreForMedals type determines which award the weapon can earn. The type to lock and unlock codes determine which awards unlock or lock the weapon.

Re: Weapon not showing up

Posted: Mon Feb 21, 2011 1:44 pm
by Fiodis
kinetosimpetus wrote:Do you want the unit to always have the weapon? Then put both of those to -1.

ScoreForMedals type determines which award the weapon can earn. The type to lock and unlock codes determine which awards unlock or lock the weapon.
Thanks, setting them both to -1 made the weapon show up.