}
entity freezetag_LastPlayerForTeam()
-{
+{SELFPARAM();
entity pl, last_pl = world;
FOR_EACH_PLAYER(pl)
{
}
void freezetag_Add_Score(entity attacker)
-{
+{SELFPARAM();
if(attacker == self)
{
// you froze your own dumb self
}
void freezetag_Freeze(entity attacker)
-{
+{SELFPARAM();
if(self.frozen)
return;
}
void freezetag_Unfreeze(entity attacker)
-{
+{SELFPARAM();
self.freezetag_frozen_time = 0;
self.freezetag_frozen_timeout = 0;
void() havocbot_role_ft_offense;
void havocbot_goalrating_freeplayers(float ratingscale, vector org, float sradius)
-{
+{SELFPARAM();
entity head;
float distance;
}
void havocbot_role_ft_offense()
-{
+{SELFPARAM();
entity head;
float unfrozen;
}
void havocbot_role_ft_freeing()
-{
+{SELFPARAM();
if(self.deadflag != DEAD_NO)
return;
// ==============
MUTATOR_HOOKFUNCTION(freezetag_RemovePlayer)
-{
+{SELFPARAM();
self.health = 0; // neccessary to update correctly alive stats
if(!self.frozen)
freezetag_LastPlayerForTeam_Notify();
}
MUTATOR_HOOKFUNCTION(freezetag_PlayerDies)
-{
+{SELFPARAM();
if(round_handler_IsActive())
if(round_handler_CountdownRunning())
{
}
MUTATOR_HOOKFUNCTION(freezetag_PlayerSpawn)
-{
+{SELFPARAM();
if(self.freezetag_frozen_timeout == -1) // if PlayerSpawn is called by reset_map_players
return 1; // do nothing, round is starting right now
}
MUTATOR_HOOKFUNCTION(freezetag_reset_map_players)
-{
+{SELFPARAM();
FOR_EACH_PLAYER(self)
{
self.killcount = 0;
}
MUTATOR_HOOKFUNCTION(freezetag_PlayerPreThink)
-{
+{SELFPARAM();
float n;
if(gameover)
}
MUTATOR_HOOKFUNCTION(freezetag_BotRoles)
-{
+{SELFPARAM();
if (!self.deadflag)
{
if (random() < 0.5)