debug: OMNI-GATES one-line un-gated status banner per mission (class/companion/skull/mode/toggles/debug as the mod actually reads them) — settles 'was debug really on / did the class gates open' without any debug requirement
This commit is contained in:
@@ -710,6 +710,11 @@ mod:hook_safe(CLASS.PlayerUnitSmartTargetingExtension, "fixed_update",
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not mod.omni_gates_banner_done then
|
||||||
|
mod.omni_gates_banner_done = true
|
||||||
|
local game_mode_manager = Managers.state.game_mode
|
||||||
|
mod:diag(string.format("OMNI-GATES class=%s companion=%s skull=%s mode=%s valid=%s toggle=%s debug=%s", tostring(context.class_name), tostring(context.has_companion), tostring(context.has_servo_skull), game_mode_manager and tostring(game_mode_manager:game_mode_name()) or "nil", tostring(context.game_mode_valid), tostring(mod_settings.toggle_mod), tostring(mod_settings.debug_mode)))
|
||||||
|
end
|
||||||
if mod_settings.toggle_mod and context.game_mode_valid then
|
if mod_settings.toggle_mod and context.game_mode_valid then
|
||||||
mod.num_visibility_checks_this_frame = 0
|
mod.num_visibility_checks_this_frame = 0
|
||||||
clean_expired_units(t)
|
clean_expired_units(t)
|
||||||
|
|||||||
Reference in New Issue
Block a user