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

Method update_engine_sound

src/SB/Game/zEntCruiseBubble.cpp:3017–3026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3015 }
3016
3017 void cruise_bubble::state_missle_fly::update_engine_sound(F32 dt)
3018 {
3019 F32 tmp = current_tweak->missle.fly.engine_pitch_max *
3020 (iabs(shared.last_sp.x) + iabs(shared.last_sp.y));
3021
3022 this->engine_pitch +=
3023 (tmp - this->engine_pitch) * current_tweak->missle.fly.engine_pitch_sensitivity;
3024
3025 set_pitch(2, this->engine_pitch, 0);
3026 }
3027
3028 U8 cruise_bubble::state_missle_fly::collide_hazards()
3029 {

Callers 1

updateMethod · 0.95

Calls 1

set_pitchFunction · 0.85

Tested by

no test coverage detected