This commit is contained in:
parent
6ab24ee0d7
commit
dbbbc99757
2 changed files with 10 additions and 2 deletions
|
@ -19,11 +19,19 @@
|
||||||
#include "game\game.h"
|
#include "game\game.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __UTILS_HEADER__
|
||||||
|
#include "utils\utils.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void CNpcFallingPlatform::postInit()
|
void CNpcFallingPlatform::postInit()
|
||||||
{
|
{
|
||||||
m_npcPath.setPathType( CNpcPath::SINGLE_USE_PATH );
|
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 )
|
if ( pathComplete )
|
||||||
{
|
{
|
||||||
m_isActive = false;
|
m_isActive = false;
|
||||||
m_timer = 4 * GameState::getOneSecondInFrames();
|
m_timer = getRnd() % ( 4 * GameState::getOneSecondInFrames() );
|
||||||
m_timerType = NPC_PLATFORM_TIMER_RESPAWN;
|
m_timerType = NPC_PLATFORM_TIMER_RESPAWN;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -221,7 +221,7 @@ CNpcPlatform::NPC_PLATFORM_DATA CNpcPlatform::m_data[NPC_PLATFORM_TYPE_MAX] =
|
||||||
{ // NPC_CRATE_PLATFORM
|
{ // NPC_CRATE_PLATFORM
|
||||||
ACTORS_CLAM_SBK,
|
ACTORS_CLAM_SBK,
|
||||||
ANIM_CLAM_SIDESNAP,
|
ANIM_CLAM_SIDESNAP,
|
||||||
4,
|
3,
|
||||||
128,
|
128,
|
||||||
true,
|
true,
|
||||||
DAMAGE__NONE,
|
DAMAGE__NONE,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue