Skip to content

Commit

Permalink
changes suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
khanghugo committed Mar 15, 2024
1 parent ebb8d51 commit 78dcfd9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion BunnymodXT/modules/ServerDLL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3399,7 +3399,10 @@ void TriggerTpKeepsMomentumRestore(Vector prev_vel, Vector prev_view, Vector pre
}

if (CVars::bxt_ch_trigger_tp_keeps_momentum_viewangles.GetBool()) {
pev->fixangle = 0; // cannot change angle if it is 1
// In HLSDK, due to some inheritance stuffs, pevToucher's viewangles is changed differently.
// In and only in TeleportTouch, pev->fixangle is set to 1.
// If not set back to 0, we cannot set our viewangles, due to inheritance stuffs.
pev->fixangle = 0;
pev->v_angle = prev_view;
pev->angles = prev_angles;
}
Expand Down

0 comments on commit 78dcfd9

Please sign in to comment.