randomizing names and clantags of autismbots as well
This commit is contained in:
parent
7753c52b68
commit
ebeee260e4
@ -1,6 +1,7 @@
|
|||||||
#include <sourcemod>
|
#include <sourcemod>
|
||||||
#include <sdktools>
|
#include <sdktools>
|
||||||
#include <zombiereloaded>
|
#include <zombiereloaded>
|
||||||
|
#include <BotTargeting>
|
||||||
#include <cstrike>
|
#include <cstrike>
|
||||||
|
|
||||||
#pragma semicolon 1
|
#pragma semicolon 1
|
||||||
@ -270,7 +271,7 @@ public Action RandomizeNames(Handle timer)
|
|||||||
ArrayList hClanNames = g_hClanNames.Clone();
|
ArrayList hClanNames = g_hClanNames.Clone();
|
||||||
for(int i = 1; i <= MaxClients; i++)
|
for(int i = 1; i <= MaxClients; i++)
|
||||||
{
|
{
|
||||||
if(g_bFakePopulation[i])
|
if(g_bFakePopulation[i] || IsClientAutismBot(i))
|
||||||
{
|
{
|
||||||
int iRand = GetRandomInt(0, hNames.Length - 1);
|
int iRand = GetRandomInt(0, hNames.Length - 1);
|
||||||
char sName[MAX_NAME_LENGTH];
|
char sName[MAX_NAME_LENGTH];
|
||||||
@ -289,7 +290,6 @@ public Action RandomizeNames(Handle timer)
|
|||||||
{
|
{
|
||||||
CS_SetClientClanTag(i, "");
|
CS_SetClientClanTag(i, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delete hNames;
|
delete hNames;
|
||||||
|
Loading…
Reference in New Issue
Block a user