This commit is contained in:
parent
f01aab441d
commit
0c04ed7ede
1 changed files with 3 additions and 6 deletions
|
@ -116,7 +116,7 @@ CNpc::NPC_DATA CNpc::m_data[NPC_UNIT_TYPE_MAX] =
|
||||||
NPC_CLOSE_NONE,
|
NPC_CLOSE_NONE,
|
||||||
NPC_TIMER_NONE,
|
NPC_TIMER_NONE,
|
||||||
false,
|
false,
|
||||||
3,
|
40,
|
||||||
2048,
|
2048,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -656,17 +656,14 @@ void CNpc::init()
|
||||||
|
|
||||||
DVECTOR newPos;
|
DVECTOR newPos;
|
||||||
|
|
||||||
newPos.vx = 200;
|
newPos.vx = 300;
|
||||||
newPos.vy = 100;
|
newPos.vy = 100;
|
||||||
|
|
||||||
m_npcPath.addWaypoint( newPos );
|
m_npcPath.addWaypoint( newPos );
|
||||||
|
|
||||||
m_npcPath.setPathType( SINGLE_USE_PATH );
|
m_npcPath.setPathType( SINGLE_USE_PATH );
|
||||||
|
|
||||||
m_extension = newPos.vx - Pos.vx;
|
m_extension = 0;
|
||||||
|
|
||||||
m_velocity = m_data[m_type].speed;
|
m_velocity = m_data[m_type].speed;
|
||||||
|
|
||||||
m_timerTimer = GameState::getOneSecondInFrames() * 4;
|
m_timerTimer = GameState::getOneSecondInFrames() * 4;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue