Added toggle control for weapon bob while flying

This commit is contained in:
CandiceJoy 2022-12-16 17:12:03 -06:00
commit 0fdb740ac7
No known key found for this signature in database
GPG key ID: D51ABC8A5F5828DA
9 changed files with 28 additions and 2 deletions

View file

@ -796,6 +796,12 @@ DEFINE_ACTION_FUNCTION(_PlayerInfo, GetMoveBob)
ACTION_RETURN_FLOAT(self->userinfo.GetMoveBob());
}
DEFINE_ACTION_FUNCTION(_PlayerInfo, GetFViewBob)
{
PARAM_SELF_STRUCT_PROLOGUE(player_t);
ACTION_RETURN_BOOL(self->userinfo.GetFViewBob());
}
DEFINE_ACTION_FUNCTION(_PlayerInfo, GetStillBob)
{
PARAM_SELF_STRUCT_PROLOGUE(player_t);