no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1369 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-10-16 20:54:44 +00:00
parent dc3f9bf347
commit c1c78fa5f1
3 changed files with 6 additions and 3 deletions
+5 -1
View File
@@ -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;
+1 -2
View File
@@ -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)
Binary file not shown.