// Blood dripping on screen by Sergeant_Mark_IV
// Dripping blood graphics can be found inside Bleed.wad

#library "bloodsplash"
#include "zcommon.acs"
world int 19: arrayHUDFX[];

script "BDRedBloodHUD" (VOID)
{
	if(arrayHUDFX[PlayerNumber()] == 0)
	{
		arrayHUDFX[PlayerNumber()]++;
		delay(1);
		SetHudSize(300,200,1);
		for(int i = 0; i <= 6; i++)
		{
			setfont("RBLD1");
			hudmessage(s:"A"; HUDMSG_FADEOUT, 0, CR_UNTRANSLATED, 150.0,  (100 + (8 * i)) * 1.0, 0.14, 0.14);
			delay(5);
		}
		arrayHUDFX[PlayerNumber()]--;
	}
}

script "BDMoreRedBloodHUD" (VOID) NET
{
	if(arrayHUDFX[PlayerNumber()] == 0)
	{
		arrayHUDFX[PlayerNumber()]++;
		delay(1);
		SetHudSize(300,200,1);
		for(int i = 0; i <= 6; i++)
		{
			setfont("RBLD2");
			hudmessage(s:"A"; HUDMSG_FADEOUT, 0, CR_UNTRANSLATED, 150.0,  (100 + (8 * i)) * 1.0, 0.14, 0.14);
			delay(5);
		}
		arrayHUDFX[PlayerNumber()]--;
	}
}

script "BDBlueBloodHUD" (VOID) NET
{
	if(arrayHUDFX[PlayerNumber()] == 0)
	{
		arrayHUDFX[PlayerNumber()]++;
		delay(1);
		SetHudSize(300,200,1);
		for(int i = 0; i <= 6; i++)
		{
			setfont("BBLD1");
			hudmessage(s:"A"; HUDMSG_FADEOUT, 0, CR_UNTRANSLATED, 150.0,  (100 + (8 * i)) * 1.0, 0.14, 0.14);
			delay(5);
		}
		arrayHUDFX[PlayerNumber()]--;
	}
}

script "BDMoreBlueBloodHUD" (VOID) NET
{
	if(arrayHUDFX[PlayerNumber()] == 0)
	{
		arrayHUDFX[PlayerNumber()]++;
		delay(1);
		SetHudSize(300,200,1);
		for(int i = 0; i <= 6; i++)
		{
			setfont("BBLD2");
			hudmessage(s:"A"; HUDMSG_FADEOUT, 0, CR_UNTRANSLATED, 150.0,  (100 + (8 * i)) * 1.0, 0.14, 0.14);
			delay(5);
		}
		arrayHUDFX[PlayerNumber()]--;
	}
}

script "BDGreenBloodHUD" (VOID) NET
{
	if(arrayHUDFX[PlayerNumber()] == 0)
	{
		arrayHUDFX[PlayerNumber()]++;
		delay(1);
		SetHudSize(300,200,1);
		for(int i = 0; i <= 6; i++)
		{
			setfont("GBLD1");
			hudmessage(s:"A"; HUDMSG_FADEOUT, 0, CR_UNTRANSLATED, 150.0,  (100 + (8 * i)) * 1.0, 0.14, 0.14);
			delay(5);
		}
		arrayHUDFX[PlayerNumber()]--;
	}
}

script "BDMoreGreenBloodHUD" (VOID) NET
{
	if(arrayHUDFX[PlayerNumber()] == 0)
	{
		arrayHUDFX[PlayerNumber()]++;
		delay(1);
		SetHudSize(300,200,1);
		for(int i = 0; i <= 6; i++)
		{
			setfont("GBLD2");
			hudmessage(s:"A"; HUDMSG_FADEOUT, 0, CR_UNTRANSLATED, 150.0,  (100 + (8 * i)) * 1.0, 0.14, 0.14);
			delay(5);
		}
		arrayHUDFX[PlayerNumber()]--;
	}
}

//WATER
script "BDWaterHUD" (VOID) NET
{
	if(arrayHUDFX[PlayerNumber()] == 0)
	{
		arrayHUDFX[PlayerNumber()]++;
		delay(1);
		SetHudSize(300,200,1);
		for(int i = 0; i <= 6; i++)
		{
			setfont("WTSP");
			hudmessage(s:"A"; HUDMSG_FADEOUT, 0, CR_UNTRANSLATED, 150.0,  (100 + (8 * i)) * 1.0, 0.14, 0.14);
			delay(5);
		}
		arrayHUDFX[PlayerNumber()]--;
	}
}

//SLIME
script "BDSlimeHUD" (VOID) NET
{
	if(arrayHUDFX[PlayerNumber()] == 0)
	{
		arrayHUDFX[PlayerNumber()]++;
		delay(1);
		SetHudSize(300,200,1);
		for(int i = 0; i <= 6; i++)
		{
			setfont("SLSP");
			hudmessage(s:"A"; HUDMSG_FADEOUT, 0, CR_UNTRANSLATED, 150.0,  (100 + (8 * i)) * 1.0, 0.14, 0.14);
			delay(5);
		}
		arrayHUDFX[PlayerNumber()]--;
	}
}

//NUKAGE
script "BDNukeHUD" (VOID) NET
{
	if(arrayHUDFX[PlayerNumber()] == 0)
	{
		arrayHUDFX[PlayerNumber()]++;
		delay(1);
		SetHudSize(300,200,1);
		for(int i = 0; i <= 6; i++)
		{
			setfont("NKSP");
			hudmessage(s:"A"; HUDMSG_FADEOUT, 0, CR_UNTRANSLATED, 150.0,  (100 + (8 * i)) * 1.0, 0.14, 0.14);
			delay(5);
		}
		arrayHUDFX[PlayerNumber()]--;
	}
}

//ORANGE
script "BDOrangeHUD" (VOID) NET
{
	if(arrayHUDFX[PlayerNumber()] == 0)
	{
		arrayHUDFX[PlayerNumber()]++;
		delay(1);
		SetHudSize(300,200,1);
		for(int i = 0; i <= 6; i++)
		{
			setfont("ORSP");
			hudmessage(s:"A"; HUDMSG_FADEOUT, 0, CR_UNTRANSLATED, 150.0,  (100 + (8 * i)) * 1.0, 0.14, 0.14);
			delay(5);
		}
		arrayHUDFX[PlayerNumber()]--;
	}
}

//PURPLE
script "BDPurpleHUD" (VOID) NET
{
	if(arrayHUDFX[PlayerNumber()] == 0)
	{
		arrayHUDFX[PlayerNumber()]++;
		delay(1);
		SetHudSize(300,200,1);
		for(int i = 0; i <= 6; i++)
		{
			setfont("PRSP");
			hudmessage(s:"A"; HUDMSG_FADEOUT, 0, CR_UNTRANSLATED, 150.0,  (100 + (8 * i)) * 1.0, 0.14, 0.14);
			delay(5);
		}
		arrayHUDFX[PlayerNumber()]--;
	}
}