View Single Post
Zeisen
Member
Join Date: Nov 2016
Location: Republic of Korea
Old 06-13-2017 , 04:49   Re: [CS:S/CS:GO] Bot Attack Control
Reply With Quote #56

Quote:
Originally Posted by GoD-Tony View Post
Mind PM'ing me your code? I'll take a look.
Code:
public Action OnShouldBotAttackPlayer(bot, player, &bool:result)
{	
	if (ignore_bot_list[player])
	{
		result = false;
		return Plugin_Changed;
	}
	if (bot_ignore_time[bot] >= GetGameTime())
	{
		result = false;
		return Plugin_Changed;
	}
	if (GetEntityMoveType(bot) & MOVETYPE_LADDER)
	{
		result = false;
		return Plugin_Changed;
	}
	return Plugin_Continue;
}
i'm sure on that code was fine before update your extension.

Last edited by Zeisen; 06-13-2017 at 04:49.
Zeisen is offline