From: Mircea Kitsune Date: Sat, 2 Apr 2011 16:40:55 +0000 (+0300) Subject: First code that causes damage particles to show! Functional with the Laser so far. X-Git-Tag: xonotic-v0.6.0~110^2^2~177 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cb9511b472d4375bf0d6555c0be247d346e94517;p=xonotic%2Fxonotic-data.pk3dir.git First code that causes damage particles to show! Functional with the Laser so far. --- diff --git a/qcsrc/client/gibs.qc b/qcsrc/client/gibs.qc index 3a548a319..4527239b7 100644 --- a/qcsrc/client/gibs.qc +++ b/qcsrc/client/gibs.qc @@ -279,7 +279,7 @@ void Ent_DamageEffect() { float type, specnum1, specnum2; vector org; - string specstr; + string specstr, effectnum; entity e; type = ReadByte(); // damage weapon @@ -296,5 +296,8 @@ void Ent_DamageEffect() specnum2 = (specnum1 & 0x78) / 8; // blood type: using four bits (0..7, bit indexes 3,4,5) specstr = species_prefix(specnum2); + effectnum = strcat("weapondamage_", e.netname); + dprint(strcat("Origin is: ", vtos(org), " and weapon is: ", e.netname, " and species is: ", specstr, "\n")); + pointparticles(particleeffectnum(effectnum), org, '0 0 0', 1); }