From: MirceaKitsune Date: Mon, 2 Jan 2012 14:53:10 +0000 (+0200) Subject: Grabber secondary will do less damage, but heavily decrease the victim's armor now X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cc90151ce490a7adbd77bfcc4a3daad5f74c2dcc;p=voretournament%2Fvoretournament.git Grabber secondary will do less damage, but heavily decrease the victim's armor now --- 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);