mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
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:
@@ -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
|
||||
|
||||
-------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user