MELEE SKILL REBALANCE
= DESCRIPTION =
This Mod is an attempt to bring more utility to Melee Skill highlighting its impact on close quarters combats. Currently the main changes are:
- Altered skill progression/curves/defaults so what appears in-game tooltips as Melee Chance gets closer to real chances to land a hit on the enemy. The overall effect sought is that highly skilled fighters become deadlier while low skill fighters become much worse at dealing melee damage compared to Vanilla. Non Skilled entities will show their 60% chance to hit, as it was already the case inside the melee evaluation code. Their combat effectiveness will change based on their current health status.
- Created a "Parry" mechanic as a 3rd type of result on any melee attempted. The chance a regular hit turns into a "Parry" is based on the Melee Chance of the target. A parried attack has different effects on its target based on a few factors:
* If the target is wearing any piece of Apparel able to absorb damage, the full damage of the attack will be absorbed by it. Vanilla Personal Shields are an example of this change, they will try to absorb the damage of a melee attack that's parried.
* If the target is wielding a Melee Weapon, no wound will be suffered but the Weapon will loose HP as a fraction of the attack damage. This fraction is reduced the higher the Melee Chance of the target. The weapon will be dropped to the ground if a hit was strong enough to destroy it.
* An unarmed target will suffer half the damage on a Parry. A pawn wielding a Ranged Weapon falls on this category also.
* Parry chances are reduced the more parries a pawn does between his/her melee attacks.
- Pawns have a Melee Mode order players can change. Each mode modifies regular hits and have a chance ("Chance" in Mode tooltip) to trigger a special effect. For a special effect to happen the Pawn has to have effective hit chances equal or higher than the inherent difficulty of the stance ("Threshold" in the tooltip). The current modes are:
* Kill: Regular Damage on normal hits. Double damage on Special effect.
* Capture: Half Damage on normal hits. "Anesthezise" Incapacitation on Special effect.
* Stun: Half Damage on normal hits. Short stun on Special effect.
* Disarm: No Damage on normal hits. Enemy weapon droped to the ground on Special effect.
- AI Pawns use Attack Modes based on individual goals & capabilities.
= ACKNOWLEDGEMENTS =
pardeike: Without Harmony, gracefull detouring wouldn't have been possible. His input on safe access to private methods have been a very valuable lesson.
haplo: For inspiration on how to make my own art and for his excellent tutorial on modding.
= INCOMPATIBILITIES =
Currently this mod Detours 2 Vanilla methods using Harmony Library:
- Rimworld.Verb_MeleeAttack.TryCastShot()
- Rimworld.Pawn_DraftController.GetGizmos()
ATM the mod leaves no traces on your savegame, meaning it's safe to use on an ongoing game and safe to be removed without further considerations.
= KNOWN ISSUES =
- Parry counters are reseted on reloading.
- Attack Mode settings are reseted to "Kill" on reloading.
= TODO =
My current focus is to learn modding... Thus why my 1st goal is a mod that players aren't afraid to test, that's why no savegame trace is a must for now. If enough brave souls offer feedback and/or find this usefull, this are the next steps (In no particular order and, OFC, heavily shaped by the feedback I may gather)
-
-
-
-
- Parry Chance Stat. As a standalone so apparel/traits can affect defensive chances independently of offensive chances.
- Better Sounds/Visual notifications when a Parry happens.
-
- Better Sounds/Visual notifications when a Special effect happens.
-
-
= POWERED BY =
Harmony 1.0.9.1. Detouring Library.
= DOWNLOAD & INSTALLATION =
This is the latest version on the GITHUB repository of the project. If you want to access older versions, just browse on the "Releases" Tab and get the .zip of the one you want.
To install, simply unzip it into your [Rimworld Install Path]\Mods directory.
= PERMISSIONS =
Feel free to use/reuse, tear apart, the Mod and its sources at your leasure. I would appreciate to be credited if you think this mod is useful enough and/or provided some fun for you in any way or form .
= CHANGELOG =
Code Select
1.4.0:
- AI will now use different Attack Modes based on individual pawn's goals & capabilities.
- Tweaked Attack Modes thresholds & chances.
- Reduced Parry counter penalty.
1.3.2:
- Added overlays to Attack Mode button to describe effective chances of a special effect to happen.
- Compatibility with "Defensive Positions" mod.
1.3.1:
- Using Shortcut "M" (Misc 7) as default.
- RTS behaviour on Attack Mode button when multiple pawns are selected.
1.3.0:
- Added Attack Mode command.
- Added Basic Localization: English.
1.2.1:
- Fixed Null Error while attacking Buildings.
1.2.0:
- Full integration with Harmony Library.
- Parry chances of a pawn are reduced the more parries it has to do between his/her melee swings.
1.1.0:
- Melee weapons badly damaged on a parry are droped to the ground.
1.0.0:
-Initial Implementation.