-
Notifications
You must be signed in to change notification settings - Fork 735
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
Changes unit vitals rw #6449
Changes unit vitals rw #6449
Conversation
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.
Code all looks good! 👍
I can't personally speak as to whether these conditions make sense medically though
case (_heartRate < 30): { // With a heart rate below 30 but bigger than 20 there is a chance to enter the cardiac arrest state | ||
private _lastCheck = _unit getVariable [QGVAR(lastCheckCriticalHeartRate), CBA_missionTime]; | ||
private _enterCardiacArrest = false; | ||
if (_lastCheck <= CBA_missionTime) then { |
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.
Minor readability thing, but I'd probably change this to _nextCheck
and swap the inequality comparison around to CBA_missionTime > _nextCheck
. Just makes the intention of the code more clear (to me at least).
* Some changes to UnitVitals * increase to 40% chance * Added bloodpressure L above limits cardiac arrest
When merged this pull request will: