Merge pull request #293 from Nyxem64/muzzleflash

GE Muzzle flash addition
This commit is contained in:
fgsfds authored and GitHub committed 2023-12-16 15:08:22 +01:00
commit 4233e5e066
1 file changed
+7 -1
+7 -1
View File
@@ -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);