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
+3
View File
@@ -146,6 +146,9 @@ func _shoot_hitscan() -> void:
if result.collider.has_method("take_damage"):
result.collider.take_damage(damage, result.position, player)
else:
# Not a target, spawn a bullet hole
ImpactSpawner.spawn(get_tree(), "bullet", result.position, result.normal, 0.1)
# Add this hit to exclude so next loop goes through it
var exc = query.exclude