Added, Updated and Removed Mods; Updated Readme
This commit is contained in:
+32
-17
@@ -8,8 +8,8 @@
|
||||
https://www.youtube.com/channel/UCtG8fiWPUZEzWlkUn60btAw
|
||||
|
||||
Source: https://www.moddb.com/mods/stalker-anomaly/addons/personal-adjustable-waypoint-for-anomaly-151-152-and-gamma
|
||||
Version: 2.1.2
|
||||
Updated: 20240320
|
||||
Version: 2.1.3
|
||||
Updated: 20240330
|
||||
|
||||
You may alter any part of this mod and do whatever you like with it,
|
||||
just give credit where due.
|
||||
@@ -40,8 +40,8 @@
|
||||
-- SHORTCUTS, FLAGS, AND SYSTEM STUFF
|
||||
(Most of which you probably shouldn't muck with)
|
||||
-- ===================================================================--]]
|
||||
script_version = "2.1.2"
|
||||
release_date = 20240320
|
||||
script_version = "2.1.3"
|
||||
release_date = 20240330
|
||||
local scriptname = "tasks_placeable_waypoints"
|
||||
local logprefix = "<PAW> "
|
||||
local language = "eng"
|
||||
@@ -174,7 +174,6 @@ mark_on_positive_id = true
|
||||
reticle_mustzoom = true
|
||||
reticle_mode = 2
|
||||
autotag_mode = 0
|
||||
autotag_milpda_feature = true
|
||||
autotag_persistence = false -- if enabled, autotags are cleared on map change or the below timeout value
|
||||
autotag_lifetime = 120 * 6 -- time in ms before autotags are cleared (def 2 minutes)
|
||||
autotags_time_out = autotag_lifetime > 0
|
||||
@@ -316,23 +315,26 @@ dynamic_faves = pawdata.dynamic_faves -- not implemented yet
|
||||
|
||||
-- ======================================================================
|
||||
pda_defs = {
|
||||
-- By default, all PDAs support waypointing
|
||||
-- By default, all PDAs support waypointing and autotag
|
||||
["device_pda_1"] = {
|
||||
show_w = true,
|
||||
autotag = true,
|
||||
},
|
||||
["device_pda_2"] = {
|
||||
show_w = true,
|
||||
},
|
||||
autotag = true, },
|
||||
["device_pda_3"] = {
|
||||
show_w = true,
|
||||
},
|
||||
autotag = true, },
|
||||
["device_pda_milspec"] = {
|
||||
show_w = true,
|
||||
autotag = true,
|
||||
},
|
||||
-- If you use an addon with an unsupported PDA section, add it here
|
||||
-- ["device_pda_added_by_your_mod"] = {
|
||||
-- show_w = false,
|
||||
-- },
|
||||
-- ["device_pda_added_by_your_mod"] = {
|
||||
-- show_w = false,
|
||||
-- autotag = false,
|
||||
-- },
|
||||
}
|
||||
|
||||
|
||||
@@ -845,12 +847,13 @@ function safename(id)
|
||||
end
|
||||
|
||||
|
||||
function valid_pda()
|
||||
function valid_pda(feature)
|
||||
feature = feature or "show_w"
|
||||
local dev = db.actor and db.actor:item_in_slot(8)
|
||||
local sec = dev and dev:section()
|
||||
if not sec then return false end
|
||||
if dev and pda_defs[sec] then
|
||||
if pda_defs[sec].show_w then return true end
|
||||
if pda_defs[sec][feature] then return true end
|
||||
elseif item_device.device_npc_pda[sec] then
|
||||
local text = ts("st_paw_npc_pda_equipped")
|
||||
dotip(text)
|
||||
@@ -1724,6 +1727,8 @@ function create_smart_pin(notip,silent)
|
||||
end
|
||||
|
||||
function autotag_target(notip,silent)
|
||||
--if not valid_pda("autotag") then return end
|
||||
|
||||
local id = create_smart_pin(true)
|
||||
set_pingspot_persistence(id,autotag_persistence)
|
||||
set_pin_persistence(id,autotag_persistence)
|
||||
@@ -1887,7 +1892,7 @@ function execute_context_menu_option(property_ui,id,level_name,prop)
|
||||
id = last_clicked_id
|
||||
last_clicked_id = nil
|
||||
vl("execute_context_menu_option called for id %s\n| prop: %s\n| action %s",id,prop,action[prop])
|
||||
if not (paw_enabled and id and valid_pda()) then return end
|
||||
if not (paw_enabled and id and valid_pda("show_w")) then return end
|
||||
if not (id and (id > 0)) then return end
|
||||
local se_obj = alife_object(id)
|
||||
if not se_obj then return end
|
||||
@@ -2448,6 +2453,7 @@ function mcm_reload_reticle_settings()
|
||||
reticle_color.a = load_mcm("pawret/reticle_alpha",reticle_color.a)
|
||||
ret_fade_attack_time = load_mcm("pawret/ret_fade_attack_time",ret_fade_attack_time)
|
||||
ret_fade_decay_time = load_mcm("pawret/ret_fade_decay_time",ret_fade_decay_time)
|
||||
vl("Autotag settings: mode %s | mustzoom %s | manual %s",autotag_mode,reticle_mustzoom,manual_smart_pins)
|
||||
for k,v in pairs(smart_pins) do
|
||||
smart_pins[k].pin = load_mcm("pawret/"..k,v.pin)
|
||||
smart_pins[k].enabled = load_mcm("pawret/"..k.."_enable",v.enabled)
|
||||
@@ -2461,8 +2467,8 @@ function mcm_reload_reticle_settings()
|
||||
if did ~= nil then
|
||||
npc_ident.id_bodies = did
|
||||
end
|
||||
npc_ident.id_speed = ui_mcm.get("targetID/speedID") or 0.3
|
||||
npc_ident.lenience = ui_mcm.get("targetID/targL") or 0.99
|
||||
npc_ident.id_speed = tonumber(ui_mcm.get("targetID/speedID")) or 0.3
|
||||
npc_ident.lenience = tonumber(ui_mcm.get("targetID/targL")) or 0.99
|
||||
end
|
||||
end
|
||||
|
||||
@@ -2479,6 +2485,15 @@ function on_option_change()
|
||||
if load_mcm("pawgen/wipe_all") then
|
||||
ui_mcm.set("pawsys/pawgen/wipe_all",false)
|
||||
dl("MCM: Wiping all pin data per player request")
|
||||
local hudpins = hud_pin_objs
|
||||
for k,v in pairs(hudpins) do
|
||||
hide_hud_pin(k)
|
||||
end
|
||||
hud_pin_objs = {}
|
||||
for k,v in pairs(map_labels) do
|
||||
map_labels[k].box:Show(false)
|
||||
end
|
||||
map_labels = {}
|
||||
local args = {wipe_all=true,syscall=true}
|
||||
do_paw_action("pn_clr",nil,nil,args)
|
||||
end
|
||||
@@ -2923,7 +2938,7 @@ function UIPinSettingsWnd:__init(id,args) super()
|
||||
)
|
||||
if pins[id].custom_colors and pins[id].colors then
|
||||
local colors = pins[id].colors
|
||||
printf(logprefix.."A: %s | R: %s | G: %s | B: %s",colors.a,colors.r,colors.g,colors.b)
|
||||
--printf(logprefix.."A: %s | R: %s | G: %s | B: %s",colors.a,colors.r,colors.g,colors.b)
|
||||
end
|
||||
end
|
||||
self.init_time = tostring(get_time_elapsed())
|
||||
|
||||
Reference in New Issue
Block a user