You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because 3darmor's call to player_api.register_model() does not provide values for .eye_height, .stepheight and .collisionbox, the following happens during the call to player_api.register_model():
The table is given default values for .eye_height, .stepheight and .collisionbox
These values are then copied into each mini-table. Thus, both stand and lay now have the same value for .eye_height (which is obviously wrong)
The player_api code notices that most of the animations have the same values, so it maps them onto each other (using the .equals field, in line 42). Thus, most of the animations are now completely wrong
The solution (which I have tested) is to change the table in 3d_armor's call to player_api.register_model() so it's the same as player_api's own call to player_api.register_model().
The text was updated successfully, but these errors were encountered:
For example, the player will stand on a bed, rather than lying on it (90% of the time).
Here's the broken code, in 3d_armor/init.lua:
Because 3darmor's call to
player_api.register_model()
does not provide values for.eye_height
,.stepheight
and.collisionbox
, the following happens during the call toplayer_api.register_model()
:.eye_height
(which is obviously wrong)The solution (which I have tested) is to change the table in 3d_armor's call to
player_api.register_model()
so it's the same as player_api's own call toplayer_api.register_model()
.The text was updated successfully, but these errors were encountered: