Add automation state for level starts
Could be useful for map start changes
This commit is contained in:
parent
d4fae7e807
commit
821afa350c
3 changed files with 5 additions and 0 deletions
|
|
@ -913,6 +913,7 @@ const char *automate_names[AEV__MAX] =
|
|||
"VoteStart", // AEV_VOTESTART
|
||||
"QueueStart", // AEV_QUEUESTART
|
||||
"QueueEnd", // AEV_QUEUEEND
|
||||
"LevelStart" // AEV_LEVELSTART
|
||||
};
|
||||
|
||||
/// \warning Keep this up-to-date if you add/remove/rename net text commands
|
||||
|
|
|
|||
|
|
@ -452,6 +452,7 @@ typedef enum
|
|||
AEV_VOTESTART,
|
||||
AEV_QUEUESTART,
|
||||
AEV_QUEUEEND,
|
||||
AEV_LEVELSTART,
|
||||
AEV__MAX
|
||||
} automateEvents_t;
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
/// \file g_game.c
|
||||
/// \brief game loop functions, events handling
|
||||
|
||||
#include "d_netcmd.h"
|
||||
#include "doomdef.h"
|
||||
#include "console.h"
|
||||
#include "d_main.h"
|
||||
|
|
@ -1947,6 +1948,8 @@ void G_DoLoadLevel(boolean resetplayer)
|
|||
|
||||
Automate_Run(AEV_ROUNDSTART);
|
||||
}
|
||||
|
||||
Automate_Run(AEV_LEVELSTART);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in a new issue