This commit is contained in:
parent
61780e997e
commit
420a0a89b2
6 changed files with 294 additions and 0 deletions
39
source/triggers/tabemit.cpp
Normal file
39
source/triggers/tabemit.cpp
Normal file
|
@ -0,0 +1,39 @@
|
|||
/*=========================================================================
|
||||
|
||||
tabemit.cpp
|
||||
|
||||
Author: CRB
|
||||
Created:
|
||||
Project: Spongebob
|
||||
Purpose:
|
||||
|
||||
Copyright (c) 2001 Climax Development Ltd
|
||||
|
||||
===========================================================================*/
|
||||
|
||||
#ifndef __TRIGGERS_TABEMIT_H__
|
||||
#include "triggers\tabemit.h"
|
||||
#endif
|
||||
|
||||
#ifndef __GAME_GAME_H__
|
||||
#include "game\game.h"
|
||||
#endif
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CAcidBubbleEmitterTrigger::think(int _frames)
|
||||
{
|
||||
CTrigger::think( _frames );
|
||||
|
||||
if ( m_timer <= 0 )
|
||||
{
|
||||
CFX::Create( CFX::FX_TYPE_BUBBLE_ACID, Pos );
|
||||
|
||||
m_timer = GameState::getOneSecondInFrames() >> 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_timer -= _frames;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue