Code:
if(contain(sound, "player/pl_pain2.wav")!=-1)
{
return FMRES_SUPERCEDE;
}
if(contain(sound, "player/pl_pain3.wav")!=-1)
{
return FMRES_SUPERCEDE;
}
if(contain(sound, "player/pl_pain4.wav")!=-1)
{
return FMRES_SUPERCEDE;
}
don't use contain, equal should work fine.
also you could do a check in the begining
Code:
if( !equal(sound, "player/", 7) )
return FMRES_IGNORE;
PM me when you have done this for Approval.