Thread: [Solved] count mobs l4d
View Single Post
Author Message
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation, Omsk
Old 05-20-2019 , 11:59   count mobs l4d
Reply With Quote #1

Hi, I'm trying to count the number of live mobs. But I do not like it. Since Mobs does not have m_zombieClass.

PHP Code:
int IsPanicMobsAlive()
{
    
int count 0;
    for (
int i 1<= MaxClientsi++)
        if (
IsClientConnected(i) && IsClientInGame(i) && IsFakeClient(i) && GetEntProp(iProp_Send"m_zombieClass") == 0count++;
    return 
count;

Does anyone have an option how to count live mobs

Last edited by Alexmy; 05-22-2019 at 17:43.
Alexmy is offline