]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Possible fixes for nades
authorMario <mario@smbclan.net>
Thu, 10 Dec 2015 22:38:41 +0000 (08:38 +1000)
committerMario <mario@smbclan.net>
Thu, 10 Dec 2015 22:38:41 +0000 (08:38 +1000)
qcsrc/common/mutators/mutator/nades/nades.qc

index c1ab9774dacc7d8a9cfb93d7cd9739a7a60163dc..28aaac5dc17664df2622bcfab6634cc4ed3c66da 100644 (file)
@@ -658,6 +658,11 @@ void nade_boom()
 
 void nade_touch()
 {SELFPARAM();
+       if(other)
+               UpdateCSQCProjectile(self);
+
+       if(other == self.realowner)
+               return; // no self impacts
        /*float is_weapclip = 0;
        if(trace_dphitq3surfaceflags & Q3SURFACEFLAG_NODRAW)
        if (!(trace_dphitq3surfaceflags & Q3SURFACEFLAG_NONSOLID))