From cc90151ce490a7adbd77bfcc4a3daad5f74c2dcc Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Mon, 2 Jan 2012 16:53:10 +0200 Subject: [PATCH] Grabber secondary will do less damage, but heavily decrease the victim's armor now --- data/balanceVT.cfg | 3 ++- data/qcsrc/server/w_grabber.qc | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/data/balanceVT.cfg b/data/balanceVT.cfg index b04e310e..29784c89 100644 --- a/data/balanceVT.cfg +++ b/data/balanceVT.cfg @@ -181,7 +181,8 @@ set g_balance_grabber_secondary 1 set g_balance_grabber_secondary_ammo 15 set g_balance_grabber_secondary_refire 1.1 set g_balance_grabber_secondary_animtime 1 // good melee anim -set g_balance_grabber_secondary_damage 60 +set g_balance_grabber_secondary_damage 10 +set g_balance_grabber_secondary_armordamage 50 set g_balance_grabber_secondary_force 250 set g_balance_grabber_secondary_radius 130 set g_balance_grabber_secondary_recoil 5 diff --git a/data/qcsrc/server/w_grabber.qc b/data/qcsrc/server/w_grabber.qc index f738a1ed..50beef71 100644 --- a/data/qcsrc/server/w_grabber.qc +++ b/data/qcsrc/server/w_grabber.qc @@ -45,6 +45,8 @@ void W_Grabber_Attack2() if(trace_fraction < 1) // should always be true, but just in case { Damage(trace_ent, self, self, cvar("g_balance_grabber_secondary_damage"), WEP_GRABBER | HITTYPE_SECONDARY, trace_endpos, cvar("g_balance_grabber_secondary_force") * w_shotdir); + trace_ent.armorvalue = bound(0, trace_ent.armorvalue - cvar("g_balance_grabber_secondary_armordamage"), cvar("g_balance_armor_limit")); + pointparticles(particleeffectnum("grabber_impact2"), trace_endpos, '0 0 0', 1); if(trace_ent.classname == "player") sound (self, CHAN_PROJECTILE, "weapons/grabber_impact2_player.wav", VOL_BASE, ATTN_NORM); -- 2.39.2