Thread: [Solved] count mobs l4d
View Single Post
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 05-20-2019 , 12:57   Re: count mobs l4d
Reply With Quote #3

Quote:
Originally Posted by farawayf View Post
i dont know why you trying to check m_zombieClass on bots, because you wrote that you want to count all.
would not it be easier to do like this ?

PHP Code:

int IsPanicMobsAlive
() 

    
int count 0
    for (
int i 1<= MaxClientsi++) 
        if (
IsClientConnected(i) && IsClientInGame(i) && IsPlayerAlive(i) && IsFakeClient(i) && GetClientTeam(i) == 3count++; 
    return 
count

If use GetClientTeam(i) == 3. Mobs will be considered this way.?
Alexmy is offline