Exemple #1
0
void TimerTick() 
{
    ChickenCheck();
    Delay++;
	if(TakeNextTP)
	{
		if(IsTownLevel(GetPlayerArea()))
		TakeNextTP=false;
	}
	if(CampOn)
	{
		D2CLIENT_clickMap(3,Camp.x,Camp.y,8);
	}
	if(CampUnitOn)
	{
		D2CLIENT_clickMap(3,Camp.x,Camp.y,8);
	}
	if(Flash)
	{
		if(FindUnit(Auto.GetPlayerID(),0)!=NULL)
		{
			FlashPlayer(Auto.GetPlayerID());						
			FlashDelay=0;
		}
		if(FindUnit(Auto.GetPlayerID(),0)==NULL)
		{
			FlashDelay=-1;
		}
	}
}
Exemple #2
0
void TG_Eff_Flash( gedict_t * te )
{
	if ( strneq( te->s.v.classname, "player" ) )
		return;
	if ( te->s.v.health <= 0 )
		return;

	FlashPlayer( te, NULL );
}