feat: implement procedural humanoid animations, modular weapon system, and dummy entity base classes

This commit is contained in:
DottsGit
2026-06-06 19:10:29 -04:00
parent fcdd75afc0
commit ff3e01a9e5
12 changed files with 400 additions and 52 deletions
+2 -1
View File
@@ -58,7 +58,8 @@ func _on_hit(result: Dictionary) -> void:
final_damage = lerpf(damage, min_damage, falloff_factor)
if result.collider.has_method("take_damage"):
result.collider.take_damage(final_damage, result.position, owner_player)
if not owner_player or owner_player.is_multiplayer_authority():
result.collider.take_damage(final_damage, result.position, owner_player)
elif result.collider is StaticBody3D or result.collider is CSGShape3D:
var size = 0.4 if impact_type == "plasma" else 0.15
ImpactSpawner.spawn(get_tree(), impact_type, result.position, result.normal, size)