52 lines
1.8 KiB
Plaintext
52 lines
1.8 KiB
Plaintext
--[[=====================================================================
|
|
Fair Fast Travel System
|
|
Version: 2.3.2
|
|
Updated: 20230911
|
|
Author: Catspaw (CatspawMods @ ModDB)
|
|
Source: https://www.moddb.com/mods/stalker-anomaly/addons/fair-fast-travel-duration-for-anomaly-151
|
|
|
|
Based on the Fast Travel system in Anomaly 1.5.2 by:
|
|
Alundaio (original author)
|
|
sLoPpYdOtBiGhOlE (marker names, menu and config options, etc)
|
|
|
|
IMPORTANT:
|
|
|
|
All backpack travel functionality has been moved into
|
|
game_fast_travel.script.
|
|
|
|
Everything here in game_backpack_travel.script is a stub to avoid
|
|
crashes if another addon tries to call the original vanilla
|
|
functions, and ensure that the vanilla settings are exposed for any
|
|
addon that tries to reference them.
|
|
|
|
Please do not delete or alter this file.
|
|
-- ==================================================================--]]
|
|
|
|
bp_travel = nil
|
|
bp_combat = nil
|
|
bp_damage = nil
|
|
bp_notime = nil
|
|
bp_storm = nil
|
|
|
|
bbp_extra_weight = game_fast_travel.bbp_extra_weight
|
|
|
|
function map_spot_menu_add_property()
|
|
printf("Something tried to call game_backpack_travel.map_spot_menu_add_property, which is deprecated")
|
|
end
|
|
|
|
function map_spot_menu_property_clicked()
|
|
printf("Something tried to call game_backpack_travel.map_spot_menu_property_clicked, which is deprecated")
|
|
end
|
|
|
|
function update_settings()
|
|
bp_travel = ui_options.get("gameplay/backpack_travel/state")
|
|
bp_combat = ui_options.get("gameplay/backpack_travel/on_combat")
|
|
bp_damage = ui_options.get("gameplay/backpack_travel/on_damage")
|
|
bp_notime = ui_options.get("gameplay/backpack_travel/time")
|
|
bp_storm = ui_options.get("gameplay/backpack_travel/on_emission")
|
|
bp_weight = ui_options.get("gameplay/backpack_travel/on_overweight")
|
|
end
|
|
|
|
function on_game_start()
|
|
RegisterScriptCallback("on_option_change",update_settings)
|
|
end |