Missing Weapon Icons!

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Missing Weapon Icons!

Post 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?!?
Commander_Fett
High General
High General
Posts: 847
Joined: Fri Oct 17, 2008 9:59 pm
Projects :: No Mod project currently.

Re: Missing Weapon Icons!

Post 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.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Missing Weapon Icons!

Post 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.
Post Reply