new player model
This commit is contained in:
@@ -2,20 +2,10 @@ dofile(minetest.get_modpath("player_api") .. "/api.lua")
|
||||
|
||||
|
||||
-- Default player appearance
|
||||
player_api.register_model("amogus_entity.obj", {
|
||||
player_api.register_model("susman.obj", {
|
||||
animation_speed = 30,
|
||||
textures = {"amogus_entity.png"},
|
||||
--animations = {
|
||||
-- -- Standard animations.
|
||||
-- stand = {x = 0, y = 79},
|
||||
-- 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, eye_height = 0.8, override_local = true,
|
||||
-- collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.0, 0.3}}
|
||||
--},
|
||||
textures = {"susman.png"},
|
||||
|
||||
animations = {},
|
||||
stepheight = 0.6,
|
||||
eye_height = 1.47,
|
||||
@@ -23,11 +13,11 @@ player_api.register_model("amogus_entity.obj", {
|
||||
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3},
|
||||
|
||||
visual = "mesh",
|
||||
visual_size = {x=8, y=8, z=8},
|
||||
visual_size = {x=10, y=10, z=10},
|
||||
|
||||
})
|
||||
|
||||
-- Update appearance when the player joins
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
player_api.set_model(player, "amogus_entity.obj")
|
||||
player_api.set_model(player, "susman.obj")
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user