/// \brief How much players are allowed in teams (excluding cannon fodder).
int autocvar_g_surv_team_size;
+/// \brief If set, defenders will not be shown on the radar.
+int autocvar_g_surv_stealth;
/// \brief Whether to force overkill player models for attackers.
int autocvar_g_surv_attacker_force_overkill_models;
break;
}
}
+ if (autocvar_g_surv_stealth)
+ {
+ return;
+ }
FOREACH_CLIENT(IS_PLAYER(it),
{
switch (it.team)
return;
}
Surv_UpdateDefenderHealthStat();
- if (target.health < 1)
- {
- WaypointSprite_Kill(target.surv_attack_sprite);
- }
- else
- {
- WaypointSprite_UpdateHealth(target.surv_attack_sprite, target.health +
- target.armorvalue);
- }
entity attacker = M_ARGV(0, entity);
if ((attacker.team == surv_attackerteam) && (attacker.surv_role ==
SURVIVAL_ROLE_PLAYER))
float score = (health + armor) * autocvar_g_surv_attacker_damage_score;
PlayerScore_Add(attacker, SP_SCORE, score);
}
+ if (autocvar_g_surv_stealth)
+ {
+ return;
+ }
+ if (target.health < 1)
+ {
+ WaypointSprite_Kill(target.surv_attack_sprite);
+ }
+ else
+ {
+ WaypointSprite_UpdateHealth(target.surv_attack_sprite, target.health +
+ target.armorvalue);
+ }
}
/// \brief Hook which is called when the player dies.
seta g_surv_point_limit -1 "Survival point limit overriding the mapinfo specified one (use 0 to play without limit, and -1 to use the mapinfo's limit)"
seta g_surv_point_leadlimit -1 "Survival point lead limit overriding the mapinfo specified one (use 0 to play without limit, and -1 to use the mapinfo's limit)"
set g_surv_team_size 4 "How much players are allowed in teams (excluding cannon fodder)"
+set g_surv_stealth 0 "If set, defenders will not be shown on the radar"
set g_surv_attacker_force_overkill_models 0 "Whether to force overkill player models for attackers"
set g_surv_defender_force_overkill_models 1 "Whether to force overkill player models for defenders"