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

Method update_animation

src/SB/Game/zEntCruiseBubble.cpp:2731–2737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2729 }
2730
2731 void cruise_bubble::state_player_aim::update_animation(F32 dt)
2732 {
2733 F32 r =
2734 range_limit<F32>(this->yaw_vel * current_tweak->player.aim.anim_delta, -1.0f, 1.0f);
2735 xAnimSingle* s = globals.player.ent.model->Anim->Single;
2736 s->BilinearLerp[0] = 0.5f * ((1.0f + s->BilinearLerp[0]) + r);
2737 }
2738
2739 void cruise_bubble::state_player_aim::apply_yaw()
2740 {

Callers 1

updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected