Added pistol start gameplay option
Automatically resets the player's inventory and health when changing maps.
This commit is contained in:
parent
d63d720d4c
commit
f4a42dae1d
4 changed files with 6 additions and 2 deletions
|
|
@ -776,11 +776,12 @@ void FLevelLocals::ChangeLevel(const char *levelname, int position, int inflags,
|
|||
{
|
||||
if (thiscluster != nextcluster || (thiscluster && !(thiscluster->flags & CLUSTER_HUB)))
|
||||
{
|
||||
if (nextinfo->flags2 & LEVEL2_RESETINVENTORY)
|
||||
const bool doReset = dmflags3 & DF3_PISTOL_START;
|
||||
if (doReset || (nextinfo->flags2 & LEVEL2_RESETINVENTORY))
|
||||
{
|
||||
inflags |= CHANGELEVEL_RESETINVENTORY;
|
||||
}
|
||||
if (nextinfo->flags2 & LEVEL2_RESETHEALTH)
|
||||
if (doReset || (nextinfo->flags2 & LEVEL2_RESETHEALTH))
|
||||
{
|
||||
inflags |= CHANGELEVEL_RESETHEALTH;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue