1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-27 17:28:41 +00:00

Add settings to enable/disable camera tilt and flash effects from damage

Added a setting to enable and disable camera tilt and flash.
Added settings to control the duration and strength of camera tilt.
This commit is contained in:
Gwyndolyn 2025-05-22 16:59:54 -07:00
parent 7ac5502fdf
commit ac57714ba0
4 changed files with 41 additions and 5 deletions

View file

@ -130,6 +130,11 @@ local function load()
{ heading = fgettext_ne("Movement") },
"arm_inertia",
"view_bobbing_amount",
{ heading = fgettext_ne("Damage") },
"damage_flash_enable",
"damage_tilt_enable",
"damage_tilt_strength",
"damage_tilt_duration",
},
})

View file

@ -556,6 +556,26 @@ arm_inertia (Arm inertia) bool true
# For example: 0 for no view bobbing; 1.0 for normal; 2.0 for double.
view_bobbing_amount (View bobbing factor) float 1.0 0.0 7.9
[**Damage]
# Damage flash, causes the screen to flash reduce
# when the player takes damage.
damage_flash_enable (Damage flash) bool true
# Damage tilt, causes the screen to shake
# when the player takes damage
damage_tilt_enable (Damage shake) bool true
# Damage tilt strength. Controls the force of
# camera shakes from taking damage
damage_tilt_strength (Damage shake strength) float 1.0 0.0 2.0
# Damage tilt duration modifier. Controls the duration of
# camera shakes from taking damage.
# 0.0 for no time, 1.0 for normal time, 2.0 for twice as long.
damage_tilt_duration (Damage shake duration) float 1.0 0.0 2.0
[**Camera]
# Field of view in degrees.