Skip to content

Commit

Permalink
Update player_api model registration
Browse files Browse the repository at this point in the history
Ensures correct eye position and collision box.
Values taken from the player_api 'character.b3d' model.
  • Loading branch information
SmallJoker committed Dec 27, 2024
1 parent c224a73 commit 082e866
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions 3d_armor/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -296,16 +296,21 @@ player_api.register_model("3d_armor_character.b3d", {
},
animations = {
stand = {x=0, y=79},
lay = {x=162, y=166},
lay = {x=162, y=166, eye_height = 0.3, override_local = true,
collisionbox = {-0.6, 0.0, -0.6, 0.6, 0.3, 0.6}},
walk = {x=168, y=187},
mine = {x=189, y=198},
walk_mine = {x=200, y=219},
sit = {x=81, y=160},
sit = {x=81, y=160, eye_height = 0.8, override_local = true,
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.0, 0.3}},
-- compatibility w/ the emote mod
wave = {x = 192, y = 196, override_local = true},
point = {x = 196, y = 196, override_local = true},
freeze = {x = 205, y = 205, override_local = true},
},
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3},
-- stepheight: use default
eye_height = 1.47,
})

minetest.register_on_player_receive_fields(function(player, formname, fields)
Expand Down

0 comments on commit 082e866

Please sign in to comment.