This commit is contained in:
Charles 2001-05-01 14:36:14 +00:00
parent 6ab24ee0d7
commit dbbbc99757
2 changed files with 10 additions and 2 deletions

View file

@ -19,11 +19,19 @@
#include "game\game.h"
#endif
#ifndef __UTILS_HEADER__
#include "utils\utils.h"
#endif
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcFallingPlatform::postInit()
{
m_npcPath.setPathType( CNpcPath::SINGLE_USE_PATH );
m_isActive = false;
m_timer = 4 * GameState::getOneSecondInFrames();
m_timerType = NPC_PLATFORM_TIMER_RESPAWN;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@ -39,7 +47,7 @@ void CNpcFallingPlatform::processMovement( int _frames )
if ( pathComplete )
{
m_isActive = false;
m_timer = 4 * GameState::getOneSecondInFrames();
m_timer = getRnd() % ( 4 * GameState::getOneSecondInFrames() );
m_timerType = NPC_PLATFORM_TIMER_RESPAWN;
}
else

View file

@ -221,7 +221,7 @@ CNpcPlatform::NPC_PLATFORM_DATA CNpcPlatform::m_data[NPC_PLATFORM_TYPE_MAX] =
{ // NPC_CRATE_PLATFORM
ACTORS_CLAM_SBK,
ANIM_CLAM_SIDESNAP,
4,
3,
128,
true,
DAMAGE__NONE,