Merge branch 'master' of https://github.com/ZDoom/gzdoom into GZDoomUpdate-12-07-2023

This commit is contained in:
nashmuhandes 2023-07-12 20:51:41 +08:00
commit 07f722b6f3
74 changed files with 773 additions and 294 deletions

View file

@ -408,6 +408,39 @@ CCMD (changemap)
}
}
CCMD (changeskill)
{
if (!players[consoleplayer].mo || !usergame)
{
Printf ("Use the skill command when not in a game.\n");
return;
}
if (!players[consoleplayer].settings_controller && netgame)
{
Printf ("Only setting controllers can change the skill.\n");
return;
}
if (argv.argc() == 2)
{
int skill = atoi(argv[1]);
if ((unsigned)skill >= AllSkills.Size())
{
Printf ("Skill %d is out of range.\n", skill);
}
else
{
NextSkill = skill;
Printf ("Skill %d will take effect on the next map.\n", skill);
}
}
else
{
Printf ("Usage: changeskill <skill>\n");
}
}
CCMD (give)
{
if (CheckCheatmode () || argv.argc() < 2)