Skip to content

How are rollbacks handled for firing weapons and projectile spawning in Forest Brawl? #226

Closed Answered by albertok
robinreversi asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @robinreversi

Great question, it made me curious and start digging. This is my take on it and so I could be completely wrong -

@elementbound explains most of it really well in the docs.

The core of it is here:

When a client fires a weapon if its own checks pass it creates the projectile but also asks the server to confirm.

From here the server will do its own checks and confirm if it was ok to shoot or deny it at which point the client destroys its version and if was allowed the servers version of the projectile spawns and takes over.

Now... Neither weapon nor projectile participate in rollbacks as they don't implement _rollback_tick.
The docs explain that it's likely not ideal to inv…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@robinreversi
Comment options

@robinreversi
Comment options

@albertok
Comment options

@elementbound
Comment options

Answer selected by robinreversi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants