add sf_cheats support

This commit is contained in:
alison wright 2019-09-19 12:56:39 -04:00
부모 2aa46c72ec
커밋 6015681eaa
2개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제

파일 보기

@ -1026,7 +1026,7 @@ void() ClientDisconnect = {
}; };
void() cheat = { void() cheat = {
if(deathmatch || coop) { if((deathmatch || coop) && !(temp1flag & SF_CHEATS)) {
return; return;
} }
@ -1051,7 +1051,7 @@ void() cheat = {
}; };
void() cheat_quad = { void() cheat_quad = {
if(deathmatch || coop) { if((deathmatch || coop) && !(temp1flag & SF_CHEATS)) {
return; return;
} }

파일 보기

@ -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 /*QUAKED item_health(.3 .3 1) (0 0 0) (32 32 32) rotten megahealth
Health box. Normally gives 25 points. Health box. Normally gives 25 points.
Rotten box heals 5-10 points, Rotten box heals 15 points,
megahealth will add 100 health, then Megahealth will add 100 health, then rot you down to your maximum health limit,
rot you down to your maximum health limit,
one point per second. one point per second.
*/ */