Open Kortonki opened 4 years ago
Medic got stuck if patient started moving because of using hq heal action
needs switchomve "", seems to keep medic sometimes stuck
Now releases medic if ace function instablecondition true. Most problems have been medics getting stuck
syntax problems now fixed
Sometimes assigned medic loops back and forth with healing ready and going to heal
Seems to only happen with medics but not confirmed
Was related to not black triaged triggering assigning medic but other conditions to release it afterwards. Assignmedic condition improved
New logic to check if patient can be healed.
Flow being like this:
-First the nearest available for bandaging. Cardiac arrest needs a medic, as CPR is useless when only one medic can be assigned to a patient -When not bleeding, non-medics are not requested, thus next possible healer is medic -If unit can be healed, a triage check is made for medics healqueue, so player traige tagging will effect who gets treated first
-Fatal blooldloss is same as black triage
Possible needs a check whether unit has bandages
Medics still seem to get stuck if patient is healed via other means
There's still stucking problem with medics, seems to be when player heals themselves before the medic does.
Also, movement condition should probably be onyl used with unconscious
Consider putting a loop for medic at patient release checking for forcespeed until now patient is in the healqueue
Check for dragging, carrying and loading patient. Maybe make a _medical function out of it