MineClone2/mods/PLAYER/mcl_fovapi/api.md

22 lines
491 B
Markdown
Raw Normal View History

2023-12-02 13:00:25 +01:00
2023-12-03 12:47:28 +01:00
registered_modifiers has defs of modifiers
2023-12-02 13:00:25 +01:00
2023-12-03 12:47:28 +01:00
applied_modifiers is indexed by player name
2023-12-02 13:00:25 +01:00
mcl_fovapi = {}
2023-12-03 12:47:28 +01:00
2023-12-02 13:00:25 +01:00
mcl_fovapi.default_fov = {}
2023-12-03 12:47:28 +01:00
2023-12-02 13:00:25 +01:00
mcl_fovapi.registered_modifiers = {}
2023-12-03 12:47:28 +01:00
2023-12-02 13:00:25 +01:00
mcl_fovapi.applied_modifiers = {}
2023-12-03 12:47:28 +01:00
function mcl_fovapi.register_modifier(name, fov_factor, time, is_multiplier, exclusive, on_start, on_end)
2023-12-02 13:00:25 +01:00
function mcl_fovapi.apply_modifier(player, modifier_name)
2023-12-03 12:47:28 +01:00
function mcl_fovapi.remove_modifier(player, modifier_name)
function mcl_fovapi.remove_all_modifiers(player, time)