| 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 | { |