Changing grenade HUD icon texture?

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
SkinnyODST
Lieutenant Colonel
Lieutenant Colonel
Posts: 545
Joined: Mon Jul 04, 2016 10:56 pm
Location: My other account
Contact:

Changing grenade HUD icon texture?

Post by SkinnyODST »

My map has 2 grenade types, stock and EMP. They both use the same grenade hud icon with the red light. I've already made a texture with a blue light and made it it's own .msh and .tga file
hud_thermaldetonator_emp.msh and hud_thermalemponator.tga
but after looking at all the odf files relating to thermal detonators, I can't find a single place where the hud icon's texture is referenced. All I want to do is make the EMP grenade use the different texture so its easier to tell the two apart, how can I do this?
FlatulentMoth
Recruit Womprat Killer
Posts: 12
Joined: Thu Nov 29, 2018 4:50 pm
Projects :: No Mod project currently
Games I'm Playing :: SWBFII SE
xbox live or psn: No gamertag set
Location: Yes

Re: Changing grenade HUD icon texture?

Post by FlatulentMoth »

I want to say there is a texture in data_XYZ/common
SkinnyODST
Lieutenant Colonel
Lieutenant Colonel
Posts: 545
Joined: Mon Jul 04, 2016 10:56 pm
Location: My other account
Contact:

Re: Changing grenade HUD icon texture?

Post by SkinnyODST »

FlatulentMoth wrote:I want to say there is a texture in data_XYZ/common
There are, but I can't find where they're mentioned in the grenade odfs
FlatulentMoth
Recruit Womprat Killer
Posts: 12
Joined: Thu Nov 29, 2018 4:50 pm
Projects :: No Mod project currently
Games I'm Playing :: SWBFII SE
xbox live or psn: No gamertag set
Location: Yes

Re: Changing grenade HUD icon texture?

Post by FlatulentMoth »

My bad, I misread the question...

I am pretty sure that you should use the parameter "HUDTag" to define the hud texture. (kind of like defining models and textures)

So, in this case, just add the line:

Code: Select all

HUDTag = "hud_thermaldetonator_emp"
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Changing grenade HUD icon texture?

Post by ARCTroopaNate »

I've been having this problem as well, I tried this and it didn't work.
Post Reply