can turn "gamepad_vibration" on and off in debug mode

This commit is contained in:
2026-09-03 18:04:58 +03:00
parent 50073b2574
commit 931ddf0eeb
5 changed files with 108 additions and 1 deletions
+2 -1
View File
@@ -1184,7 +1184,8 @@ func take_sword_hit(cause: String = "", hit_pos: Vector3 = Vector3.ZERO) -> void
hit_taken.emit(cause)
camera_pivot.call(&"trigger_hit", 0.7)
# Vibrate controller 0 with half weak strength, full strong strength, for 0.5 seconds
Input.start_joy_vibration(0, 0.5, 1, 0.2)
if DP.b("gamepad_vibration"):
Input.start_joy_vibration(0, 0.5, 1, 0.2)
# A spear gores a spot — blood spurts from the entry wound (where it struck the
# bull). Melee gores pass no position and skip the spurt; gore can be turned off.