From 6e86ba3db2fce0201bdaec01e4d9e09f3aafb0fb Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Thu, 7 Mar 2002 19:46:47 +0000 Subject: [PATCH] No dropping weapons or items if bandaging --- reaction/game/g_cmds.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/reaction/game/g_cmds.c b/reaction/game/g_cmds.c index f5b3705a..b5df41f0 100644 --- a/reaction/game/g_cmds.c +++ b/reaction/game/g_cmds.c @@ -5,6 +5,9 @@ //----------------------------------------------------------------------------- // // $Log$ +// Revision 1.68 2002/03/07 19:46:47 jbravo +// No dropping weapons or items if bandaging +// // Revision 1.67 2002/03/07 00:00:54 assimon // Added a skeleton referee suport, with some functional commands (map_restart and kick) // @@ -2640,6 +2643,12 @@ void Cmd_DropWeapon_f( gentity_t *ent ) { if (ent->client->ps.pm_type == PM_SPECTATOR) return; +// JBravo: no dropping stuff while bandaging. Fix dedicated to GoKu and JesterRace :) + if ((ent->client->ps.stats[STAT_RQ3] & RQ3_BANDAGE_WORK) == RQ3_BANDAGE_WORK) { + trap_SendServerCommand( ent-g_entities, va("print \"You are too busy bandaging...\n\"")); + return; + } + //Elder: remove zoom bits //Cmd_Unzoom(ent); //Throwing away return value here; high precedence weapon drop @@ -2656,6 +2665,12 @@ void Cmd_DropItem_f( gentity_t *ent ) if (ent->client->ps.pm_type == PM_SPECTATOR) return; +// JBravo: no dropping stuff while bandaging. Fix dedicated to GoKu and JesterRace :) + if ((ent->client->ps.stats[STAT_RQ3] & RQ3_BANDAGE_WORK) == RQ3_BANDAGE_WORK) { + trap_SendServerCommand( ent-g_entities, va("print \"You are too busy bandaging...\n\"")); + return; + } + if (ent->client->ps.stats[STAT_HOLDABLE_ITEM]) { //Elder: reset item totals if using bandolier