From bf4b98cee50da63e746c6f18a8b5cdfe075f29b1 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 4 Jan 2006 00:39:13 +0000 Subject: [PATCH] Stop players from being able to reorganise thier inventory whilst dead. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1784 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- quakec/fallout2/cmds.qc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/quakec/fallout2/cmds.qc b/quakec/fallout2/cmds.qc index 9486d645d..12e7a9e98 100644 --- a/quakec/fallout2/cmds.qc +++ b/quakec/fallout2/cmds.qc @@ -162,7 +162,11 @@ void(string line) SV_ParseClientCommand = tokenize(line); cmd = argv(0); - if (cmd == "invuse") + if (self.deadflag) + { //no inventory stuff while dead. + clientcommand(self, line); + } + else if (cmd == "invuse") { Cmd_InvUse(argv(1)); }