first changes so far to handling how autism bots connect and their resource ussage
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include <cstrike>
|
||||
#include <dhooks>
|
||||
#include <socket>
|
||||
#include <UNLOZE.secret>
|
||||
|
||||
int target_friend_afk_counter[MAXPLAYERS][MAXPLAYERS + 1];
|
||||
int target_friend[MAXPLAYERS + 1];
|
||||
@@ -336,7 +337,7 @@ public void cmd_talk_help(int port, int client, char[] info)
|
||||
char msg[generic_length * 5];
|
||||
chat_cooldown = true;
|
||||
char magic_code[16];
|
||||
Format(magic_code, sizeof(magic_code), "add_magic_value_here");
|
||||
Format(magic_code, sizeof(magic_code), autism_bot_code); //included with unloze.secrets simply.
|
||||
Format(msg, sizeof(msg), "clientmessage:%N %s %s", client, magic_code, info);
|
||||
send_socket_msg(msg, strlen(msg), port);
|
||||
CreateTimer(2.0, bot_chat_cooldown);
|
||||
@@ -513,7 +514,6 @@ public Action bot_check_connect(Handle timer, any data)
|
||||
|
||||
if (i_port == server_ports[0])
|
||||
{
|
||||
//revert again to either 10 or 55
|
||||
int max_allowed_players = 55;
|
||||
char current_map[128];
|
||||
GetCurrentMap(current_map, sizeof(current_map));
|
||||
@@ -525,7 +525,7 @@ public Action bot_check_connect(Handle timer, any data)
|
||||
send_socket_msg(msg, strlen(msg), ports[2]);
|
||||
send_socket_msg(msg, strlen(msg), ports[3]);
|
||||
}
|
||||
else if (client_count < 50)
|
||||
else if (client_count < max_allowed_players)
|
||||
{
|
||||
Format(msg, sizeof(msg), "connect to ze");
|
||||
if (!bot1_connected)
|
||||
|
||||
Reference in New Issue
Block a user