Pitch-Rotate player model and unblock downwards-going view

This commit is contained in:
SmallJoker
2017-10-27 12:33:32 +02:00
parent be0c56edef
commit 6ac106c1a7
3 changed files with 24 additions and 2 deletions

View File

@ -18,8 +18,7 @@ function boost_cart:manage_attachment(player, obj)
default.player_attached[player_name] = status
if status then
-- player_api came after the new model. Check for it.
local y_pos = player_api and -4.5 or 6
local y_pos = self.old_player_model and 6 or -4.2
player:set_attach(obj, "", {x=0, y=y_pos, z=0}, {x=0, y=0, z=0})
player:set_eye_offset({x=0, y=-4, z=0},{x=0, y=-4, z=0})
else