*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@615 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2006-11-12 19:19:29 +00:00
parent d9b5d86c2c
commit 2a0dc62900
15 changed files with 86 additions and 72 deletions
+5 -2
View File
@@ -115,7 +115,7 @@ bool collide(physent *d, bool spawn, float drop, float rise)
loopv(players) // collide with other players
{
playerent *o = players[i];
if(!o || o==d) continue;
if(!o || o==d || (o==player1 && d->type==ENT_CAMERA)) continue;
if(!plcollide(d, o, headspace, hi, lo)) return false;
};
@@ -261,6 +261,7 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
pl->o.y += f*d.y;
pl->o.z += f*d.z;
if(collide(pl, false, drop, rise)) continue;
if(pl->type==ENT_CAMERA) return;
// player stuck, try slide along y axis
pl->o.x -= f*d.x;
if(collide(pl, false, drop, rise))
@@ -304,7 +305,9 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
if(pl->roll>maxroll) pl->roll = (float)maxroll;
if(pl->roll<-maxroll) pl->roll = (float)-maxroll;
};
if(pl->type==ENT_CAMERA) return;
// play sounds on water transitions
if(!pl->inwater && water) { playsound(S_SPLASH2, &pl->o); pl->vel.z = 0; }