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