Custom HUD problem

Discuss all aspects related to modding Zandronum here.
Post Reply
ZzZombo
Forum Regular
Posts: 323
Joined: Mon Jun 11, 2012 12:11 pm
Location: Ravenholm

Custom HUD problem

#1

Post by ZzZombo » Sun Jun 17, 2012 2:37 pm

Code: Select all

InInventory InfectionMeter,1
{
	DrawBar "INFBAR1","INFBAR2",InfectionMeter,vertical,30,10;
}
Why this code just draws sprite of full infection bar regardless of infection player actually has. The sprites are defined in TEXTURES lump to scale them:

Code: Select all

sprite INFBAR1,64,78
{
	XScale	4.0
	YScale	4.0
	Offset	0,0
	Patch 	INFBARA,0,0
}
sprite INFBAR2,64,78
{
	XScale	4.0
	YScale	4.0
	Offset	0,0
	Patch 	INFBARB,0,0
}
Last edited by ZzZombo on Sun Jun 17, 2012 2:38 pm, edited 1 time in total.
QZRcon - Qt-based tool for Zandronum/Skulltag servers!
#grandvoid funny stats

Post Reply