This commit is contained in:
parent
973b3b6227
commit
5cf0dfa94e
1 changed files with 23 additions and 1 deletions
|
@ -27,6 +27,8 @@
|
||||||
#include "system\vid.h"
|
#include "system\vid.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "fx\fx.h"
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void CNpcRetractingPlatform::postInit()
|
void CNpcRetractingPlatform::postInit()
|
||||||
|
@ -76,6 +78,16 @@ void CNpcRetractingPlatform::processTimer( int _frames )
|
||||||
if ( m_timer > 0 )
|
if ( m_timer > 0 )
|
||||||
{
|
{
|
||||||
m_timer -= _frames;
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -102,6 +114,16 @@ void CNpcRetractingPlatform::processTimer( int _frames )
|
||||||
if ( m_timer > 0 )
|
if ( m_timer > 0 )
|
||||||
{
|
{
|
||||||
m_timer -= _frames;
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -147,7 +169,7 @@ void CNpcRetractingPlatform::render()
|
||||||
|
|
||||||
VECTOR scale;
|
VECTOR scale;
|
||||||
scale.vx = ONE;
|
scale.vx = ONE;
|
||||||
scale.vy = ONE;
|
scale.vy = ( ONE >> 1 ) + ( ( m_extension * ( ONE >> 1 ) ) / ONE );
|
||||||
scale.vz = m_extension;
|
scale.vz = m_extension;
|
||||||
|
|
||||||
m_modelGfx->Render(renderPos,&rotation,&scale);
|
m_modelGfx->Render(renderPos,&rotation,&scale);
|
||||||
|
|
Loading…
Add table
Reference in a new issue