]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Player templates: Reset weapons before giving them during spawn.
authorLyberta <lyberta@lyberta.net>
Sat, 2 Dec 2017 17:58:54 +0000 (20:58 +0300)
committerLyberta <lyberta@lyberta.net>
Sat, 2 Dec 2017 17:58:54 +0000 (20:58 +0300)
qcsrc/server/playertemplates.qc

index acd11e4c7a88fd455a5967bf194354ba9573c05f..d0032367b7f3f05ee24824d50b79a21d73191238 100644 (file)
@@ -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,