feat: implement weapon framework, hitscan logic, and player movement controller with state management
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user