- added two new things which can set a sector's color without the need of tags
or scripts. ColorSetter (#9038) sets the sector's color and FadeSetter (#9039) sets the fog color. - added new flags MF5_ALWAYSFAST and MF5_NEVERFAST. These flags unconditionally enable or disable fast movement logic, regardless of skill settings. - added an abstraction layer for skill related settings. This is a preparation for implementing custom skill definitions but right now all it does is returning the original values but keeping the related information all in one place SVN r557 (trunk)
This commit is contained in:
parent
ab9a6623fd
commit
170b633e91
19 changed files with 185 additions and 104 deletions
|
|
@ -79,7 +79,7 @@ CCMD (toggleconsole)
|
|||
|
||||
bool CheckCheatmode ()
|
||||
{
|
||||
if (((gameskill == sk_nightmare) || netgame || deathmatch) && (!sv_cheats))
|
||||
if ((G_SkillProperty(SKILLP_DisableCheats) || netgame || deathmatch) && (!sv_cheats))
|
||||
{
|
||||
Printf ("sv_cheats must be true to enable this command.\n");
|
||||
return true;
|
||||
|
|
@ -230,7 +230,7 @@ CCMD (chase)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (deathmatch && CheckCheatmode ())
|
||||
if (gamestate == GS_LEVEL && deathmatch && CheckCheatmode ())
|
||||
return;
|
||||
|
||||
Net_WriteByte (DEM_GENERICCHEAT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue