-
Notifications
You must be signed in to change notification settings - Fork 737
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
Medical - Fix broken AI ragdolls if AI unconsciousness is disabled #9917
Conversation
Co-authored-by: jonpas <jonpas33@gmail.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
|
||
// Prevent second ragdoll of uncon units when they're killed | ||
if ( | ||
IS_UNCONSCIOUS(_unit) && !isAwake _unit // uncon and not ragdolling |
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.
Funny that the isAwake _unit
ain't lazy-evaled but isPlayer _unit
is, like next to all (if not all) others in the mod.
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.
Tested with/without AI unconsciousness, no delay or other weird behaviour. Works as expected again.
When merged this pull request will: