This commit is contained in:
Charles 2001-08-13 22:09:17 +00:00
parent 9980ec3800
commit b492b81a73
2 changed files with 24 additions and 2 deletions

View file

@ -39,7 +39,7 @@ void CNpcJellyfishPlatform::postInit()
{
sBBox boundingBox = m_modelGfx->GetBBox();
boundingBox.YMin += 8;
setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ), ( boundingBox.YMax - boundingBox.YMin ) );
setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ) - 16, ( boundingBox.YMax - boundingBox.YMin ) );
setCollisionCentreOffset( ( boundingBox.XMax + boundingBox.XMin ) >> 1, ( boundingBox.YMax + boundingBox.YMin ) >> 1 );
calculateNonRotatedCollisionData();
@ -88,6 +88,17 @@ CRECT const &collisionArea=getCollisionArea();
{
m_contact = true;
DVECTOR playerDelta;
playerDelta = player->getPosDelta();
if ( playerDelta.vy == 0 )
{
// force dip to complete since player is not dropping onto jellyfish
m_dipCount = GameState::getOneSecondInFrames();
}
if ( m_contactTimeout <= 0 )
{
if ( m_soundId == NOT_PLAYING )