Support to enable/disable individually...

...crashing to an entity.
This commit is contained in:
David Leal 2020-11-16 20:43:10 -06:00 committed by SmallJoker
parent 4d00cc937b
commit c353e8e3ac

View File

@ -22,8 +22,7 @@ lib_mount = {
passengers = {} passengers = {}
} }
local enable_crash = true local crash_threshold = 6.5 -- ignored if enable_crash is disabled
local crash_threshold = 6.5 -- ignored if enable_crash=false
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
@ -210,7 +209,7 @@ end
local aux_timer = 0 local aux_timer = 0
function lib_mount.drive(entity, dtime, is_mob, moving_anim, stand_anim, jump_height, can_fly, can_go_down, can_go_up) function lib_mount.drive(entity, dtime, is_mob, moving_anim, stand_anim, jump_height, can_fly, can_go_down, can_go_up, enable_crash)
aux_timer = aux_timer + dtime aux_timer = aux_timer + dtime
if can_fly and can_fly == true then if can_fly and can_fly == true then