Sneaky Bastard for Combat Extended
This mod, to put it simply, adds a dodge mechanic which effectively allows a pawn to simply ignore damage which they would otherwise take.
There are two calculations, one for humanoids and another for animals.
– Dodged projectiles pass straight through the pawn.
– By default, a pawn has a base 0% chance to dodge a projectile.
– You can only dodge projectiles. Bullets, grenade frags and shrapnel can be dodged while molotov cocktails cannot be.
– Every 0.05 of movement speed above 4.60 adds 1% to projectile dodge chance. (4.60 is the default move speed of a healthy baseliner human with no modifiers.) This means that a pawn with a movement speed of 5.00 c/s would gain a +8% modifier while a pawn with a movement speed of 10.0 c/s would gain a +108% modifier. The latter value would be rounded down to 90.
– Every 1 mass below 20 adds 1% to projectile dodge chance while every 1 mass above 20 will deduce 1% from projectile dodge chance. This means that a completely nude pawn with no items in their inventory would gain a +20% modifier while a pawn carrying 40 mass of items would gain a -20% modifier.
– Every 0.1 of body size directly translates to gaining/losing 5% dodge chance. This means that a pawn with a body size of 0.5 would gain a +25% modifier while a pawn with a body size of 1.1 would gain a -5% modifier.
– If a pawn is engulfed in blind smoke, the density of the smoke is directly added to their chance to dodge.
– Only living creatures can dodge ranged attacks. Mechanoids and other non-humans cannot dodge projectiles.
– By default, an animal has a base 15% chance to dodge a projectile.
– Animals can only dodge projectiles. Bullets, grenade frags and shrapnel can be dodged while molotov cocktails cannot be.
– Every 1% of movement capacity directly translates to gaining/losing 1% dodge chance. This means that an animal with a movement capacity of of 200% would gain a +100% modifier while an animal with 80% moving capacity would gain a -20% modifier.
– Every 0.1 of body size directly translates to gaining/losing 3% dodge chance. This means that an animal with a body size of 0.2 would gain a +24% modifier while a pawn with a body size of 1.1 would gain a -3% modifier.
– If an animal is engulfed in blind smoke, the density of the smoke is directly added to their chance to dodge.
– Calm hunt prey cannot dodge.
The new dodge mechanic allows quite a few new gameplay styles:
Very light enemies – nudist tribals and such – can now stand a chance against more solidly armed opponents.
Ultratech brawlers with melee weapons can now very reliably close the gap between themselves and their attacker, using their movement speed to their advantage.
…so on and so forth.
No, this mod has all functionaly of Smoke Dodge built-in and a lot more. That mod will still be available standalone for those who only want a smoke dodge mechanic.
TLDR: Zero impact during normal gameplay and only a tiny, effectively zero, impact during intense combat scenarios. I made the code as light as I could make it.
Long version: My mod has two components to it:
– A projectile dodge stat, calculated like any other stat.
– A harmony patch targeting a bit of code in Combat Extended that’s only run when a projectile overlaps a pawn’s hitbox. This code checks whether the projectile can hit the pawn in question. I harmony prefix patch onto this code and add a simple dice roll based on the pawn’s projectile dodge stat. The projectile either goes clean through or hits the pawn as normal based on the result of this dice roll. The harmony patch takes 0.004ms on average. (Yes, not 0.04ms, 0.004ms.)
Yes.
Required items:
Click the title to search on this site.
Combat Extended — Steam Workshop
Harmony — Steam Workshop
Revisions:
Old revisions of this mod are available below. Click the link to download.
