RimWorld

RimWorld

345 ratings
Vanilla Melee Modes
5
4
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.6, 1.7
File Size
Posted
Updated
1.044 MB
Feb 28 @ 5:58am
Oct 15 @ 10:06pm
13 Change Notes ( view )

Subscribe to download
Vanilla Melee Modes

In 1 collection by ALiza
Aliza's mods
6 items
Description
Adds Parrying, Counterattacks, and Selectable Melee Modes to Vanilla Melee

This mod introduces the following features to the vanilla melee system:
- Manually switchable melee modes
- Independent parry check mechanism
- Counterattack system after parrying

Parrying Mechanism

Parrying is an additional check mechanism and will not replace the original dodge system.
It only applies to melee attacks.
The base values for parrying are determined by the following attributes:
- Melee Skill
- Manipulation capacity
- Sight capacity
Weapon Requirement:
A pawn must be holding a weapon to parry. If the character is not holding a weapon, parrying will not be possible.
Effect of Ranged Weapons:
If the pawn is holding a ranged weapon, the parrying chance will be reduced by 50%.
Angle Requirement:
By default, a pawn can only parry melee attacks coming from within a 120° frontal arc.
When a parry is successful:
- Damage is reduced proportionally
- A counterattack may be triggered with a certain probability

Melee Modes

▪ Default
- Keeps the original stats, no changes.

▪ Aggressive
Gives up defense and attack speed for a stronger single strike.
- Melee hit chance: 115%
- Melee dodge chance: 85%
- Melee damage: 125%
- Melee cooldown: 135%
- Melee armor penetration: 110%
- Effective Parry Angle: 80 degrees
- Melee parry chance: 90%
- Parry damage reduction: 80%
- Parry counterattack chance: 150%

▪ Flurry
Increases attack frequency, but lowers individual hit damage.
- Melee hit chance: 95%
- Melee dodge chance: 100%
- Melee damage: 80%
- Melee cooldown: 75%
- Melee armor penetration: 90%
- Effective Parry Angle: 100 degrees
- Melee parry chance: 80%
- Parry damage reduction: 70%
- Parry counterattack chance: 60%

▪ Guard
Gives up offense for full defense, improving survivability.
- Melee hit chance: 90%
- Melee dodge chance: 150%
- Melee damage: 75%
- Melee cooldown: 105%
- Melee armor penetration: 85%
- Effective Parry Angle: 180 degrees
- Melee parry chance: 160%
- Parry damage reduction: 150%
- Parry counterattack chance: 70%

▪ Auto-Switch
Automatically selects the optimal melee mode based on the battle situation.
- Logic: Near death/surrounded → Guard; High armor enemy → Aggressive; High evasion enemy, or high-skilled colonist & 1v1 → Flurry
- Trigger: Instantly on manual target selection, otherwise evaluates every 0.5 seconds in combat
- NPCs default off (can be enabled in Mod Settings)

>>> All values are fully configurable in Mod Settings. <<<



Combat Extended Compatibility

When Combat Extended is loaded:
The parrying and counterattack mechanisms of this mod will be disabled, as CE already implements an independent melee parrying and counterattack system.
Relevant parrying parameters in melee modes will be automatically adjusted as follows:

▪ Aggressive
- Melee parry chance: 90%
- Melee critical hit chance: 150%

▪ Flurry
- Melee parry chance: 80%
- Melee critical hit chance: 80%

▪ Guard
- Melee parry chance: 160%
- Melee critical hit chance: 100%

These adjustments ensure compatibility between this mod and CE's parrying system, preventing duplicate calculations for parrying and counterattacks.
All these value are also adjustable in the Mod Settings.



If you need a selectable fire mode for ranged weapons
please check out my other mod👉Vanilla Fire Modes

FAQ

Q: CE?
A: Yes.

Q: Is it compatible with other race and weapon mods?
A: Theoretically, it is compatible with most race mods (like HAR Races) and weapon mods.

Q: Is it compatible with "Melee Animation"?
A: Based on my tests, yes.

Q: Does this mod work with Mechanoid?
A: Yes, including those added by other mods.

Q: Are parrying and counterattacking applicable to NPCs?
A: By default, they apply to all characters, including enemies. You can disable this option in the mod settings.

Q: Are melee modes available for NPCs?
A: Not by default. You can enable "Auto-switch melee mode for NPCs" in Mod Settings. Note that this will make melee enemies more deadly.

Q: I don't like the auto-switch feature and don't want to see the auto-switch button.
A: You can disable "Auto-switch melee mode for colonists" in Mod Settings, and the Gizmo will be hidden.

Q: Can this mod be added mid-save?
A: Yes.

Q: Can this mod be removed mid-save?
A: Theoretically yes.


Github[github.com]
103 Comments
Oct 29 @ 4:41am 
does this mod able to disable fist and kicks attacks from modded bionics? im just looking for a solution since some modded bionics allow attacks and if the main melee is weaker it will never be used
Oct 17 @ 10:03am 
@ALiza Ah, I see. That makes sense.

I hope you might find a way to add those settings in the future. This mod is cool, and I’m glad to see you keep an eye on it.
ALiza  [author]
Oct 17 @ 8:06am 
@苟岂
二者同时加载应该不会有冲突。但这两个mod的格挡系统是彼此独立的,会重复触发。此外本mod的格挡与反击机制可以在设置中手动关闭,若同时使用建议关闭本mod的格挡与反击功能。
ALiza  [author]
Oct 17 @ 8:05am 
@Quickdraw6
@Punished "Venom" Snake

Thanks for the suggestion! You’re right that Default mode currently uses the baseline values. Making those adjustable is possible, though the mod follows RimWorld’s standard stat calculation approach: modifiers affect an underlying score, which is then converted into a chance through a curve. This means doubling a modifier wouldn’t necessarily double the actual chance. Given how unintuitive those settings could be, I’d prefer to keep the baseline values fixed for now.
ALiza  [author]
Oct 17 @ 7:59am 
@Lugh
I don’t currently have plans to add support for animals, but I’ll consider it. Thanks for the suggestion!
ALiza  [author]
Oct 17 @ 7:56am 
已更至 rimworld 1.7 (unstable beta)



Updated for RimWorld 1.7 (unstable beta)
Oct 9 @ 11:36pm 
这玩意儿能和隔壁“格挡物理效果”一起用吗
Oct 3 @ 11:54am 
I agree with @Quickdraw6. Being able to modify the default stance as in the fire mode mod would be fantastic.
Sep 5 @ 3:46am 
Fantastic stuff. This will work very well with my 40K Crusade Base playthrough.
Trench lines in the jungle against endless traitors, mutants, heretics, robots and aliens, what fun!
Aug 18 @ 5:51pm 
Love this mod, but could there be added mod settings for the base (unmodified) rates of parrying and counterattacking? I can tweak all the stances but that presumably still leaves the default mode at baseline.