add sf_cheats support

master
an 2019-09-19 12:56:39 -04:00
parent 2aa46c72ec
commit 6015681eaa
2 changed files with 4 additions and 5 deletions

View File

@ -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;
}

View File

@ -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.
*/