]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hook.qc
particle effects on gauntlet too, make crylink secondary force negative again
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hook.qc
index 536ab7c6ec0c3670ebe6d55bef639f0483cf11e1..513c7926334dd139a66dc322a7dcca2bf7fca2dd 100644 (file)
@@ -169,6 +169,19 @@ void Draw_GrapplingHook()
                        setorigin(self, a); // beam origin!
                        break;
        }
+
+       switch(self.HookType)
+       {
+               default:
+               case ENT_CLIENT_HOOK:
+                       break;
+               case ENT_CLIENT_LGBEAM:
+                       pointparticles(particleeffectnum("electro_lightning"), b, normalize(a - b), frametime);
+                       break;
+               case ENT_CLIENT_GAUNTLET:
+                       pointparticles(particleeffectnum("gauntlet_lightning"), b, normalize(a - b), frametime);
+                       break;
+       }
 }
 
 void Remove_GrapplingHook()