mirror of
https://github.com/minetest-mods/playeranim.git
synced 2025-01-08 17:00:26 +01:00
make rotate on sneak a setting
This commit is contained in:
parent
8d27a557bb
commit
0c05dd7b83
2
init.lua
2
init.lua
@ -9,7 +9,7 @@ local ANIMATION_SPEED = tonumber(minetest.settings:get("playeranim.animation_spe
|
||||
local ANIMATION_SPEED_SNEAK = tonumber(minetest.settings:get("playeranim.animation_speed_sneak")) or 0.8
|
||||
local BODY_ROTATION_DELAY = math.max(math.floor(tonumber(minetest.settings:get("playeranim.body_rotation_delay")) or 7), 1)
|
||||
local BODY_X_ROTATION_SNEAK = tonumber(minetest.settings:get("playeranim.body_x_rotation_sneak")) or 6.0
|
||||
local ROTATE_ON_SNEAK = true
|
||||
local ROTATE_ON_SNEAK = minetest.settings:get_bool("playeranim.rotation_sneak", true)
|
||||
|
||||
local BONE_POSITION, BONE_ROTATION = (function()
|
||||
local modname = minetest.get_current_modname()
|
||||
|
@ -9,3 +9,6 @@ playeranim.animation_speed (The speed of an animation) float 2.4
|
||||
|
||||
# The number of stepping per seconds in sneaking.
|
||||
playeranim.animation_speed_sneak (The speed of an animation in sneaking) float 0.8
|
||||
|
||||
# Should the body be rotated on sneak
|
||||
playeranim.rotation_sneak (Rotate the body on sneak) bool true
|
||||
|
Loading…
Reference in New Issue
Block a user