Note: With this current sound it is client-side. If you don't wish to have it client-side then change the sound to one everyone has. If you don't know how to change the sound, then you shouldn't be thinking about this anyway.
//This goes in nsound.cs This is for the custom sound
SoundData SoundScream
{
wavfilename = "fallscream.wav";
profile = Profile3dMedium;
};
// This goes in gameevents.cs at the bottom of the recrusiveworld function before the schedule that recalls the function
%slist = GetEveryoneIdList();
for(%p = 0; GetWord(s%list, %p) != -1; %p++){
%pid = GetWord(%slist, %p);
%pvel = Item::getVelocity(%pid);
GameBase::getLOSinfo(%pid, 50000);
if(getWord(%pvel, 1) < -29)
playsound(SoundScream, $los::position);
else if(getWord(%pvel, 1) > 29)
playsound(SoundScream, $los::position);
else if(getWord(%pvel, 2) < -29)
playsound(SoundScream, $los::position);
else if(getword(%pvel, 2) > 29)
playsound(SoundScream, $los::position);
else if(getWord(%pvel, 3) < -29)
playsound(SoundScream, $los::position);
}
This will check your velocity every 5 seconds. I added it to the recrusive function so you wouldn't have to write another laggy loop. So.. In other words.. When you fall, how long you fall, and how fast you fall determines if the sound plays or not. If you fall long enough, it will play the sound over.. More intense I guess.
Oh.. and for the custom sound.. Hang on let me upload it to my web site..
here we go..
http://urn.ath.cx/fallscream.rar