Raised This Month: $32 Target: $400
 8% 

Solved count mobs l4d


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode