From 7f2bb7338d5d245136c85288190857a1583e9f6d Mon Sep 17 00:00:00 2001 From: Lyberta Date: Sat, 2 Dec 2017 20:58:54 +0300 Subject: [PATCH] Player templates: Reset weapons before giving them during spawn. --- qcsrc/server/playertemplates.qc | 1 + 1 file changed, 1 insertion(+) diff --git a/qcsrc/server/playertemplates.qc b/qcsrc/server/playertemplates.qc index acd11e4c7a..d0032367b7 100644 --- a/qcsrc/server/playertemplates.qc +++ b/qcsrc/server/playertemplates.qc @@ -359,6 +359,7 @@ void PlayerTemplateHook_PlayerSpawn(entity player, string template) PlayerTemplate_GetFloatValue(template, "start_ammo_fuel")); } // Give weapons. + player.weapons = WEPSET(Null); if (PlayerTemplate_GetFloatValue(template, "default_start_weapons")) { FOREACH(Weapons, it != WEP_Null, -- 2.39.5