40 lines
767 B
C++
40 lines
767 B
C++
|
/*=========================================================================
|
||
|
|
||
|
todripemit.cpp
|
||
|
|
||
|
Author: CRB
|
||
|
Created:
|
||
|
Project: Spongebob
|
||
|
Purpose:
|
||
|
|
||
|
Copyright (c) 2001 Climax Development Ltd
|
||
|
|
||
|
===========================================================================*/
|
||
|
|
||
|
#ifndef __TRIGGERS_TODRIPEMIT_H__
|
||
|
#include "triggers\todripemit.h"
|
||
|
#endif
|
||
|
|
||
|
#ifndef __GAME_GAME_H__
|
||
|
#include "game\game.h"
|
||
|
#endif
|
||
|
|
||
|
|
||
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
void COilDripEmitterTrigger::think(int _frames)
|
||
|
{
|
||
|
CTrigger::think( _frames );
|
||
|
|
||
|
if ( m_timer <= 0 )
|
||
|
{
|
||
|
CFX::Create( CFX::FX_TYPE_DROP_OIL, Pos );
|
||
|
|
||
|
m_timer = GameState::getOneSecondInFrames();
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
m_timer -= _frames;
|
||
|
}
|
||
|
}
|