}
else
{
- PlayerTemplate_PlayerSpawn(player, Surv_GetPlayerTemplate(player));
+ PlayerTemplateHook_PlayerSpawn(player, Surv_GetPlayerTemplate(player));
}
switch (player.team)
{
MUTATOR_HOOKFUNCTION(surv, ForbidThrowCurrentWeapon)
{
entity player = M_ARGV(0, entity);
- return PlayerTemplate_ForbidThrowCurrentWeapon(player,
+ return PlayerTemplateHook_ForbidThrowCurrentWeapon(
Surv_GetPlayerTemplate(player));
}
{
return true;
}
- return PlayerTemplate_PlayerRegen(player, Surv_GetPlayerTemplate(player));
+ return PlayerTemplateHook_PlayerRegen(player,
+ Surv_GetPlayerTemplate(player));
}
/// \brief Hook that is called to determine if balance messages will appear.
{
case surv_attackerteam:
{
- return PlayerTemplate_ItemTouch(player, item,
+ return PlayerTemplateHook_ItemTouch(player, item,
Surv_GetPlayerTemplate(player));
}
case surv_defenderteam:
}
default:
{
- return PlayerTemplate_ItemTouch(player, item,
+ return PlayerTemplateHook_ItemTouch(player, item,
Surv_GetPlayerTemplate(player));
}
}
entity frag_target = M_ARGV(2, entity);
float deathtype = M_ARGV(3, float);
float damage = M_ARGV(4, float);
- M_ARGV(4, float) = PlayerTemplate_Damage_Calculate(frag_attacker,
+ M_ARGV(4, float) = PlayerTemplateHook_Damage_Calculate(frag_attacker,
Surv_GetPlayerTemplate(frag_attacker), frag_target,
Surv_GetPlayerTemplate(frag_target), deathtype, damage);
}
//DebugPrintToChatAll("PlayerDies");
entity attacker = M_ARGV(1, entity);
entity victim = M_ARGV(2, entity);
- PlayerTemplate_PlayerDies(victim, Surv_GetPlayerTemplate(victim));
+ PlayerTemplateHook_PlayerDies(victim, Surv_GetPlayerTemplate(victim));
if ((attacker.team == surv_defenderteam) &&
(victim.team == surv_attackerteam))
{