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

Method update_flash

src/SB/Game/zEntCruiseBubble.cpp:3002–3015  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3000 }
3001
3002 void cruise_bubble::state_missle_fly::update_flash(F32 dt)
3003 {
3004 this->flash_time += dt;
3005
3006 F32 tflash = current_tweak->missle.fly.flash_interval *
3007 (this->life / current_tweak->missle.life);
3008 if (this->flash_time > tflash)
3009 {
3010 flash_hud();
3011
3012 F32 floor_frac = std::floorf(this->flash_time / tflash);
3013 this->flash_time = this->flash_time - (floor_frac * tflash);
3014 }
3015 }
3016
3017 void cruise_bubble::state_missle_fly::update_engine_sound(F32 dt)
3018 {

Callers 1

updateMethod · 0.95

Calls 2

flash_hudFunction · 0.85
floorfFunction · 0.85

Tested by

no test coverage detected