diff --git a/src/commands.c b/src/commands.c index ab812431..2273cdc6 100644 --- a/src/commands.c +++ b/src/commands.c @@ -5092,6 +5092,15 @@ void hdptoggle(void) void handicap(void) { + qbool k_lgc = cvar(LGCMODE_VARIABLE) != 0; + + if (k_lgc) + { + G_sprint(self, 2, "Handicap is not allowed in LGC mode\n"); + + return; + } + char arg_2[1024]; if (trap_CmdArgc() != 2) @@ -7623,6 +7632,15 @@ void ToggleLGC(void) cvar_set("k_instagib", "0"); } + // disable dmgfrags + if (cvar("k_dmgfrags")) + { + cvar_set("k_dmgfrags", "0"); + } + + // turn off handicap + SetHandicap(self, 100); + cvar_set(LGCMODE_VARIABLE, k_lgc ? "1" : "0"); cvar_toggle_msg(self, LGCMODE_VARIABLE, redtext("LGC mode")); @@ -7861,6 +7879,15 @@ void dmgfrags(void) return; } + qbool k_lgc = cvar(LGCMODE_VARIABLE) != 0; + + if (k_lgc) + { + G_sprint(self, 2, "Dmgfrags is not allowed in LGC mode\n"); + + return; + } + cvar_toggle_msg(self, "k_dmgfrags", redtext("damage frags")); }