From 13686c9df4025296c53f714da55e91965e136bce Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 1 Mar 2016 07:12:07 +1000 Subject: [PATCH] Add an option to change the opacity of the grappling hook --- qcsrc/common/weapons/weapon/hook.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/weapons/weapon/hook.qc b/qcsrc/common/weapons/weapon/hook.qc index d76095ec8..96743b75e 100644 --- a/qcsrc/common/weapons/weapon/hook.qc +++ b/qcsrc/common/weapons/weapon/hook.qc @@ -322,6 +322,8 @@ void W_Hook_Attack2(Weapon thiswep, entity actor) #include #include +float autocvar_cl_grapplehook_alpha = 1; + void Draw_CylindricLine(vector from, vector to, float thickness, string texture, float aspect, float shift, vector rgb, float theAlpha, float drawflag, vector vieworg); entityclass(Hook); @@ -419,7 +421,7 @@ void Draw_GrapplingHook(entity this) { default: case NET_ENT_CLIENT_HOOK: - intensity = 1; + intensity = autocvar_cl_grapplehook_alpha; offset = 0; switch(t) { -- 2.39.2