Skip to content

Commit

Permalink
Merge branch 'main' into work
Browse files Browse the repository at this point in the history
  • Loading branch information
escape209 authored Sep 23, 2024
2 parents 095293d + 9b2c7da commit 1bf75e5
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/SB/Game/zEntPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3629,6 +3629,40 @@ U8 StunBubbleTrail(xAnimSingle* anim)
}
return ret;
}

F32 det3x3top1(float a, float b, float c, float d, float e, float f)
{
F32 ret = -((a * f) - ((b * f) - (e * c)));
return -((d * b) - ((a * e) + ((d * c) + ret)));
}

void zEntPlayerExit(xEnt* ent)
{
bungee_state::destroy();
}

void zEntPlayerPreReset()
{
globals.player.ControlOff = 0;
if (!oob_state::IsPlayerInControl())
{
zEntPlayerControlOff(CONTROL_OWNER_OOB);
globals.player.ControlOffTimer = 1e38;
}
}

F32 ComputeFudge(F32 a, F32 b)
{
F32 min = MIN(a, b);
a = (min - 0.075f) / -0.175f;

if (0.0f > MIN(a, 1.0f))
{
return 0.0f;
}

return MIN(a, 1.0f);
}

static void load_player_ini(zPlayerSettings& ps, xModelInstance& model, xModelAssetParam* modelass,
U32 params_size)
Expand Down
1 change: 1 addition & 0 deletions src/SB/Game/zEntPlayerBungeeState.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ namespace bungee_state
void load(xBase& data, xDynAsset& asset, size_t);
bool active();
bool landed();
bool destroy();
void insert_animations(xAnimTable& table);
} // namespace bungee_state

Expand Down

0 comments on commit 1bf75e5

Please sign in to comment.