Raised This Month: $ Target: $400
 0% 

I am idiot or Ham_Spawn fails


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-31-2009 , 07:30   Re: I am idiot or Ham_Spawn fails
Reply With Quote #2

Same here :

Code:
L 05/31/2009 - 13:30:07: -------- Mapchange to cs_assault --------
-------- SHP Tools Loaded --------
L 05/31/2009 - 13:30:07: [comp_zspawn.amxx] fwdHamSpawn_Water() :: 156 :: func_door
L 05/31/2009 - 13:30:07: [comp_zspawn.amxx] fwdHamSpawn_Door() :: 156 :: func_door
L 05/31/2009 - 13:30:07: [comp_zspawn.amxx] fwdHamSpawn_Water() :: 157 :: func_door
L 05/31/2009 - 13:30:07: [comp_zspawn.amxx] fwdHamSpawn_Door() :: 157 :: func

You want to detect water ?
PHP Code:
Find_Water_Ents()
{

    new 
iEnt

    
new const func_water[] = "func_water"
    
new const func_illusionary[] = "func_illusionary"
    
new const func_conveyor[] = "func_conveyor"

    
iEnt FM_NULLENT
    
while( (iEnt find_ent_by_class(iEntfunc_water)) )
    {
        
// iEnt is a water ent
    
}

    
iEnt FM_NULLENT // should already be 0
    
while( (iEnt find_ent_by_class(iEntfunc_illusionary)) )
    {
        if( 
entity_get_int(iEntEV_INT_skin) == CONTENTS_WATER )
        {
            
// iEnt is a water ent
        
}
    }

    
iEnt FM_NULLENT // should already be 0
    
while( (iEnt find_ent_by_class(iEntfunc_conveyor)) )
    {
        if( 
entity_get_int(iEntEV_INT_spawnflags) == )
        {
            
// iEnt SHOULD BE a water ent (falling water)
        
}
    }

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 05-31-2009 at 07:38.
ConnorMcLeod 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 13:49.


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