| 413 | } |
| 414 | |
| 415 | void zNPCB_SB1::Process(xScene* xscn, F32 dt) |
| 416 | { |
| 417 | this->attack_delay += dt; |
| 418 | |
| 419 | if (this->attack_delay > 5.0f) |
| 420 | { |
| 421 | this->attacking = !this->attacking; |
| 422 | |
| 423 | this->attack_delay = 0.0f; |
| 424 | } |
| 425 | |
| 426 | if (this->attacking && this->psy_instinct) |
| 427 | { |
| 428 | this->psy_instinct->Timestep(dt, NULL); |
| 429 | } |
| 430 | |
| 431 | xFXRing* ring; |
| 432 | |
| 433 | for (U32 i = 0; i < 16; i++) |
| 434 | { |
| 435 | ring = this->m_stompRing[i]; |
| 436 | |
| 437 | if (ring && ring->time > 1.3f) |
| 438 | { |
| 439 | F32 rescale = ring->time / (ring->time + 5.0f * dt); |
| 440 | |
| 441 | ring->ring_radius_delta *= rescale; |
| 442 | ring->ring_tilt_delta *= rescale; |
| 443 | ring->ring_height_delta *= rescale; |
| 444 | ring->time += 5.0f * dt; |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | this->zNPCCommon::Process(xscn, dt); |
| 449 | |
| 450 | xprintf("BOSS: %s %f\n", this->model->Anim->Single->State->Name, |
| 451 | this->model->Anim->Single->Time); |
| 452 | } |
| 453 | |
| 454 | void zNPCB_SB1::NewTime(xScene* xscn, F32 dt) |
| 455 | { |
nothing calls this directly
no test coverage detected