abilities first draft

This commit is contained in:
2026-06-10 19:39:35 +03:00
parent dda9862589
commit c1852e8736
5 changed files with 256 additions and 50 deletions
+10
View File
@@ -322,6 +322,16 @@ func _tick_ragdoll(_delta: float) -> void:
move_and_slide()
func apply_ability_hit(hit_dir: Vector3, strength: float) -> void:
if _state == State.RAGDOLL or _state == State.ROLL:
return
if _bull == null:
var players := get_tree().get_nodes_in_group(&"player")
if not players.is_empty():
_bull = players[0] as CharacterBody3D
_enter_ragdoll(hit_dir, strength)
func _on_body_entered(body: Node3D) -> void:
if _state == State.RAGDOLL or _state == State.ROLL:
return