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
+4 -4
View File
@@ -858,7 +858,7 @@ void CBotManager::PickNextTrigger()
#endif
if (OUTBORD(e.x, e.y)) continue;
vec o(e.x, e.y, S(e.x, e.y)->floor+player1->dyneyeheight());
vec o(e.x, e.y, S(e.x, e.y)->floor+player1->eyeheight);
node_s *pWptNearEnt = NULL;
@@ -1186,7 +1186,7 @@ void drawbeamtocarrots()
loopv(ents)
{
entity &e = ents[i];
vec o = { e.x, e.y, S(e.x, e.y)->floor+player1->dyneyeheight() };
vec o = { e.x, e.y, S(e.x, e.y)->floor+player1->eyeheight };
if ((e.type != CARROT) || !e.spawned) continue;
particle_trail(1, 500, player1->o, o);
}
@@ -1199,7 +1199,7 @@ void drawbeamtoteleporters()
loopv(ents)
{
entity &e = ents[i];
vec o = { e.x, e.y, S(e.x, e.y)->floor+player1->dyneyeheight() };
vec o = { e.x, e.y, S(e.x, e.y)->floor+player1->eyeheight };
if (e.type != TELEPORT) continue;
particle_trail(1, 500, player1->o, o);
}
@@ -1253,7 +1253,7 @@ void testvisible(int iDir)
}
vec from = player1->o;
from.z -= (player1->dyneyeheight() - 1.25f);
from.z -= (player1->eyeheight - 1.25f);
end = from;
makevec(&angles, player1->pitch, player1->yaw, player1->roll);
angles.x=0;