Add setting to disable script parameter randomisation

This commit is contained in:
Jonathan G Rennison
2024-03-02 11:34:40 +00:00
parent e730956213
commit 2bb5c9ac84
7 changed files with 21 additions and 6 deletions

View File

@@ -76,6 +76,15 @@ pre_cb = CheckScriptMaxMemoryChange
post_cb = ScriptMaxMemoryChange
cat = SC_EXPERT
[SDT_BOOL]
var = script.script_disable_param_randomisation
flags = SF_PATCH
def = false
str = STR_CONFIG_SETTING_SCRIPT_DISABLE_PARAM_RANDOM
strhelp = STR_CONFIG_SETTING_SCRIPT_DISABLE_PARAM_RANDOM_HELPTEXT
post_cb = [](auto) { InvalidateWindowClassesData(WC_SCRIPT_SETTINGS); InvalidateWindowClassesData(WC_GAME_OPTIONS); }
cat = SC_ADVANCED
[SDT_BOOL]
var = ai.ai_in_multiplayer
def = true