- Added: PlayerPawn property "Player.ViewBob" which acts as a MoveBob/StillBob multiplier.

This commit is contained in:
raa-eruanna 2016-09-26 07:24:37 -04:00 committed by Christoph Oelckers
commit e0efdd97b3
5 changed files with 32 additions and 5 deletions

View file

@ -582,8 +582,9 @@ void P_BobWeapon (player_t *player, float *x, float *y, double ticfrac)
if (curbob != 0)
{
float bobx = float(player->bob * Rangex);
float boby = float(player->bob * Rangey);
//[SP] Added in decorate player.viewbob checks
float bobx = float(player->bob * Rangex * (float)player->mo->ViewBob);
float boby = float(player->bob * Rangey * (float)player->mo->ViewBob);
switch (bobstyle)
{
case AWeapon::BobNormal: