Skip to content

Commit

Permalink
GE Muzzle flash addition
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyxem committed Dec 11, 2023
1 parent 0a7faf2 commit cabd40f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/game/bondgun.c
Original file line number Diff line number Diff line change
Expand Up @@ -1911,7 +1911,13 @@ void bgun0f09a6f8(struct handweaponinfo *info, s32 handnum, struct hand *hand, s
if (func->flags & FUNCFLAG_NOMUZZLEFLASH) {
hand->flashon = false;
} else {
hand->flashon = true;
if ( func->type != INVENTORYFUNCTYPE_SHOOT_SINGLE) {
if (hand->shotstotake % 2 == 1) {
hand->flashon = true;
}
} else {
hand->flashon = true;
}
}

bgunStartSlide(handnum);
Expand Down

0 comments on commit cabd40f

Please sign in to comment.