/*
This is a mod for SmoothDoom's HUD face that improves the 
randomization and timing of the eyes, as well as adds occasional
blinking from StalkerZHS (sprites) and NightFright (some code)
I also tweaked the Rampage status (code) and the STFST01 and 03 frames
The face-looking-down animation from the Rampage status is still not
implemented due to not having sprites finished--if anyone wants this
done, bother me and I'll try and make some sprites
-OnslaughtSix
*/

base Doom;

statusbar normal // Standard Doom Status bar
{
	drawimage "STBAR", 0, 168;
	drawimage "STTPRCNT", 90, 171;
	drawimage "STTPRCNT", 221, 171;
	drawnumber 3, HUDFONT_DOOM, untranslated, ammo1, 44, 171;
	drawnumber 3, HUDFONT_DOOM, untranslated, health, 90, 171;
	drawnumber 3, HUDFONT_DOOM, untranslated, armor, 221, 171;

	//keys
	drawswitchableimage keyslot 2 && 5, "nullimage", "STKEYS0", "STKEYS3", "STKEYS6", 239, 171;
	drawswitchableimage keyslot 3 && 6, "nullimage", "STKEYS1", "STKEYS4", "STKEYS7", 239, 181;
	drawswitchableimage keyslot 1 && 4, "nullimage", "STKEYS2", "STKEYS5", "STKEYS8", 239, 191;

	drawnumber 3, INDEXFONT_DOOM, untranslated, ammo(Clip), 288, 173;
	drawnumber 3, INDEXFONT_DOOM, untranslated, ammo(Shell), 288, 179;
	drawnumber 3, INDEXFONT_DOOM, untranslated, ammo(RocketAmmo), 288, 185;
	drawnumber 3, INDEXFONT_DOOM, untranslated, ammo(Cell), 288, 191;

	drawnumber 3, INDEXFONT_DOOM, untranslated, ammocapacity(Clip), 314, 173;
	drawnumber 3, INDEXFONT_DOOM, untranslated, ammocapacity(Shell), 314, 179;
	drawnumber 3, INDEXFONT_DOOM, untranslated, ammocapacity(RocketAmmo), 314, 185;
	drawnumber 3, INDEXFONT_DOOM, untranslated, ammocapacity(Cell), 314, 191;
	gamemode deathmatch, teamgame
	{
		drawnumber 2, HUDFONT_DOOM, untranslated, frags, 138, 171;
	}
	gamemode cooperative, singleplayer
	{
		drawimage "STARMS", 104, 168;
		drawswitchableimage weaponslot 2, "STGNUM2", "STYSNUM2", 111, 172; 
		drawswitchableimage weaponslot 3, "STGNUM3", "STYSNUM3", 123, 172;
		drawswitchableimage weaponslot 4, "STGNUM4", "STYSNUM4", 135, 172;
		drawswitchableimage weaponslot 5, "STGNUM5", "STYSNUM5", 111, 182;
		drawswitchableimage weaponslot 6, "STGNUM6", "STYSNUM6", 123, 182;
		drawswitchableimage weaponslot 7, "STGNUM7", "STYSNUM7", 135, 182;
	}
	gamemode cooperative, deathmatch, teamgame
	{
		drawimage translatable "STFBANY", 143, 169;
	}
	drawselectedinventory alternateonempty, INDEXFONT, 143, 168
	{
		drawmugshot "STF", 5, xdeathface, 143, 168;
	}
}

mugshot "Normal", health2
{
	ST00 17;
	ST03 2;
	ST04 17;
	ST03 2;
	ST00 17;
	ST05 3;
	ST00 17;
	ST01 2;
	ST02 17;
	ST01 2;
	ST00 17;
	ST03 2;
	ST04 17;
	ST05 2;
	ST01 2;
	ST02 17;
	ST01 2;
	ST00 17;
	ST05 3;
	ST00 17;
	ST01 2;
	ST02 17;
	ST01 2;
	ST00 17;
	ST03 2;
	ST04 17;
	ST05 2;
	ST01 2;
	ST02 17;
	ST01 2;
	ST00 17;
	ST05 3;
}
mugshot "death"
{
	DEAD0 3;
	DEAD1 3;
	DEAD2 3;
	DEAD3 -1;
}

mugshot "xdeath"
{
	XDTH0 3;
	XDTH1 2;
	XDTH2 2;
	XDTH3 2;
	XDTH4 -1;
}