mirror of
https://github.com/minetest/minetest_game.git
synced 2024-11-15 22:40:19 +01:00
VanessaE suggested a sit animation, so add one to the player. Not used by default, but many mods might find this handy
This commit is contained in:
parent
d39044a2a7
commit
f2a67871d2
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -22,14 +22,16 @@ function player_get_animations(model)
|
||||||
return {
|
return {
|
||||||
stand_START = 0,
|
stand_START = 0,
|
||||||
stand_END = 79,
|
stand_END = 79,
|
||||||
walk_START = 81,
|
sit_START = 81,
|
||||||
walk_END = 100,
|
sit_END = 160,
|
||||||
mine_START = 102,
|
walk_START = 162,
|
||||||
mine_END = 111,
|
walk_END = 181,
|
||||||
walk_mine_START = 113,
|
mine_START = 183,
|
||||||
walk_mine_END = 132,
|
mine_END = 192,
|
||||||
death_START = 134,
|
walk_mine_START = 194,
|
||||||
death_END = 153
|
walk_mine_END = 213,
|
||||||
|
death_START = 215,
|
||||||
|
death_END = 234
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -43,10 +45,11 @@ local player_model = {}
|
||||||
local player_anim = {}
|
local player_anim = {}
|
||||||
local player_sneak = {}
|
local player_sneak = {}
|
||||||
local ANIM_STAND = 1
|
local ANIM_STAND = 1
|
||||||
local ANIM_WALK = 2
|
local ANIM_SIT = 2
|
||||||
local ANIM_WALK_MINE = 3
|
local ANIM_WALK = 3
|
||||||
local ANIM_MINE = 4
|
local ANIM_WALK_MINE = 4
|
||||||
local ANIM_DEATH = 5
|
local ANIM_MINE = 5
|
||||||
|
local ANIM_DEATH = 6
|
||||||
|
|
||||||
-- Called when a player's appearance needs to be updated
|
-- Called when a player's appearance needs to be updated
|
||||||
function player_update_visuals(pl)
|
function player_update_visuals(pl)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user