]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove that trick to send dead bodies. It likely won't work as I expect it to. Don...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 10 Apr 2011 20:45:25 +0000 (23:45 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 10 Apr 2011 20:45:25 +0000 (23:45 +0300)
qcsrc/client/gibs.qc
qcsrc/server/g_violence.qc

index af5864d79a3f56851510fdc5b78982967d682b90..7239fffe283c4094f490e6ecbbd4af7164aa2e5a 100644 (file)
@@ -281,7 +281,6 @@ void GibSplash_Precache()
 void Ent_DamageEffect()
 {
        float type, specnum1, specnum2, entnumber;
-       float is_body;
        vector org;
        string specstr, effectnum;
        entity e;
@@ -300,15 +299,6 @@ void Ent_DamageEffect()
 
        e = get_weaponinfo(type);
 
-       if(specnum1 >= 16)
-       {
-               // The server sends the specnum increased by 16 when the target is a dead body (a trick used to save bandwidth)
-               // Species range from 0 to 15, so 16 could never be reached, and may be used for other info.
-               // Revert the species back and mark that this is a dead body.
-               specnum1 -= 16;
-               is_body = TRUE;
-       }
-
        specnum2 = (specnum1 & 0x78) / 8; // blood type: using four bits (0..7, bit indexes 3,4,5)
        specstr = species_prefix(specnum2);
 
index f8ed4fe0d142bed64e08de11ea5b6ca4ccfffe1a..0cc997bb0d3c6b0cafc9c32e6b4bbf504debd669 100644 (file)
@@ -81,14 +81,7 @@ void Violence_DamageEffect(entity pl, float type)
 
        // if this is a copied dead body, send the num of its player instead
        if(pl.classname == "body")
-       {
                e.team = num_for_edict(pl.owner);
-
-               // Use a trick to indicate this is a copied dead body and not an alive player to the client (saves an extra WriteByte).
-               // Do this by increasing species with 16. Species range from 0 to 15, so 16 could never be reached, and may be used for other info.
-               // The client will notice this and turn them back, while also noting what the server is trying to say.
-               e.state += 16;
-       }
        else
                e.team = num_for_edict(pl);