diff --git a/plugins/l4d2_ai_tweaks.smx b/plugins/l4d2_ai_tweaks.smx index e8c85cd..0f561d8 100644 Binary files a/plugins/l4d2_ai_tweaks.smx and b/plugins/l4d2_ai_tweaks.smx differ diff --git a/scripting/l4d2_ai_tweaks.sp b/scripting/l4d2_ai_tweaks.sp index a41b898..4ad885d 100644 --- a/scripting/l4d2_ai_tweaks.sp +++ b/scripting/l4d2_ai_tweaks.sp @@ -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.