-
Notifications
You must be signed in to change notification settings - Fork 359
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
make midround antag spawn code better #919
Conversation
Test fails seem valid? |
Do the functions you use from RobustRandom require a new engine version or something? |
no theyre the same function just using GameRuleSystem RobustRandom instead of declaraing a private one (and building server didnt error so idk) |
probably an extension i removed import for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
# Description This PR adds a generic system which gives an entity the ability to fly. Optionally increasing their speed in exchange for a continuous stamina drain, which can, and **will** stamcrit them if left unchecked. --- # Technical Details? We normally dont have this section but I'd like to outline the changes since I messed with quite a few systems: - Introduces a `FlightComponent` which can be added to any entity in YML, needs to be tied to an action with an event of type `ToggleFlightEvent` This component holds properties for: - Toggling animations on and off, either at the entity level or the layer level. - Altering shader animation properties - Altering speed, stamina drain, sounds played, delay between sounds, etc etc. - Adds a `FlyingVisualizerSystem` that can take a given `AnimationKey` which points to a shader, and optionally can apply it to either the entire sprite, or a given layer. - Adds a check in `SharedGravitySystem` for making the entity weightless when it has the `FlightComponent` and is flying. - Adds a check in `SharedCuffableSystem` to disable cuffing when the target has the `FlightComponent` and is flying. - Introduces a new field in the `StaminaComponent` which serves as a dictionary for persistent drains, with the key being the source (UID) of where it came from. The drains can also indicate if they should apply the stamina slowdown or not (relevant for both this PR, and for an eventual sprinting PR) --- <details><summary><h1>Media</h1></summary> <p> [![Flight Demo](https://i.ytimg.com/vi/Wndv9hYaZ_s/maxresdefault.jpg)](https://youtu.be/Wndv9hYaZ_s "Flight Demo") </p> </details> --- # Changelog :cl: Mocho - add: Harpies are now able to fly on station for limited periods of time, moving faster at the cost of stamina. --------- Signed-off-by: gluesniffler <[email protected]> Co-authored-by: VMSolidus <[email protected]>
About the PR
title
Why / Balance
fixes #899
Technical details
Media
Breaking changes
MidRoundAntagRule is for spawning a single antag per rule not a hardcoded list of them
Changelog
🆑