-
Notifications
You must be signed in to change notification settings - Fork 739
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
Added surgicalKit treatment #1392
Conversation
See #1284 |
I will expand this to support :
And make it also do part of the work in case of cancel half way through. Unsure if I will be able to do this before the weekend. Thanks @BaerMitUmlaut |
Dynamic treatment time has been implemented as well as a callbackProgress function instead. Left out the local function this time, I think it would only cause unnecessary network traffic. |
@@ -16,7 +16,7 @@ | |||
|
|||
#include "script_component.hpp" | |||
|
|||
private ["_caller", "_target", "_selectionName", "_className", "_config", "_medicRequired", "_items", "_locations", "_return", "_callbackProgress", "_treatmentTime", "_callerAnim", "_patientAnim", "_iconDisplayed", "_return", "_usersOfItems", "_consumeItems", "_condition", "_displayText", "_wpn"]; | |||
private ["_caller", "_target", "_selectionName", "_className", "_config", "_medicRequired", "_items", "_locations", "_return", "_callbackProgress", "_treatmentTime", "_callerAnim", "_patientAnim", "_iconDisplayed", "_return", "_usersOfItems", "_consumeItems", "_condition", "_displayText", "_wpn", "_treatmentTime", "_treatmentTimeConfig"]; |
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.
_treatmentTime
is twice in the private array
This has been merged. Thank you @BaerMitUmlaut |
This makes the surgical kit now actually do something. Simply clears the array of wounds that can break open again.
Although I'm not sure if a dedicated local function really is needed I have added it to follow the scheme of the other treatment functions.