From: Lyberta Date: Sat, 2 Dec 2017 17:58:54 +0000 (+0300) Subject: Player templates: Reset weapons before giving them during spawn. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7f2bb7338d5d245136c85288190857a1583e9f6d;p=xonotic%2Fxonotic-data.pk3dir.git Player templates: Reset weapons before giving them during spawn. --- 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,