Divergent/mods/Fair Fast Travel/gamedata/scripts/catsy_fftd_mcm.script

155 lines
10 KiB
Plaintext
Raw Normal View History

2024-03-17 20:18:03 -04:00
--[[ Fair Fast Travel
MCM initialization script
Author: Catspaw (CatspawMods @ ModDB)
Source: https://www.moddb.com/mods/stalker-anomaly/addons/fair-fast-travel-duration-for-anomaly-151
Version: 2.3.1
Updated: 20230826
--]]
function on_mcm_load()
op = { id= "fftd", gr={
{ id = "gen", sh=true, gr={
{id = "slide_gen", type= "slide", link= "ui_fft_menuslide_maincfg", size= {512,50}, spacing= 20},
{id = "allow_open_bp", type = "check", val = 1, def = false},
{id = "shared_cooldown", type = "check", val = 1, def = false},
{id = "cond_dmg_mode", type = "list", val = 2, def = 1,
content= {
{0,"fft_dmg_all"},
{1,"fft_dmg_random"},
{2,"fft_dmg_armor"},
{3,"fft_dmg_weapons"},
{-1,"fft_dmg_disabled"},
}
},
{id = "minimum_health", type = "track", val = 2, min = 0, max = 100, step = 1, def = 0},
{id = "minimum_satiety", type = "track", val = 2, min = 0, max = 100, step = 1, def = 0},
{id = "combat_dist", type = "track", val = 2, min = 1, max = 100, step = 1, def = 100},
{id = "combat_timeout", type = "track", val = 2, min = 1, max = 120, step = 1, def = 10},
{id = "skillsystem_enabled", type = "check", val = 1, def = false},
{id = "use_warfare_fix", type = "check", val = 1, def = false},
{id = "allow_debug_travel", type = "check", val = 1, def = false},
{id = "debuglogs_enabled", type = "check", val = 1, def = false},
{id = "divider", type = "line"},
{id = "pawlink", type = "desc", text = "ui_mcm_fftd_getpaw"},
},
},
{ id = "ftcfg", sh=true, gr={
{id = "slide_ft", type= "slide", link= "ui_fft_menuslide_slider_ftravel", size= {512,50}, spacing= 20},
{id = "headertxt", type = "desc", clr = {255,255,255,0}, text = "ui_mcm_header_ft"},
{id = "subhead", type = "desc", text = "ui_mcm_header_ftsub"},
{id = "useoldcalcs", type = "check", val = 1, def = false, hint = "fftd_useoldcalcs"},
{id = "usedisguisefix", type = "check", val = 1, def = true, hint = "fftd_usedisguisefix"},
{id = "allow_pin_travel", type = "check", val = 1, def = true, hint = "fftd_allow_pin_travel"},
{id = "travel_cooldown", type = "input", val = 2, min = 0, max = 7200, def = 0},
{id = "cost_coef", type = "track", val = 2, min = 0, max = 50, step = 0.25, def = 0, hint = "fftd_cost_coef"},
{id = "divider", type = "line"},
{id = "headertxt", type = "desc", clr = {255,255,255,0}, text = "ui_mcm_header_loc_travel"},
{id = "locmpm", type = "track", val = 2, min = 1, max = 120, step = 1, def = 10, hint = "fftd_mpm"},
{id = "locpause_stats", type = "check", val = 1, def = false, hint = "fftd_pause_stats"},
{id = "locgear_dmg", type = "track", val = 2, min = 0, max = 11, step = 0.1, def = 0, hint = "fftd_gear_dmg_factor"},
{id = "locrnd_enabled", type = "check", val = 1, def = false, hint = "fftd_rnd_enabled"},
{id = "locrnd_hours_min", type = "track", val = 2, min = 0, max = 23, step = 1, def = 0, hint = "fftd_rnd_hours_min"},
{id = "locrnd_hours_max", type = "track", val = 2, min = 0, max = 23, step = 1, def = 0, hint = "fftd_rnd_hours_max"},
{id = "locrnd_minutes_min", type = "track", val = 2, min = 0, max = 59, step = 1, def = 0, hint = "fftd_rnd_minutes_min"},
{id = "locrnd_minutes_max", type = "track", val = 2, min = 0, max = 59, step = 1, def = 0, hint = "fftd_rnd_minutes_max"},
{id = "divider", type = "line"},
{id = "headertxt", type = "desc", clr = {255,255,255,0}, text = "ui_mcm_header_map_travel"},
{id = "mapmpm", type = "track", val = 2, min = 1, max = 120, step = 1, def = 10, hint = "fftd_mpm"},
{id = "mappause_stats", type = "check", val = 1, def = false, hint = "fftd_pause_stats"},
{id = "mapgear_dmg", type = "track", val = 2, min = 0, max = 11, step = 0.1, def = 1, hint = "fftd_gear_dmg_factor"},
{id = "maprnd_enabled", type = "check", val = 1, def = false, hint = "fftd_rnd_enabled"},
{id = "maprnd_hours_min", type = "track", val = 2, min = 0, max = 23, step = 1, def = 0, hint = "fftd_rnd_hours_min"},
{id = "maprnd_hours_max", type = "track", val = 2, min = 0, max = 23, step = 1, def = 2, hint = "fftd_rnd_hours_max"},
{id = "maprnd_minutes_min", type = "track", val = 2, min = 0, max = 59, step = 1, def = 0, hint = "fftd_rnd_minutes_min"},
{id = "maprnd_minutes_max", type = "track", val = 2, min = 0, max = 59, step = 1, def = 59, hint = "fftd_rnd_minutes_max"},
},
},
{ id = "bpcfg", sh=true, gr={
{id = "slide_bp", type= "slide", link= "ui_fft_menuslide_slider_backpack", size= {512,50}, spacing= 20},
{id = "headertxt", type = "desc", clr = {255,255,255,0}, text = "ui_mcm_header_bp"},
{id = "subhead", type = "desc", clr = {255,200,200,200}, text = "ui_mcm_header_bpsub"},
{id = "useoldcalcs", type = "check", val = 1, def = false, hint = "fftd_useoldcalcs"},
{id = "usedisguisefix", type = "check", val = 1, def = true, hint = "fftd_usedisguisefix"},
{id = "travel_cooldown", type = "input", val = 2, min = 0, max = 7200, def = 0},
{id = "cost_coef", type = "track", val = 2, min = 0, max = 50, step = 0.25, def = 0, hint = "fftd_cost_coef"},
{id = "divider", type = "line"},
{id = "headertxt", type = "desc", clr = {255,255,255,0}, text = "ui_mcm_header_loc_travel"},
{id = "locmpm", type = "track", val = 2, min = 1, max = 120, step = 1, def = 9, hint = "fftd_mpm"},
{id = "locpause_stats", type = "check", val = 1, def = false, hint = "fftd_pause_stats"},
{id = "locgear_dmg", type = "track", val = 2, min = 0, max = 11, step = 0.1, def = 0, hint = "fftd_gear_dmg_factor"},
{id = "locrnd_enabled", type = "check", val = 1, def = false, hint = "fftd_rnd_enabled"},
{id = "locrnd_hours_min", type = "track", val = 2, min = 0, max = 23, step = 1, def = 0, hint = "fftd_rnd_hours_min"},
{id = "locrnd_hours_max", type = "track", val = 2, min = 0, max = 23, step = 1, def = 0, hint = "fftd_rnd_hours_max"},
{id = "locrnd_minutes_min", type = "track", val = 2, min = 0, max = 59, step = 1, def = 0, hint = "fftd_rnd_minutes_min"},
{id = "locrnd_minutes_max", type = "track", val = 2, min = 0, max = 59, step = 1, def = 0, hint = "fftd_rnd_minutes_max"},
{id = "divider", type = "line"},
{id = "headertxt", type = "desc", clr = {255,255,255,0}, text = "ui_mcm_header_map_travel"},
{id = "mapmpm", type = "track", val = 2, min = 1, max = 120, step = 1, def = 9, hint = "fftd_mpm"},
{id = "mappause_stats", type = "check", val = 1, def = false, hint = "fftd_pause_stats"},
{id = "mapgear_dmg", type = "track", val = 2, min = 0, max = 11, step = 0.1, def = 0.5, hint = "fftd_gear_dmg_factor"},
{id = "maprnd_enabled", type = "check", val = 1, def = false, hint = "fftd_rnd_enabled"},
{id = "maprnd_hours_min", type = "track", val = 2, min = 0, max = 23, step = 1, def = 0, hint = "fftd_rnd_hours_min"},
{id = "maprnd_hours_max", type = "track", val = 2, min = 0, max = 23, step = 1, def = 2, hint = "fftd_rnd_hours_max"},
{id = "maprnd_minutes_min", type = "track", val = 2, min = 0, max = 59, step = 1, def = 0, hint = "fftd_rnd_minutes_min"},
{id = "maprnd_minutes_max", type = "track", val = 2, min = 0, max = 59, step = 1, def = 59, hint = "fftd_rnd_minutes_max"},
},
},
{ id = "gtcfg", sh=true, gr={
{id = "slide_gt", type= "slide", link= "ui_fft_menuslide_slider_guided", size= {512,50}, spacing= 20},
{id = "headertxt", type = "desc", clr = {255,255,255,0}, text = "ui_mcm_header_gt"},
{id = "subhead", type = "desc", clr = {255,200,200,200}, text = "ui_mcm_header_gtsub"},
{id = "enabled", type = "check", val = 1, def = true},
{id = "ignore_status", type = "check", val = 1, def = true},
{id = "add_travel_time", type = "check", val = 1, def = true},
{id = "local_only", type = "check", val = 1, def = false},
--{id = "guides_loyal", type = "check", val = 1, def = true},
-- Feature not ready yet
{id = "cost_coef", type = "track", val = 2, min = 0, max = 50, step = 0.25, def = 2.5, hint = "fftd_cost_coef"},
{id = "allow_pin_travel", type = "check", val = 1, def = false, hint = "fftd_allow_pin_travel"},
{id = "usedisguisefix", type = "check", val = 1, def = true, hint = "fftd_usedisguisefix"},
{id = "travel_cooldown", type = "input", val = 2, min = 0, max = 7200, def = 0},
{id = "divider", type = "line"},
{id = "headertxt", type = "desc", clr = {255,255,255,0}, text = "ui_mcm_header_loc_travel"},
{id = "locmpm", type = "track", val = 2, min = 1, max = 120, step = 1, def = 8, hint = "fftd_mpm"},
{id = "locpause_stats", type = "check", val = 1, def = true, hint = "fftd_pause_stats"},
{id = "locgear_dmg", type = "track", val = 2, min = 0, max = 11, step = 0.1, def = 0, hint = "fftd_gear_dmg_factor"},
{id = "locrnd_enabled", type = "check", val = 1, def = false, hint = "fftd_rnd_enabled"},
{id = "locrnd_hours_min", type = "track", val = 2, min = 0, max = 23, step = 1, def = 0, hint = "fftd_rnd_hours_min"},
{id = "locrnd_hours_max", type = "track", val = 2, min = 0, max = 23, step = 1, def = 0, hint = "fftd_rnd_hours_max"},
{id = "locrnd_minutes_min", type = "track", val = 2, min = 0, max = 59, step = 1, def = 0, hint = "fftd_rnd_minutes_min"},
{id = "locrnd_minutes_max", type = "track", val = 2, min = 0, max = 59, step = 1, def = 0, hint = "fftd_rnd_minutes_max"},
{id = "divider", type = "line"},
{id = "headertxt", type = "desc", clr = {255,255,255,0}, text = "ui_mcm_header_map_travel"},
{id = "mapmpm", type = "track", val = 2, min = 1, max = 120, step = 1, def = 8, hint = "fftd_mpm"},
{id = "mappause_stats", type = "check", val = 1, def = true, hint = "fftd_pause_stats"},
{id = "mapgear_dmg", type = "track", val = 2, min = 0, max = 11, step = 0.1, def = 0.5, hint = "fftd_gear_dmg_factor"},
{id = "maprnd_enabled", type = "check", val = 1, def = false, hint = "fftd_rnd_enabled"},
{id = "maprnd_hours_min", type = "track", val = 2, min = 0, max = 23, step = 1, def = 0, hint = "fftd_rnd_hours_min"},
{id = "maprnd_hours_max", type = "track", val = 2, min = 0, max = 23, step = 1, def = 0, hint = "fftd_rnd_hours_max"},
{id = "maprnd_minutes_min", type = "track", val = 2, min = 0, max = 59, step = 1, def = 0, hint = "fftd_rnd_minutes_min"},
{id = "maprnd_minutes_max", type = "track", val = 2, min = 0, max = 59, step = 1, def = 0, hint = "fftd_rnd_minutes_max"},
},
},
}
}
return op
end