From 9ac130084a07bc26f826fa2ca1a1d0f2c550bb23 Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Sun, 13 Mar 2011 01:53:15 +0000 Subject: [PATCH] Fixing bug 4107 (slashing knife and +wstats) --- reaction/code/game/g_weapon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reaction/code/game/g_weapon.c b/reaction/code/game/g_weapon.c index 86a0f5fe..226aaa7e 100644 --- a/reaction/code/game/g_weapon.c +++ b/reaction/code/game/g_weapon.c @@ -1003,7 +1003,7 @@ void Knife_Attack(gentity_t * self, int damage) gentity_t *tent; if (self->client && ((g_gametype.integer == GT_TEAMPLAY && level.team_round_going) || g_gametype.integer != GT_TEAMPLAY)) - self->client->pers.records[REC_KNIFESLASHSHOTS]++; +// self->client->pers.records[REC_KNIFESLASHSHOTS]++; VectorMA(muzzle, KNIFE_RANGE, forward, end); trap_Trace(&tr, muzzle, NULL, NULL, end, self->s.number, MASK_SHOT); @@ -1025,6 +1025,7 @@ void Knife_Attack(gentity_t * self, int damage) } // NiceAss: Play appropriate sound on 5th slash if (self->client->ps.stats[STAT_BURST] > 4) { + self->client->pers.records[REC_KNIFESLASHSHOTS]++; if (self->client->knife_sound == 0) { // Missed // TODO: Miss sound should be here, like in AQ2 } else if (self->client->knife_sound == -1) { // Hit wall