Raised This Month: $ Target: $400
 0% 

Finding ents by their texture


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
orglee
Member
Join Date: Dec 2005
Old 07-29-2009 , 19:08   Finding ents by their texture
Reply With Quote #1

I found code like one below to find water on every map:
PHP Code:
// Find water on map and save its ids
    
new Ent engfuncEngFunc_FindEntityByString, -1"classname""func_water");
    while((
Ent engfuncEngFunc_FindEntityByStringEnt"classname""func_water")))
    {
        if(!
gWaterExists) { gWaterExists true;    }
        
gWaterEntities[Ent] = true;
    } 
// And later check in addtofullpack and hide with set_es() 
But since many water blocks on maps has only liquid texture, this way is insufficient. So how to fetch them all?
orglee is offline
 


Thread Tools
Display Modes

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 18:21.


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