overkill: take into account last weapon held when switching while dead
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / client.qc
index d4a3e9febfa359aef00e37995c6b56961d0a8a25..c1cce0c0a6b310f5fe77a14e0d152fa9a5c3b7c0 100644 (file)
@@ -706,6 +706,8 @@ void PutClientInServer(entity this)
                this.weaponname = "";
                PS(this).m_switchingweapon = WEP_Null;
 
+               MUTATOR_CALLHOOK(PlayerWeaponSelect, this);
+
                if (!warmup_stage && !this.alivetime)
                        this.alivetime = time;