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
+2 -2
View File
@@ -340,7 +340,7 @@ void rendermodel(const char *mdl, int anim, int tex, float rad, const vec &o, fl
if(stenciling && d && !raycubelos(camera1->o, o, d->radius))
{
vec target(o);
target.z += d->dyneyeheight();
target.z += d->eyeheight;
if(!raycubelos(camera1->o, target, d->radius)) return;
}
@@ -504,7 +504,7 @@ void renderclient(playerent *d, const char *mdlname, const char *vwepname, int t
int anim = ANIM_IDLE|ANIM_LOOP;
float speed = 0.0;
vec o(d->o);
o.z -= d->dyneyeheight();
o.z -= d->eyeheight;
int basetime = -((int)(size_t)d&0xFFF);
if(d->state==CS_DEAD)
{