Add automation state for level starts

Could be useful for map start changes
This commit is contained in:
NepDisk 2026-04-13 17:24:39 -04:00
parent d4fae7e807
commit 821afa350c
3 changed files with 5 additions and 0 deletions

View file

@ -913,6 +913,7 @@ const char *automate_names[AEV__MAX] =
"VoteStart", // AEV_VOTESTART "VoteStart", // AEV_VOTESTART
"QueueStart", // AEV_QUEUESTART "QueueStart", // AEV_QUEUESTART
"QueueEnd", // AEV_QUEUEEND "QueueEnd", // AEV_QUEUEEND
"LevelStart" // AEV_LEVELSTART
}; };
/// \warning Keep this up-to-date if you add/remove/rename net text commands /// \warning Keep this up-to-date if you add/remove/rename net text commands

View file

@ -452,6 +452,7 @@ typedef enum
AEV_VOTESTART, AEV_VOTESTART,
AEV_QUEUESTART, AEV_QUEUESTART,
AEV_QUEUEEND, AEV_QUEUEEND,
AEV_LEVELSTART,
AEV__MAX AEV__MAX
} automateEvents_t; } automateEvents_t;

View file

@ -11,6 +11,7 @@
/// \file g_game.c /// \file g_game.c
/// \brief game loop functions, events handling /// \brief game loop functions, events handling
#include "d_netcmd.h"
#include "doomdef.h" #include "doomdef.h"
#include "console.h" #include "console.h"
#include "d_main.h" #include "d_main.h"
@ -1947,6 +1948,8 @@ void G_DoLoadLevel(boolean resetplayer)
Automate_Run(AEV_ROUNDSTART); Automate_Run(AEV_ROUNDSTART);
} }
Automate_Run(AEV_LEVELSTART);
} }
// //