Does the powerup crate rollback? #246
Replies: 1 comment
-
nvm it does as shown in the code below if is_active:
scale = scale.lerp(Vector3.ONE, fade_speed * delta)
for body in get_overlapping_bodies():
if body.is_in_group("Brawlers") and not _has_powerup(body):
_take() # Predict
if is_multiplayer_authority():
_spawn_effect.rpc(randi_range(0, effects.size() - 1), body.get_path())
_take.rpc() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think I have found an edge-case, but I cannot test it out as it needs 2 active inputs at the same time (and I can focus only 1 window) and I would have to write a TAS to test this.
What if you take the powerup locally, but an enemy bomb hits you by another player, and you don't take it in the server? This is a classic scenario in shooters.
Beta Was this translation helpful? Give feedback.
All reactions