- Added: PlayerPawn property "Player.ViewBob" which acts as a MoveBob/StillBob multiplier.
This commit is contained in:
parent
513f8312b3
commit
e0efdd97b3
5 changed files with 32 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue