MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / Process

Method Process

src/SB/Game/zNPCTypeBossSB1.cpp:415–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415void 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
454void zNPCB_SB1::NewTime(xScene* xscn, F32 dt)
455{

Callers

nothing calls this directly

Calls 11

xprintfFunction · 0.85
xVec3LerpFunction · 0.85
AddStompRingFunction · 0.85
xVec3AddFunction · 0.85
xVec3SMulByFunction · 0.85
SB1Dummy_BoundFuncFunction · 0.85
GetOwnerMethod · 0.80
SB1_FaceTargetFunction · 0.70
ProcessFunction · 0.50
iModelTagEvalFunction · 0.50
TimestepMethod · 0.45

Tested by

no test coverage detected