::HumanCountGlobal <- 0
::CountThreshold <- 0
::HumanCountTrigger <- 0

function incrementGlobalCount()
{
	HumanCountGlobal += 1
}

function setLimit()
{
	CountThreshold = HumanCountGlobal / 2
}

function incrementTriggerCount()
{
	HumanCountTrigger += 1
}

function RealityCheck()
{
	if (HumanCountTrigger < CountThreshold)
	{
		DoEntFire("Famfrit_Dark_Cannon_Fail_Relay", "Trigger", "", 0.00, self, self);
		DoEntFire("cmd", "Command", "say **YOU HAVE FAILED TO STOP DARK CANNON**", 0.00, self, self);
	}
	else
	{
		DoEntFire("cmd", "Command", "say **YOU HAVE SUCCESSFULLY STOPPED DARK CANNON**", 0.00, self, self);
	}
	HumanCountGlobal = 0;
	CountThreshold = 0;
	HumanCountTrigger = 0;
}