physent-volume resize with collision detection for better crouching

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2838 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-10-05 12:50:44 +00:00
parent 7e5728a5ab
commit 1a8ad9e4d1
11 changed files with 78 additions and 63 deletions
+1 -1
View File
@@ -1530,7 +1530,7 @@ void updateplayerfootsteps(playerent *p)
// play footsteps
int grounddist = hdr.waterlevel-S((int)p->o.x, (int)p->o.y)->floor;
bool water = p->o.z-p->dyneyeheight()+0.25f<hdr.waterlevel;
bool water = p->o.z-p->eyeheight+0.25f<hdr.waterlevel;
if(water && grounddist>p->eyeheight) return; // don't play step sound when jumping into water
int stepsound;