From: Mircea Kitsune Date: Sat, 2 Apr 2011 16:21:32 +0000 (+0300) Subject: Add more info to the debug tester X-Git-Tag: xonotic-v0.6.0~110^2^2~181 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a41309866a7cfe5462207fd527395339047810df;p=xonotic%2Fxonotic-data.pk3dir.git Add more info to the debug tester --- diff --git a/qcsrc/client/gibs.qc b/qcsrc/client/gibs.qc index 34fcd8abb..ade42c6de 100644 --- a/qcsrc/client/gibs.qc +++ b/qcsrc/client/gibs.qc @@ -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")); }