From b9ee670664c002359953a6ba317cd9f6d3d8d3a5 Mon Sep 17 00:00:00 2001 From: driAn Date: Sun, 11 Nov 2007 14:42:07 +0000 Subject: [PATCH] crouching, jum sounds git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1420 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/physics.cpp | 2 +- source/src/sound.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/src/physics.cpp b/source/src/physics.cpp index 16765381..41b83087 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -332,7 +332,7 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime) if(timeinair > 200 && !pl->timeinair) { - int sound = timeinair > 600 ? S_LAND : S_SOFTLAND; + int sound = timeinair > 800 ? S_HARDLAND : S_SOFTLAND; if(local) playsoundc(sound); else playsound(sound, pl); } } diff --git a/source/src/sound.h b/source/src/sound.h index d0065d3e..065292c6 100644 --- a/source/src/sound.h +++ b/source/src/sound.h @@ -1,7 +1,8 @@ // hardcoded sounds, defined in sounds.cfg enum { - S_JUMP = 0, S_LAND, + S_JUMP = 0, + S_SOFTLAND, S_HARDLAND, S_KNIFE, S_PISTOL, S_RPISTOL, S_SHOTGUN, S_RSHOTGUN, @@ -21,7 +22,6 @@ enum S_RAKIMBO, S_GUNCHANGE, S_GIB, S_HEADSHOT, S_CALLVOTE, S_VOTEPASS, S_VOTEFAIL, S_FOOTSTEPS, - S_SOFTLAND, S_NULL };