From 6c27d7872fe1aadfcbeb20ba76cbf25b6b0bdc64 Mon Sep 17 00:00:00 2001 From: Lyberta Date: Fri, 28 Jul 2017 02:28:05 +0300 Subject: [PATCH] Survival: Added ability to use custom player templates. --- qcsrc/server/mutators/mutator/gamemode_survival.qc | 6 +++--- survival.cfg | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/qcsrc/server/mutators/mutator/gamemode_survival.qc b/qcsrc/server/mutators/mutator/gamemode_survival.qc index 9756ac2fe4..c4267d24ce 100644 --- a/qcsrc/server/mutators/mutator/gamemode_survival.qc +++ b/qcsrc/server/mutators/mutator/gamemode_survival.qc @@ -265,17 +265,17 @@ string Surv_GetPlayerTemplate(entity player) case SURVIVAL_ROLE_NONE: case SURVIVAL_ROLE_PLAYER: { - return "surv_attacker"; + return cvar_string("g_surv_attacker_template"); } case SURVIVAL_ROLE_CANNON_FODDER: { - return "surv_cannon_fodder"; + return cvar_string("g_surv_cannon_fodder_template"); } } } case surv_defenderteam: { - return "surv_defender"; + return cvar_string("g_surv_defender_template"); } } return "default"; diff --git a/survival.cfg b/survival.cfg index b0deec6293..bfb82ba608 100644 --- a/survival.cfg +++ b/survival.cfg @@ -22,6 +22,10 @@ set g_surv_team_size 4 "How much players are allowed in teams (excluding cannon set g_surv_stealth 0 "If set, defenders will not be shown on the radar" set g_surv_spectate_enemies 0 "Whether to allow spectating enemy players while dead" +set g_surv_attacker_template "surv_attacker" "Player template of attackers" +set g_surv_defender_template "surv_defender" "Player template of defenders" +set g_surv_attacker_template "surv_cannon_fodder" "Player template of cannon fodder" + 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" set g_surv_cannon_fodder_force_overkill_models 0 "Whether to force overkill player models for cannon fodder" -- 2.39.5