]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/cl_client.qc
Also reset observer's weapon stats
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / cl_client.qc
index c212691db7598c912f8841085243c918d7e5db7d..b9ada9722f1ca341cc9000fd977880942b758589 100644 (file)
@@ -351,6 +351,10 @@ void PutObserverInServer(entity this)
        this.oldvelocity = this.velocity;
        this.fire_endtime = -1;
        this.event_damage = func_null;
+
+       STAT(ACTIVEWEAPON, this) = WEP_Null.m_id;
+       STAT(SWITCHINGWEAPON, this) = WEP_Null.m_id;
+       STAT(SWITCHWEAPON, this) = WEP_Null.m_id;
 }
 
 int player_getspecies(entity this)