GSE: Sequences, Variables, Macros

GSE: Sequences, Variables, Macros

6M Downloads

Change Sound Protection Boiler plate to maintain the existing state.

TimothyLuke opened this issue ยท 0 comments

commented

Change premacro and postmacro for sound effect stuff to maintain the existing setting.

In premacro:

/run sfx=GetCVar("Sound_EnableSFX");
/run ers=GetCVar("Sound_EnableErrorSpeech");
/console Sound_EnableSFX 0
/console Sound_EnableErrorSpeech 0
In postmacro:

/run UIErrorsFrame:Hide();
/run UIErrorsFrame:Clear();
/run SetCVar("Sound_EnableSFX",sfx);
/run SetCVar("Sound_EnableErrorSpeech",ers);