Basically what ive done is that i have created new footstep sound system.
There is also now new point entity in valve hammer what allow set for texture footstep sound type.
by this is push all texturenames inside cellarray and check them if its needed
( when step sound will be playd )
As i can see

valve did this system that way that they will check only first letter of texture name, now im worried.
Is it bad to check like 50 or more textures in player walking speed?
code:
PHP Code:
// texname hold texture name where player standing in
// im hold textures for checking...
static im[32], ai, ae, ab, ac, ar; ab = 0; ar = 0
ac = pn_get_size(texname) // ilen
pn_print( 1, "size %d", ac )
for( ai = 0; ai < Arraysize(i_m_name); ai++ )
{
ArrayGetString( i_m_name, ai, im, 31 )
for( ae = 0; ae < 31; ae++ )
{
if( ab == ac ) { ar = 1; break; }
if( !texname[ae] ) break
if( texname[ae] == im[ab] ) ab++
else break
}
if(ar) { ps_m[id] = ArrayGetCell( i_m_type, a); break; }
}
}
Edit:
Oh yeah, and player can run very fast.
My soundsystem will play sound exactly when player foot touch the ground so if player maxspeed is like 600 then sound will be playing like mayby 5 times in one sec.
This system will be so good for mapper i just really need some feedback.
Thanks!