From a41309866a7cfe5462207fd527395339047810df Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Sat, 2 Apr 2011 19:21:32 +0300 Subject: [PATCH] Add more info to the debug tester --- qcsrc/client/gibs.qc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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")); } -- 2.39.2