Code: Select all
script 1 ENTER
{
HudMessage(s:"Health: ",d:CheckInventory("Health");0,0,CR_GREEN,0.0,0.5,0);
HudMessage(s:"Armor: ",d:CheckInventory("Armor");0,1,CR_GREEN,0.0,0.525,0);
HudMessage(s:"Bullets: ",d:CheckInventory("Clip");0,2,CR_GREEN,0.0,0.55,0);
HudMessage(s:"Shells: ",d:CheckInventory("Shell");0,3,CR_GREEN,0.0,0.575,0);
HudMessage(s:"Rockets: ",d:CheckInventory("RocketAmmo");1,4,CR_GREEN,0.0,0.6,0);
HudMessage(s:"Cells: ",d:CheckInventory("Cell");0,5,CR_GREEN,0.0,0.625,0);
Delay(1);
restart;
}
Also, is there any way to read what kind of armor type the player is wearing? It'd be nice to do a check inventory and display ammo type in blue (or whatever) if it's type 2, for custom huds.