-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add basic fire extinguisher syncing #679
Conversation
Keep in mind thow somebody is working on the Cyclops Syncing and he did sync the fire it may cause issues the way you may make it.... |
@NitroxPower this syncs the fire extinguisher used by the players. If the Cyclops fire object spawn points are synced, then these features will work fine together given the cyclops is still or moving slow. |
Actually just noticed his douse syncing implementation. Pretty similar it seems, but won't work any fires except for Cyclops unless the server spawns them or syncs map fire GUIDs with clients. |
i am not a developer and i dont know how to script i just wanted to inform you just in case it may not work great work thow 👍 |
I recently merged in the cyclops fire code. Should we use the Fires gamelogic class that he introduced? Any other refactoring we need to do? |
@Sunrunner37 Awesome! @RabidCrab 's fire dousing syncing is a great implementation and can mostly replace this PR. However, the only issue I can see is that the Aurora fires don't have synced GUIDs, so they won't be recognized on clients receiving the douse packet.
GUIDs would be a lot cleaner than the positional method, but it does work very well considering the map spawns them in the same place every single time. Somehow syncing map-spawned entities would be totally ideal. I'm also working on laser cutter sync so that would benefit greatly from this. Maybe I'm missing some system that you already have in place for this, but if not, I would love to brainstorm on that. |
Are the Aurora fires spawned by the client of the server? (I'm guessing they are client side). Is there a way for us to server-side spawn them so the GUIDs will be synced? Maybe they are virtual entities. |
@Sunrunner37 yes, spawned by client. Is the Aurora and all of it's child entities part of the batch files that the server already parses? If so, why would the fires be excluded? Should we close this PR as the code is unnecessary if we sync GUIDs? I would still like to continue discussion on syncing the rest of these unsynced map ents. |
Basic fire douse/extinguish syncing to nearby players w/ packet rate limiting.
This surely can be improved over time:
Updating this to a GUID-based fire resolution would be trivial if that sort of system were in place.