mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 22:33:16 -04:00
Update player.lua
This commit is contained in:
parent
54f4cecbea
commit
a69f6ad7ad
1 changed files with 7 additions and 1 deletions
|
@ -50,6 +50,12 @@ model_def = {
|
||||||
|
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
if minetest.setting_getbool(astronaut) = false then
|
||||||
|
astSkin = "charater.png"
|
||||||
|
else
|
||||||
|
astSkin = "astronaut.png"
|
||||||
|
end
|
||||||
|
|
||||||
-- Player animation blending
|
-- Player animation blending
|
||||||
-- Note: This is currently broken due to a bug in Irrlicht, leave at 0
|
-- Note: This is currently broken due to a bug in Irrlicht, leave at 0
|
||||||
local animation_blend = 0
|
local animation_blend = 0
|
||||||
|
@ -66,7 +72,7 @@ end
|
||||||
-- Default player appearance
|
-- Default player appearance
|
||||||
default.player_register_model("character.x", {
|
default.player_register_model("character.x", {
|
||||||
animation_speed = 30,
|
animation_speed = 30,
|
||||||
textures = {"character.png", },
|
textures = {astSkin, },
|
||||||
animations = {
|
animations = {
|
||||||
-- Standard animations.
|
-- Standard animations.
|
||||||
stand = { x= 0, y= 79, },
|
stand = { x= 0, y= 79, },
|
||||||
|
|
Loading…
Add table
Reference in a new issue