View Single Post
Author Message
Dr. Api
BANNED
Join Date: Mar 2015
Location: France
Old 04-14-2015 , 12:59   There is a way to find prop_static
Reply With Quote #1

Trying to know how to find entities "prop_static" on map.
I could detect prop_dynamic, physic but not static.

I know prop_static it's like "world geometry" due to the navigation meshes for bots.

PHP Code:
FindMapCars()
{
    new 
maxEnts GetMaxEntities();
    
decl String:classname[128], String:model[256];
    
    for (new 
MaxClientsmaxEntsi++)
    {
        if(
IsValidEdict(i))
        {
            
GetEdictClassname(iclassnamesizeof(classname));
            
            
//LogMessage("%sEntities found: %s", TAG_CHAT, classname);
                
            
if(StrContains(classname"prop_"false) != -1)
            {
                
GetEntPropString(iProp_Data"m_ModelName"modelsizeof(model));
                
LogMessage("%sProp found: %s"TAG_CHATmodel);
                
                if(
StrContains(model"vehicle"false) != -|| StrContains(model"car"false) != -1)
                {
                    
S_map_cars[i] = model;
                    
LogMessage("%s[%i]-Cars found :%s"TAG_CHATimodel);
                }
            }
        }
    }
    
LogMessage("%s Launch detect prop"TAG_CHAT);

Dr. Api is offline