Skip to content

Commit

Permalink
Highlight ammo in alt HUD when using A_WeaponProjectile, A_WeaponBull…
Browse files Browse the repository at this point in the history
…etAttack
  • Loading branch information
bradharding committed Aug 25, 2024
1 parent de75c4e commit 01bf4a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/p_pspr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,8 @@ void A_WeaponProjectile(mobj_t *actor, player_t *player, pspdef_t *psp)
// baddie the player is actually aiming at. ;)
mo->tracer = linetarget;

ammohighlight = I_GetTimeMS() + HUD_AMMO_HIGHLIGHT_WAIT;

P_RumbleWeapon(player->readyweapon);
}

Expand Down Expand Up @@ -1077,6 +1079,8 @@ void A_WeaponBulletAttack(mobj_t *actor, player_t *player, pspdef_t *psp)
MISSILERANGE, bulletslope + P_RandomHitscanSlope(state->args[1]),
(M_Random() % state->args[4] + 1) * state->args[3]);

ammohighlight = I_GetTimeMS() + HUD_AMMO_HIGHLIGHT_WAIT;

P_RumbleWeapon(readyweapon);
}

Expand Down

0 comments on commit 01bf4a1

Please sign in to comment.