diff --git a/source/src/physics.cpp b/source/src/physics.cpp index cea6972c..196951d4 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -268,8 +268,9 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime) } else // fake physics for player ents to create _the_ cube movement (tm) { + const int timeinair = pl->timeinair; int move = pl->onladder && !pl->onfloor && pl->move == -1 ? 0 : pl->move; // movement on ladder - + d.x = (float)(move*cosf(RAD*(pl->yaw-90))); d.y = (float)(move*sinf(RAD*(pl->yaw-90))); d.z = 0.0f; @@ -328,6 +329,9 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime) pl->timeinair += curtime; } } + + // long jump + if(timeinair > 600 && !pl->timeinair) if(local) playsoundc(S_LAND); else playsound(S_LAND, pl); } const float gravity = 20.0f; diff --git a/source/src/sound.cpp b/source/src/sound.cpp index 842b62f2..d3b862b0 100644 --- a/source/src/sound.cpp +++ b/source/src/sound.cpp @@ -262,7 +262,6 @@ void checkmapsounds() } VAR(footsteps, 0, 1, 1); -VAR(footstepradius, 0, 16, 25); VAR(footstepalign, 5, 15, 4000); int findsoundloc(int sound, physent *p) @@ -278,7 +277,7 @@ void checkplayerloopsounds() playerent *p = players[i]; if(!p) continue; - if(footsteps && camera1->o.dist(p->o) < footstepradius) + if(footsteps && camera1->o.dist(p->o) < 16) { int idx = findsoundloc(S_FOOTSTEPS, p); if(idx == -1 || !soundlocs[idx].inuse) diff --git a/source/vcpp/cube.suo b/source/vcpp/cube.suo index 58a6b99e..e764b125 100644 Binary files a/source/vcpp/cube.suo and b/source/vcpp/cube.suo differ