]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hook.qc
use a better factor
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hook.qc
index 536ab7c6ec0c3670ebe6d55bef639f0483cf11e1..efa16533d584fe4a2ec253e1a01059322df9d00b 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), frametime);
+                       break;
+               case ENT_CLIENT_GAUNTLET:
+                       break;
+       }
 }
 
 void Remove_GrapplingHook()