| 1284 | } |
| 1285 | |
| 1286 | void zNPCB_SB2::Process(xScene* xscn, F32 dt) |
| 1287 | { |
| 1288 | if (this->flag.updated == FALSE) |
| 1289 | { |
| 1290 | boss_cam.set_targets((xVec3&)globals.player.ent.model->Mat->pos, location(), |
| 1291 | 5.0f); |
| 1292 | this->flag.updated = TRUE; |
| 1293 | } |
| 1294 | |
| 1295 | this->check_life(); |
| 1296 | this->player_damage_timer = this->player_damage_timer - dt; |
| 1297 | |
| 1298 | if ((globals.player.Health < this->old_player_health) && this->old_player_health != 0) |
| 1299 | { |
| 1300 | this->player_damage_timer = tweak.player_damage_time; |
| 1301 | say(1); |
| 1302 | } |
| 1303 | |
| 1304 | this->old_player_health = globals.player.Health; |
| 1305 | |
| 1306 | if ((SomethingWonderful() & 0x23) == 0) |
| 1307 | { |
| 1308 | delay = delay + dt; |
| 1309 | this->psy_instinct->Timestep(dt, 0); |
| 1310 | } |
| 1311 | |
| 1312 | this->update_nodes(dt); |
| 1313 | this->update_slugs(dt); |
| 1314 | this->update_move(dt); |
| 1315 | this->update_turn(dt); |
| 1316 | this->update_camera(dt); |
| 1317 | this->check_hit_fail(); |
| 1318 | zNPCCommon::Process(xscn, dt); |
| 1319 | } |
| 1320 | |
| 1321 | void zNPCB_SB2::NewTime(xScene* xscn, F32 dt) |
| 1322 | { |
nothing calls this directly
no test coverage detected