make rotate on sneak a setting

This commit is contained in:
Oversword 2022-02-14 21:47:08 +00:00
parent 8d27a557bb
commit 0c05dd7b83
2 changed files with 4 additions and 1 deletions

View File

@ -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()

View File

@ -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