Page 1 of 1

Missing Weapon Icons!

Posted: Mon Apr 11, 2011 6:35 pm
by Marth8880
All of my weapons' HUD icons decided to run away and never come back! :runaway: I am guessing this is because I edited all of the weapons' ODF names.

Here is an example ODF:

cis_weap_inf_pistol_shredder.odf
Hidden/Spoiler:
[code][WeaponClass]
ClassParent = "com_weap_inf_pistol_shredder"
GeometryName = "cis_weap_inf_pistol.msh"

[Properties]

HUDTag = "hud_cis_pistol"
GeometryName = "cis_weap_inf_pistol"
HighResGeometry = "cis_1st_weap_inf_pistol"
OrdnanceName = "cis_weap_inf_pistol_shredder_ord"


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

FireSound = "cis_weap_inf_pistol_fire"
FireEmptySound = "com_weap_inf_ammo_empty"
FireLoopSound = ""
ReloadSound = ""
ChargeSound = ""
OverheatSound = "com_weap_energy_depleted"
OverheatSoundPitch = "0.5"
OverheatStopSound = "com_weap_energy_refilled"
ChangeModeSound = "com_weap_inf_equip_sm"
WeaponChangeSound = "com_weap_inf_equip_sm"
JumpSound = "com_weap_inf_pistol_mvt_jump"
LandSound = "com_weap_inf_pistol_mvt_land"
RollSound = "com_weap_inf_pistol_mvt_roll"
//ProneSound = "com_weap_inf_pistol_mvt_lie"
SquatSound = "com_weap_inf_pistol_mvt_squat"
//StandSound = "com_weap_inf_pistol_mvt_getup"[/code]
As you can see, I even tried adding the line "HUDTag = "hud_cis_pistol", but it didn't work.

The only HUD icon MSHs that seem to exist at all anywhere are the ones for the non-ordnance-firing weapons except for the flamethrower and the SBD's wrist blaster and wrist rocket.

Where did they all scatter off to?!?

Re: Missing Weapon Icons!

Posted: Tue Apr 12, 2011 5:54 pm
by Commander_Fett
The game uses the actual weapon model for the hud icon, and sets up the positioning for each odf. Since you renamed the weapon odf, there's no coordinates set up for the pistol, so you'll need to set it up yourself. FragMe! explains it very well and set up a tutorial on how to set up your own hud coordinates for custom weapons HERE in the faq thread.

Re: Missing Weapon Icons!

Posted: Wed Apr 13, 2011 2:13 am
by AQT
Marth8880 wrote:I am guessing this is because I edited all of the weapons' ODF names.
Commander_Fett wrote:Since you renamed the weapon odf, there's no coordinates set up for the pistol
Renaming the ODF will not matter but rather it's the name of the MSH itself.

@Marth8880: Cis_weap_inf_pistol.msh should by default already have a fixed HUD icon. Using the parameter HUDTag with a nonexistent model name in the ODF will result in no icon at all, so you should remove that line all together.