Added a new argument to HOOK_GAMEMODECHANGE

* now the previous game mode can be checked with arg2 (#211)

Fixed GAMEMODECHANGE hook being triggered even when the game mode is not
changed.

Added 'SPECIAL' flag to the game mode functions (when switching from
DIALOG mode to BARTER).
This commit is contained in:
NovaRain
2019-11-20 10:41:21 +08:00
parent f0f134d077
commit 5053ab564d
5 changed files with 29 additions and 11 deletions
+1
View File
@@ -514,6 +514,7 @@ HOOK_GAMEMODECHANGE (hs_gamemodechange.int)
Runs once every time when the game mode was changed, like opening/closing the inventory, character screen, pipboy, etc.
int arg1 - event type: 1 - when the player exits the game, 0 - otherwise
int arg2 - the previous game mode
-------------------------------------------