fix: a lot of networking bugs

This commit is contained in:
DottsGit
2026-06-06 19:26:22 -04:00
parent ff3e01a9e5
commit dbbfbef4a4
7 changed files with 194 additions and 109 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ func _on_hit(result: Dictionary) -> void:
final_damage = lerpf(damage, min_damage, falloff_factor)
if result.collider.has_method("take_damage"):
if not owner_player or owner_player.is_multiplayer_authority():
if owner_player and owner_player.multiplayer.is_server():
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