🐛 use 8-bit integer for synced health, damage scaling and display updates

This commit is contained in:
anyreso 2024-05-14 10:20:45 -04:00
parent f1df203a76
commit 547c97bfba
10 changed files with 107 additions and 101 deletions

View file

@ -38,7 +38,7 @@ func _physics_process(delta : float) -> void:
if collider is Player:
if is_multiplayer_authority():
assert(shooter)
collider.health_component.damage.rpc(.1, shooter.player_id, shooter.team_id)
collider.health_component.damage.rpc(25, shooter.player_id, shooter.team_id)
queue_free()
## This method is a parameterized constructor for the [ChainGunProjectile] scene of the [ChainGun]