So far I managed to implement this by half, but am reaching my limits in coding and require help to continue further. There are still a few things I did not add and a few bugs as well, although the basics should work. Also be warned the code is very messy and may be incorrect in many places due to my low knowledge in coding (basically I wrote whatever made what I wanted to work then optimized as far as I could understand). Here is a list of what I have and haven't got working so far and a few screenshots.
Stuff that works:
- The player is visually holding two weapons in each hand, both in 1st person and 3rd person mode.
- Muzzle flash works in 1st person for the second gun.
- When dual wielding is enabled, the firing rate is double for any weapon simulating the shooting of both guns.
- Colors and other powerup effects work correctly for the 2nd weapon, both in 1st person and 3rd person mode.
- (V1.11) Players drop both weapons upon death.
- (V1.4) Weapons with continuous firing (UZI, Hagar, Electro alt. fire, etc) now fire faster as well.
- (V2.0) Each weapon shoots (spawns the projectile) after the other one, not randomly like before.
- (V2.0) Muzzle flashes display only on the shooting weapon, not both.
- (V2.0) Correct console messages when picking up or dropping a dual weapon.
Stuff that doesn't work & bugs:
- After respawning several times, floating weapon models get attached all over the players. - Fixed (V1.2)
- Muzzle flash only works for the 2nd weapon in 3rd person mode occasionally. - Fixed (V1.3)
- The projectile still appears as exiting from the right side when shooting, so in 1st person mode you still see the right gun spawning the projectile and the left one just moving. - Fixed, the projectile is now randomly spawned from either the left or right gun (V1.3)
- When the mutator is enabled, the player dual wields every weapon as long as they have it rather then starting with a single weapon and dual wielding it once they pick that weapon up again. - Fixed by MrBougo, dual weapons must be earned now (V2.0)
- No animation if you pick up a dual weapon while holding its single version, you just see it appearing there.




Patch located here. I will try to work on everything else I can later tonight but as I said I need help from more knowledgeable coders in order to finish this correctly. I would like hearing opinions on this as well
