Actually game does checks for damage while reviving and forces SurvivorReviveFriend action to end but bot will still continue to revive because valve forgot(?) to add StopRevive call.
#pragma semicolon 1
public void OnActionCreated(BehaviorAction action, int actor, const char name)
if (strcmp(name, "SurvivorReviveFriend") == 0)
action.OnInjuredPost = SRFOnInjuredPost;
public Action SRFOnInjuredPost(BehaviorAction action, int actor, Address takaedamageinfo, ActionDesiredResult result)
if (result.type == DONE)