Divergent/mods/Outfit Animations/gamedata/scripts/zzzz_outfit_animations_anim...

22 lines
647 B
Plaintext

local OriginalPAD = outfit_animations.play_animation_delayed
function outfit_animations.play_animation_delayed(obj, callback)
local enable_animations = ui_options.get("video/player/animations")
if not enable_animations then
callback()
return
end
OriginalPAD(obj, callback)
end
local OriginalBPAD = backpack_animations.play_animation_delayed
function backpack_animations.play_animation_delayed(obj, is_equip, callback)
local enable_animations = ui_options.get("video/player/animations")
if not enable_animations then
callback()
return
end
OriginalBPAD(obj, is_equip, callback)
end