This commit is contained in:
Charles 2001-07-11 15:36:46 +00:00
parent 973b3b6227
commit 5cf0dfa94e

View file

@ -27,6 +27,8 @@
#include "system\vid.h"
#endif
#include "fx\fx.h"
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcRetractingPlatform::postInit()
@ -76,6 +78,16 @@ void CNpcRetractingPlatform::processTimer( int _frames )
if ( m_timer > 0 )
{
m_timer -= _frames;
if ( m_timer <= 0 )
{
for ( int i = 0 ; i < 4 ; i++ )
{
DVECTOR bubblePos = Pos;
bubblePos.vx += 20 - ( getRnd() % 41 );
CFX::Create( CFX::FX_TYPE_BUBBLE_WATER, bubblePos );
}
}
}
else
{
@ -102,6 +114,16 @@ void CNpcRetractingPlatform::processTimer( int _frames )
if ( m_timer > 0 )
{
m_timer -= _frames;
if ( m_timer <= 0 )
{
for ( int i = 0 ; i < 4 ; i++ )
{
DVECTOR bubblePos = Pos;
bubblePos.vx += 20 - ( getRnd() % 41 );
CFX::Create( CFX::FX_TYPE_BUBBLE_WATER, bubblePos );
}
}
}
else
{
@ -147,7 +169,7 @@ void CNpcRetractingPlatform::render()
VECTOR scale;
scale.vx = ONE;
scale.vy = ONE;
scale.vy = ( ONE >> 1 ) + ( ( m_extension * ( ONE >> 1 ) ) / ONE );
scale.vz = m_extension;
m_modelGfx->Render(renderPos,&rotation,&scale);