]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
First code that causes damage particles to show! Functional with the Laser so far.
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 2 Apr 2011 16:40:55 +0000 (19:40 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 2 Apr 2011 16:40:55 +0000 (19:40 +0300)
qcsrc/client/gibs.qc

index 3a548a31941469093de023e1f58e054525f220f2..4527239b74c8a75094c7791f7e33b82ab2765cbf 100644 (file)
@@ -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);
 }