Divergent/mods/M24 and M98B Reanimation/gamedata/scripts/unjam_motion_mark.script

11 lines
303 B
Plaintext
Raw Normal View History

2024-03-17 20:18:03 -04:00
-- Clear jam mid animation with motion marks
function actor_on_hud_animation_mark(state, mark)
if mark == "clear_jam" then
db.actor:active_item():cast_Weapon():SetMisfire(false)
end
end
function on_game_start()
RegisterScriptCallback("actor_on_hud_animation_mark",actor_on_hud_animation_mark)
end