]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add more info to the debug tester
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 2 Apr 2011 16:21:32 +0000 (19:21 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 2 Apr 2011 16:21:32 +0000 (19:21 +0300)
qcsrc/client/gibs.qc

index 34fcd8abb675ed5d788357518fa23e7a8d530bcb..ade42c6deb9b052504abb65724f629268195e4ad 100644 (file)
@@ -280,6 +280,7 @@ void Ent_DamageEffect()
        float type, specnum1, specnum2;
        vector org;
        string specstr;
+       entity e;
 
        type = ReadByte(); // damage weapon
        specnum1 = ReadByte(); // player species
@@ -287,8 +288,10 @@ void Ent_DamageEffect()
        org_y = ReadCoord();
        org_z = ReadCoord();
 
+       e = get_weaponinfo(type);
+
        specnum2 = (specnum1 & 0x78) / 8; // blood type: using four bits (0..7, bit indexes 3,4,5)
        specstr = species_prefix(specnum2);
 
-       dprint(strcat("Origin is: ", vtos(org), " and weapon type is: ", ftos(type), "\n"));
+       dprint(strcat("Origin is: ", vtos(org), " and weapon is: ", e.netname, " and species is: ", specstr, "\n"));
 }