feat: implement weapon framework, hitscan logic, and player movement controller with state management

This commit is contained in:
DottsGit
2026-06-05 00:25:41 -04:00
parent ea96b41287
commit da16a3a757
11 changed files with 104 additions and 7 deletions
+2 -2
View File
@@ -146,9 +146,9 @@ func apply_impulse(force: Vector3) -> void:
# Tiny upward bump helps move_and_slide detach from the floor
global_position.y += 0.1
func take_damage(amount: float, hit_pos: Vector3, source: Node = null) -> void:
func take_damage(amount: float, _hit_pos: Vector3, _source: Node3D = null) -> void:
# Show damage number for self-damage
spawn_damage_number(amount, hit_pos)
spawn_damage_number(amount, _hit_pos)
func _ensure_machine() -> MovementStateMachine:
if is_instance_valid(_machine):