From: Mario Date: Mon, 29 Feb 2016 21:12:07 +0000 (+1000) Subject: Add an option to change the opacity of the grappling hook X-Git-Tag: xonotic-v0.8.2~1165 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=13686c9df4025296c53f714da55e91965e136bce;p=xonotic%2Fxonotic-data.pk3dir.git Add an option to change the opacity of the grappling hook --- 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) {