Dual Wielding Attacks [B42.15+,SP/MP?]
Dual Wielding Attacks
What does it do?
Based on OgreLeg's [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2706426546]Danger Zone Dual Wield[/url], this mod lets players dual wield weapons: when holding a weapon in the off-hand, any main-hand attack will be followed up by an off-hand attack.
Following changes have been made:
- off-hand attacks no longer hit enemies on the ground
- off-hand attacks only hit one (the closest) enemy: certain traits provided with this mod will increase the number of enemies hit, scaling with the weapon's skill
- off-hand weapons now loose condition (maintenance and traits can mitigate the condition loss).
- off-hand attacks now provide XP for the weapon's and the maintenance skill
- off-hand attacks no longer stop player movement
- off-hand attack speed should now use a similar scaling as main-hand attacks.
- off-hand attack range now matches main-hand attacks (hopefully no need to cuddle up to zombies anymore ;)
Traits
This mod adds following traits to improve unarmed combat and/or dualwielding:
- Unarmed Puncher: changes the shove to a right hand punch attack and (if the left hand is empty) follows up with a left hand punch. Punches will do actual damage.
- Ambidexterous Fighter: when wielding a weapon in the left hand the player will swing it faster and hit additional enemies. The left hand weapon will also take less damage.
- Dual Wielder: when wielding a weapon in the left hand the player will swing it even faster and hit even more enemies. The left hand weapon will also take even less damage.
Multiplayer
I've tested unarmed punching and armed dual wielding via local server/client and it seems to work now.
Options
In the game's option menu under "MODS" you can find a section for "Dual Wielding Attacks" which offers following options:
- Always follow right with left hand attack: if checked, a right hand attack will always be followed by a left hand attack (if valid). If unchecked the left hand attack will only trigger if the attack or melee button (left mouse or space, left trigger or right trigger) is held down.
- EXPERIMENTAL Left Hand Attack with Left Shift down (off by default): if checked, the player will do left instead of right hand attacks when holding down the shift key. This is still experimental since it has issues with timing and animations...
Balancing
People used to the original mod (myself included^^) will have to unlearn some bad (but fun) habits ("just give me a pencil and a low fence and I can kill hundreds of zombies").
The internal values used for for dual wielding with or without traits are just numbers I pulled out of my...ahem...I just guessed might not be too overpowered. From a design perspective, dual wielding and two-handed weapons should be about equally useful but with different advantages and disadvantages.
In vanilla two-handed beats one-handed, in the original mod dual-wielding beats two-handed. Here, I'd like to hit the middle :)
Long story short, I am wide open for feedback and suggestions.
Btw. if you're interested in actual numbers, I basically put everything in the registries.lua file (e.g. MAXHITS_BASE = 1, MAXHITS_PERKBONUS=0.333 means at perk (aka skill) level 0 left hand attacks hit a max of 1, while at level 10 it hits 1+10*0.333=4 zombies).
Credits
As already mentioned, this mod is heavily inspired by OgreLeg's [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2706426546]Danger Zone Dual Wield[/url] mod
- The left hand swing animation was created by OgreLeg
- Part of the code is based on OgreLeg's original code (albeit heavily adjusted)
- The unarmed punching sound was downloaded from mixkit.co
- CN/CH translation files by Patzzzz
Workshop ID: 3698500716
Mod ID: RabenRabo_DualWieldingAttacks