From fbe1d33d04cdee86b9f50d831e1ecb1eff36eabb Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Wed, 1 Jul 2009 20:57:17 +0000 Subject: [PATCH] Fixing allwepon and the number of knives --- reaction/game/g_client.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/reaction/game/g_client.c b/reaction/game/g_client.c index fd3e81db..11eff487 100644 --- a/reaction/game/g_client.c +++ b/reaction/game/g_client.c @@ -1963,14 +1963,15 @@ void ClientSpawn(gentity_t * ent) ent->client->uniqueWeapons = 5; //Makro - added knives ent->client->weaponCount[WP_KNIFE] = 1; - if (ent->client->ps.stats[STAT_HOLDABLE_ITEM] & (1 << HI_BANDOLIER)) - ent->client->ps.ammo[WP_KNIFE] = 20; - else - ent->client->ps.ammo[WP_KNIFE] = 10; for (i = 0; i < MAX_WEAPONS; i++) { ent->client->ps.ammo[i] = ClipAmountForAmmo(i); Add_Ammo(ent, i, 100, 1); } + if (ent->client->ps.stats[STAT_HOLDABLE_ITEM] & (1 << HI_BANDOLIER)) + ent->client->ps.ammo[WP_KNIFE] = 20; + else + ent->client->ps.ammo[WP_KNIFE] = 10; + ent->client->ps.stats[STAT_WEAPONS] |= (1 << WP_GRENADE) | (1 << WP_KNIFE); }