From 082e866274632c96c713817683e07cdafff81c93 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Fri, 27 Dec 2024 21:43:08 +0100 Subject: [PATCH] Update player_api model registration Ensures correct eye position and collision box. Values taken from the player_api 'character.b3d' model. --- 3d_armor/init.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/3d_armor/init.lua b/3d_armor/init.lua index 6718b97..2bd70a6 100644 --- a/3d_armor/init.lua +++ b/3d_armor/init.lua @@ -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)