-
Notifications
You must be signed in to change notification settings - Fork 574
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
Pacified Zone marker #1815
Pacified Zone marker #1815
Conversation
Well, if you need something from me, write. |
It's a nice little feature! I've made a set of suggestions here: whatston3:PacifiedZone-component. I'd accept it with the changes in that link, though it still might have issues with two overlapping zones. On the head of your feature, at the moment, if anybody starts with the Pacified trait, it'll be removed when they enter and then exit the zone. I've created a new component to track when a zone is exited - might want to track which entity actually spawned it. Also, I don't believe the interval is actually adhered to in the system, and I'm not entirely fond of line 90, had problems with the magnet component using similar logic - if it's created halfway through the shift, it'll run that update every frame until it catches up. I've moved the intermediateListEntries to a local variable and did a bit of cleanup. Hope the changes seem reasonable, and thanks for the feature. 😃 |
You made a good point about removing the pacified feature... I just thought that on the frontier, this component is missing from everyone due to the specifics of the game (it's just illogical to play with pacifism where you need to handle weapons often). I think you can just create a pacifism component tied to the zone itself so that there is no deletion of the main one.
|
Content.Server/_NF/PacifiedZone/PacifiedlZoneGeneratorSystem.cs
Outdated
Show resolved
Hide resolved
Content.Server/_NF/PacifiedZone/PacifiedlZoneGeneratorSystem.cs
Outdated
Show resolved
Hide resolved
Content.Server/_NF/PacifiedZone/PacifiedlZoneGeneratorSystem.cs
Outdated
Show resolved
Hide resolved
I added comments to the code. If you agree with this, then I will quickly supplement the code with my suggestions and yours that you have suggested here whatston3:PacifiedZone-component. |
@whatston3 i'm don't know what to do and just waiting your responce for BeatusCrow x) |
…ation-14 into PacifiedZone-suggestions
Made a set of changes to my suggestions and pulled them in:
Quite happy with this, looks good in my testing. I'll approve this and give it some time for others to review, though I don't foresee any problems. Thank you again! |
Thank you for such good feedback :) |
About the PR
Port this PR Corvax-Frontier#380 made by @BeatusCrow
Why / Balance
Adds a "Pacified" component to all people in a certain radius, except people with prescribed jobs, like security. Can help deal with server raiders who try to massacre an outpost.
How to test
Requires additional review, has not been tested on a live server. Only tested on local.
Media
https://youtu.be/BdBIEzuLkVk