Changing the 'hint' icon for ammo packs.


(=SC=Beef) #1

I have changed the ‘hint’ icon for med pack as you can see in the below image:

All i did was edit the scripts/gfx_2d.shader

gfx/2d/healthhint
{
	nomipmaps
	nopicmip
	{
		map icons/iconw_medheal_select.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
	}
}

But i want to change the ammo pack ‘hint’ icon.
So i changed the shader as follows:

gfx/2d/ammohint
{
	nomipmaps
	nopicmip
	{
		map icons/iconw_ammopack_1_select.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		rgbGen vertex
	}
}

The result is:

so the above script turns out not to be for ammo as ‘usableHint.tga’ is used

Any idea of the script that i need to ajust? i cant find it


(nUllSkillZ) #2

Seems to be the correct shader.
What have you done so far?

Have you created a new shaderfile that contains the new shaders and which is packaged in a z_MYSHADER.pk3 file?
Tested in a clean installation?


(=SC=Beef) #3

I have modified the current shader, put it in ‘scripts’ directory and compiled to a pk3 with the rest of my mini mod.

To ensure no current shaders were preventing it working properly i simply compiled the single shader file into a .pk3 but the med icon works. not the ammo icon

Yes the install is clean


(=SC=Beef) #4

crys

Is there somewhere in the game code that says whats the right script?
if so can someone quickly look?


(=SC=Beef) #5

Thanks for your comment. however, thats the correct name and path for the TGA i wish to use.
Even using a custom image, the ‘useablehint’ icon is used

EDIT: Nail’s post dissapeard


(Jaquboss) #6

maybe he deleted it
the point is simple
the ammopacks are WEAPONS so they use same icons as weapon pickup hint
you might modify that one, but it will change all other pickups as well, be careful!


(=SC=Beef) #7

Bah thats all i needed to know

Cheers mate!