Added New Mods and Profiles Folders

This is a complete rebuild of the modpack, with all new mods and updates for 1.5.3 of Anomaly.
This commit is contained in:
2025-01-14 05:07:53 -05:00
parent 85c665b107
commit 376b4b9689
21217 changed files with 546254 additions and 0 deletions
@@ -0,0 +1,29 @@
<!--
Anomaly Modconfiguration Menu strings
-->
<string_table>
<string id="ui_mcm_gggf_title">
<text>Actor Speed Config</text>
</string>
<string id="ui_mcm_menu_gggf">
<text>Grok Gotta Go Fast</text>
</string>
<string id="ui_mcm_gggf_gotta_go_fast_run">
<text>Run speed multiplier</text>
</string>
<string id="ui_mcm_gggf_gotta_go_fast_run_desc">
<text>Multiplies actor running speed (when you move without any other key pressed) by the defined factor.</text>
</string>
<string id="ui_mcm_gggf_gotta_go_fast_sprint">
<text>Sprint speed multiplier</text>
</string>
<string id="ui_mcm_gggf_gotta_go_fast_sprint_desc">
<text>Multiplies actor sprinting speed (when you move with the "Sprint" key pressed) by the defined factor.</text>
</string>
</string_table>
@@ -0,0 +1,29 @@
<!--
Anomaly Modconfiguration Menu strings
-->
<string_table>
<string id="ui_mcm_gggf_title">
<text>Actor Speed Config</text>
</string>
<string id="ui_mcm_menu_gggf">
<text>Grok Gotta Go Fast</text>
</string>
<string id="ui_mcm_gggf_gotta_go_fast_run">
<text>Run speed multiplier</text>
</string>
<string id="ui_mcm_gggf_gotta_go_fast_run_desc">
<text>Multiplies actor running speed (when you move without any other key pressed) by the defined factor.</text>
</string>
<string id="ui_mcm_gggf_gotta_go_fast_sprint">
<text>Sprint speed multiplier</text>
</string>
<string id="ui_mcm_gggf_gotta_go_fast_sprint_desc">
<text>Multiplies actor sprinting speed (when you move with the "Sprint" key pressed) by the defined factor.</text>
</string>
</string_table>
@@ -0,0 +1,19 @@
local speeds = {}
local function actor_on_first_update()
speeds[0] = db.actor:get_actor_run_coef()
speeds[1] = db.actor:get_actor_runback_coef()
speeds[2] = db.actor:get_actor_sprint_koef()
end
function actor_on_update()
run_coeff = grok_gotta_go_fast_mcm.get_config("gotta_go_fast_run")
sprint_coeff = grok_gotta_go_fast_mcm.get_config("gotta_go_fast_sprint")
speed.add_speed("gotta_go_fast_run", run_coeff , false, true)
speed.add_speed("gotta_go_fast_sprint", sprint_coeff, true, true)
end
function on_game_start()
RegisterScriptCallback("actor_on_first_update",actor_on_first_update)
RegisterScriptCallback("actor_on_update",actor_on_update)
end
@@ -0,0 +1,20 @@
-- If you don't use MCM, change your defaults from here.
local defaults = {
["gotta_go_fast_run"] = 1.05,
["gotta_go_fast_sprint"] = 1.05,
}
function get_config(key)
if ui_mcm then return ui_mcm.get("gggf/"..key) else return defaults[key] end
end
function on_mcm_load()
op = { id= "gggf",sh=true ,gr={
{ id= "title",type= "slide",link= "ui_options_slider_player",text="ui_mcm_gggf_title",size= {512,50},spacing= 20 },
{id = "gotta_go_fast_run", type = "track", val = 2, min=0.1,max=2,step=0.01, def = 1.05},
{id = "gotta_go_fast_sprint", type = "track", val = 2, min=1,max=3,step=0.01, def = 1.05},
}
}
return op
end
@@ -0,0 +1,79 @@
local speeds = {}
local sprint_modifiers = {}
local run_modifiers = {}
local not_first_update = true
local function actor_on_first_update()
speeds[0] = db.actor:get_actor_run_coef()
speeds[1] = db.actor:get_actor_runback_coef()
speeds[2] = db.actor:get_actor_sprint_koef()
not_first_update = false
end
function on_game_start()
RegisterScriptCallback("actor_on_first_update",actor_on_first_update)
end
local function update_speeds()
if not_first_update then
actor_on_first_update()
end
local run_coef = 1
for k,v in pairs(run_modifiers) do
--printf("run " .. k .. " " .. v)
run_coef = run_coef * v
end
local sprint_coef = 1
for k,v in pairs(sprint_modifiers) do
--printf("sprint " .. k .. " " .. v)
sprint_coef = sprint_coef * v
end
-- printf("base speed: "..speeds[0])
db.actor:set_actor_run_coef(clamp(speeds[0] * run_coef, 1, 10))
db.actor:set_actor_runback_coef(clamp(speeds[1] * run_coef, 1, 10))
db.actor:set_actor_sprint_koef(clamp(speeds[2] * sprint_coef, 1, 10))
end
-- Usage: Add a speed modifier.
-- Once a speed modifier is added, speed will be recalculated and set.
-- run_modifiers affects run and runback, sprint_modifiers affects sprint
-- Params:
-- speed_key - Name of speed multiplier you want to add
-- speed_mult - Speed multiplier as a number (e.g. 0.5 will halve speed)
-- is_sprint - Boolean, if true adds to sprint modifier and updates accordingly, false adds to run modifier
-- force - Boolean, will overwrite existing speed.
-- Returns true if speed added successfully, false if key already exists (and nothing happens as result)
function add_speed(speed_key, speed_mult, is_sprint, force)
if (is_sprint) then
if force or not sprint_modifiers[speed_key] then
--printf("sprint: " .. speed_key .. " " .. speed_mult)
sprint_modifiers[speed_key] = speed_mult
update_speeds()
return true
else
return false
end
else
if force or not run_modifiers[speed_key] then
--printf("run: " .. speed_key .. " " .. speed_mult)
run_modifiers[speed_key] = speed_mult
update_speeds()
return true
else
return false
end
end
end
-- Usage: Drop a speed modifier. Once a speed modifier is dropped, speed will be recalculated and set.
-- Params
-- speed_key - Name of speed multiplier to drop. Will drop from both tables.
function remove_speed(speed_key)
if sprint_modifiers[speed_key] then
sprint_modifiers[speed_key] = nil
end
if run_modifiers[speed_key] then
run_modifiers[speed_key] = nil
end
update_speeds()
end
+28
View File
@@ -0,0 +1,28 @@
[General]
gameName=stalkeranomaly
modid=0
version=d2024.12.7.0
newestVersion=
category="-1,"
nexusFileStatus=1
installationFile=1.0.1_Grok_Gotta_Go_Fast.zip
repository=Nexus
ignoredVersion=
comments=
notes=
nexusDescription=
url=
hasCustomURL=false
lastNexusQuery=
lastNexusUpdate=
nexusLastModified=2024-12-07T20:12:28Z
nexusCategory=0
converted=false
validated=false
color=@Variant(\0\0\0\x43\0\xff\xff\0\0\0\0\0\0\0\0)
tracked=0
[installedFiles]
1\modid=0
1\fileid=0
size=1