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(iEnt, func_water)) )
{
// iEnt is a water ent
}
iEnt = FM_NULLENT // should already be 0
while( (iEnt = find_ent_by_class(iEnt, func_illusionary)) )
{
if( entity_get_int(iEnt, EV_INT_skin) == CONTENTS_WATER )
{
// iEnt is a water ent
}
}
iEnt = FM_NULLENT // should already be 0
while( (iEnt = find_ent_by_class(iEnt, func_conveyor)) )
{
if( entity_get_int(iEnt, EV_INT_spawnflags) == 3 )
{
// iEnt SHOULD BE a water ent (falling water)
}
}
}
__________________