]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hook.qc
use the electro_lightning effect
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hook.qc
index 536ab7c6ec0c3670ebe6d55bef639f0483cf11e1..89dd4a6e384f2831ad2da11bd9ac12e44202ea2f 100644 (file)
@@ -169,6 +169,18 @@ 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) * 1000, frametime);
+                       break;
+               case ENT_CLIENT_GAUNTLET:
+                       break;
+       }
 }
 
 void Remove_GrapplingHook()