Fix model animations after detach, remove README.txt

This commit is contained in:
SmallJoker
2019-11-26 19:40:25 +01:00
parent f7a649e596
commit cc293e95fe
2 changed files with 3 additions and 59 deletions

View File

@ -13,12 +13,13 @@ function boost_cart:manage_attachment(player, obj)
local wants_attach = obj ~= nil
local attached = player:get_attach() ~= nil
local player_name = player:get_player_name()
boost_cart.player_attached[player_name] = attached or wants_attach
if attached == wants_attach then
return
end
local player_name = player:get_player_name()
boost_cart.player_attached[player_name] = wants_attach
if wants_attach then
player:set_attach(obj, "", {x=0, y=-4, z=0}, {x=0, y=0, z=0})
player:set_eye_offset({x=0, y=-4, z=0},{x=0, y=-4, z=0})