]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/damage.qc
Cleanup
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / damage.qc
index 1151f2336887a81ef8e0ba5d4e1c935f7522d4df..a0c16961075a9fa58e8074c39535a04f3f3452e5 100644 (file)
@@ -117,8 +117,8 @@ void DamageEffect(vector hitorg, float thedamage, int type, int specnum)
        self.total_damages += 1;
 }
 
-void Ent_DamageInfo(float isNew)
-{SELFPARAM();
+NET_HANDLE(ENT_CLIENT_DAMAGEINFO, bool isNew)
+{
        make_pure(this);
        float thedamage, rad, edge, thisdmg;
        bool hitplayer = false;
@@ -139,6 +139,8 @@ void Ent_DamageInfo(float isNew)
        force = decompressShortVector(ReadShort());
        species = ReadByte();
 
+       return = true;
+
        if (!isNew)
                return;