From 6015681eaa4e03d328b374924dad0c919c9594b4 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Thu, 19 Sep 2019 12:56:39 -0400 Subject: [PATCH] add sf_cheats support --- source/client.qc | 4 ++-- source/items.qc | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/source/client.qc b/source/client.qc index 96d8827..4f5970c 100644 --- a/source/client.qc +++ b/source/client.qc @@ -1026,7 +1026,7 @@ void() ClientDisconnect = { }; void() cheat = { - if(deathmatch || coop) { + if((deathmatch || coop) && !(temp1flag & SF_CHEATS)) { return; } @@ -1051,7 +1051,7 @@ void() cheat = { }; void() cheat_quad = { - if(deathmatch || coop) { + if((deathmatch || coop) && !(temp1flag & SF_CHEATS)) { return; } diff --git a/source/items.qc b/source/items.qc index 4692673..3ba95f5 100644 --- a/source/items.qc +++ b/source/items.qc @@ -118,9 +118,8 @@ float(entity e, float healamount, float ignore) T_Heal = { /*QUAKED item_health(.3 .3 1) (0 0 0) (32 32 32) rotten megahealth Health box. Normally gives 25 points. -Rotten box heals 5-10 points, -megahealth will add 100 health, then -rot you down to your maximum health limit, +Rotten box heals 15 points, +Megahealth will add 100 health, then rot you down to your maximum health limit, one point per second. */