use the electro_lightning effect
authorRudolf Polzer <divverent@alientrap.org>
Sat, 24 Jul 2010 17:09:36 +0000 (19:09 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 24 Jul 2010 17:09:36 +0000 (19:09 +0200)
qcsrc/client/hook.qc

index 536ab7c..89dd4a6 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()