Quote:
Originally Posted by MPNumB
Not really, cuz I dunno any possible way to detect is player on metal/snow/grass/sand...
|
EngFunc_TraceTexture + DLLFunc_PM_FindTextureType .
Something like :
Code:
pev ( id, pev_origin, vf_Origin );
vf_End[ 0 ] = vf_Origin[ 0 ];
vf_End[ 1 ] = vf_Origin[ 1 ];
vf_End[ 2 ] = -9999.0;
engfunc ( EngFunc_TraceTexture, pev ( id, pev_groundentity ), vf_Origin, vf_End, s_Texture, charsmax ( s_Texture ) );
s_TextureType[ 0 ] = dllfunc ( DLLFunc_PM_FindTextureType, s_Texture );
s_TextureType =
Quote:
// 'M' metal
// 'V' ventillation
// 'D' dirt
// 'S' slosh liquid
// 'T' tile
// 'G' grate (Concrete is the default)
// 'W' wood
// 'P' computer
// 'Y' glass
// 'N' snow
|
You can try also theses offsets ( totaly unconfirmed! ) : 340 ( Texture name ) , 341 ( Texture type )