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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user