From 1097d75ab448644d041b35283e98f2565ab7477f Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Sun, 3 Mar 2002 23:51:45 +0000 Subject: [PATCH] Final fixes for anims at spawn and a knife bug. --- reaction/game/g_teamplay.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reaction/game/g_teamplay.c b/reaction/game/g_teamplay.c index 52a9c72e..fa17ed40 100644 --- a/reaction/game/g_teamplay.c +++ b/reaction/game/g_teamplay.c @@ -5,6 +5,9 @@ //----------------------------------------------------------------------------- // // $Log$ +// Revision 1.28 2002/03/03 23:51:45 jbravo +// Final fixes for anims at spawn and a knife bug. +// // Revision 1.27 2002/03/03 18:00:26 jbravo // More Anim fixes. Knives still broken // @@ -710,8 +713,8 @@ void EquipPlayer (gentity_t *ent) case WP_KNIFE: ent->client->ps.stats[STAT_WEAPONS] = ( 1 << WP_KNIFE ); ent->client->ps.stats[STAT_WEAPONS] |= ( 1 << WP_PISTOL ); - ent->client->ps.stats[STAT_WEAPONS] |= ( 1 << WP_KNIFE ); ent->client->ps.ammo[ WP_KNIFE ] = 10 * bandolierFactor; + ent->client->ps.weapon = WP_KNIFE; ent->client->ps.weaponTime = RQ3_KNIFE_ACTIVATE_DELAY; ent->client->weaponCount[ent->client->ps.weapon] = 1; ent->client->uniqueWeapons = 0; @@ -725,7 +728,7 @@ void EquipPlayer (gentity_t *ent) ent->client->ps.ammo[WP_GRENADE] = grenades; ent->client->uniqueWeapons++; } - if (ent->client->teamplayWeapon == WP_KNIFE && (ent->client->ps.persistant[PERS_WEAPONMODES] & RQ3_KNIFEMODE)) { + if (ent->client->teamplayWeapon == WP_KNIFE && !(ent->client->ps.persistant[PERS_WEAPONMODES] & RQ3_KNIFEMODE)) { ent->client->ps.generic1 = ((ent->client->ps.generic1 & ANIM_TOGGLEBIT) ^ ANIM_TOGGLEBIT) | WP_ANIM_THROWACTIVATE; } else {