From: Rudolf Polzer Date: Sat, 24 Jul 2010 17:09:36 +0000 (+0200) Subject: use the electro_lightning effect X-Git-Tag: xonotic-v0.1.0preview~414^2~5 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=1a197c7f337b13e50e34000db134e7e00eb29738;ds=inline use the electro_lightning effect --- diff --git a/qcsrc/client/hook.qc b/qcsrc/client/hook.qc index 536ab7c6ec..89dd4a6e38 100644 --- a/qcsrc/client/hook.qc +++ b/qcsrc/client/hook.qc @@ -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()