diff --git a/config/sounds.cfg b/config/sounds.cfg index de98bd3e..3003a7b2 100755 --- a/config/sounds.cfg +++ b/config/sounds.cfg @@ -45,6 +45,7 @@ registersound "misc/vote/vote_call" // S_CALLVOTE registersound "misc/vote/vote_pass" // S_VOTEPASS registersound "misc/vote/vote_fail" // S_VOTEFAIL registersound "player/footsteps" // S_FOOTSTEPS +registersound "player/land" 40 // S_SOFTLAND registersound "misc/test" alias fade [ // 0=in, 1=out diff --git a/source/src/physics.cpp b/source/src/physics.cpp index 196951d4..dd930d74 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -330,8 +330,11 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime) } } - // long jump - if(timeinair > 600 && !pl->timeinair) if(local) playsoundc(S_LAND); else playsound(S_LAND, pl); + if(timeinair > 200 && !pl->timeinair) + { + int sound = timeinair > 600 ? S_LAND : S_SOFTLAND; + if(local) playsoundc(sound); else playsound(sound, pl); + } } const float gravity = 20.0f;