Divergent/mods/Weapon Parts Overhaul/gamedata/scripts/clear_jam_mcm.script

24 lines
472 B
Plaintext

-- Placeholder for older versions
-- local last_click = nil
-- local function on_key_press(key)
-- local bind = dik_to_bind(key)
-- local tg = time_global()
-- if bind == key_bindings.kUSE then
-- if not last_click then last_click = tg
-- else
-- if tg < last_click + 400 then
-- arti_jamming.unjam()
-- end
-- last_click = nil
-- end
-- end
-- end
-- function on_game_start()
-- RegisterScriptCallback("on_key_press",on_key_press)
-- end