Divergent/mods/M82 Reanimation/gamedata/scripts/unjam_motion_mark.script

11 lines
303 B
Plaintext

-- 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