PHP Code:
if ( pev( iEnt, pev_flags ) & FL_ONGROUND )
{
// code
}
You can also use engine:
PHP Code:
entity_get_int( iEnt, EV_INT_flags ) & FL_ONGROUND;
And take this in account:
PHP Code:
const FL_ONGROUND2 = (FL_CONVEYOR|FL_ONGROUND|FL_PARTIALGROUND|FL_INWATER|FL_FLOAT);
__________________