| 310 | } |
| 311 | |
| 312 | bool NpcScriptState::startRoutineState(bool force) |
| 313 | { |
| 314 | VobTypes::NpcVobInformation npc = VobTypes::asNpcVob(m_World, m_HostVob); |
| 315 | |
| 316 | // Just say "yes" for the player, as he never has any routine |
| 317 | if (npc.playerController->isPlayerControlled()) |
| 318 | return true; |
| 319 | |
| 320 | // Turn off, so we don't recurse |
| 321 | m_Routine.startNewRoutine = false; |
| 322 | |
| 323 | // Start new state |
| 324 | bool res = activateRoutineState(force); |
| 325 | m_Routine.startNewRoutine = !res; |
| 326 | |
| 327 | return res; |
| 328 | } |
| 329 | |
| 330 | bool NpcScriptState::isInRoutine() |
| 331 | { |
no test coverage detected