Remove test code

This commit is contained in:
Jackz 2023-10-18 08:50:23 -05:00
parent 54c35f46e4
commit ca88cd954b
No known key found for this signature in database
GPG key ID: E0BBD94CF657F603
2 changed files with 0 additions and 13 deletions

Binary file not shown.

View file

@ -53,22 +53,9 @@ public void OnActionCreated( BehaviorAction action, int actor, const char[] name
/* Hooking friend healing action (when bot wants to heal someone) */
if ( strcmp(name, "SurvivorHealFriend") == 0 ) {
action.OnStartPost = OnFriendAction;
} else if(strcmp(name, "InfectedAttack") == 0) {
// action.OnStartPost = OnInfectedAttack;
action.OnThreatChanged = OnThreatChanged;
}
}
Action OnInfectedAttack(BehaviorAction action, int actor, BehaviorAction priorAction, ActionResult result) {
return Plugin_Continue;
}
Action OnThreatChanged(BehaviorAction action, int actor, BehaviorAction priorAction, ActionResult result) {
// int target = action.Get(0x34) & 0xFFF;
SetEntProp(actor, Prop_Data, "m_target", actor);
result.type = DONE;
return Plugin_Continue;
}
public Action OnFriendAction( BehaviorAction action, int actor, BehaviorAction priorAction, ActionResult result ) {
// Do not allow idle bots to heal another player, unless they are black and white.