RimWorld

RimWorld

85 ratings
Plasma Shield Implant
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5, 1.6
File Size
Posted
Updated
16.847 MB
15 Mar, 2023 @ 12:14pm
14 Aug @ 12:36am
7 Change Notes ( view )

Subscribe to download
Plasma Shield Implant

Description
This mod adds an implantable shield generator to both humans and animals. These shields do not prevent the user from using ranged weapons and also prevent damage from melee attacks.

Implants can be crafted once Marine Armor technology is researched.

In addition to the base implant there are several extensions:

- Psi-Shield Booster: Reduces the base maximum energy by half, but increases maximum energy depending on psychic sensitivity
- Plasma Shield Battery: Simple increase to base maximum energy
- Hardened Shields: Makes any attack that deals more than 10 points of damage reduce the shield power by 10. Also reduces the maximum energy by half.
- Shield Regenerator: Doubles the regeneration speed, but increases time before shields start recharging after being broken
- Psionic Regenerator: Increases regeneration speed depending on psychic sensitivity, but causes the pawn to tire faster.
- Dampening Shields: Does not prevent the attack from damaging, however, reduces the damage taken by half.
- EMP Resistant: These shields are not immediately destroyed by EMP damage
- Adaptive Shields: Will take subsequently less damage when hit repeatedly with the same damage type. Takes more damage if the attack is of a different type
73 Comments
Virathas  [author] 28 Sep @ 7:52am 
@Six Feet Under

It stacks in some way with other mods - though i have no control which shield is struck "first". The only control i have, is with the vanilla shield belts, which are depleted before the implant.
Six Feet Under 24 Sep @ 1:40am 
How does this work with shield packs, or the shield mechanics of other mods?
Virathas  [author] 14 Aug @ 12:37am 
Updated with the performance fix, and two other fixes:
- Removed logging message
- Fixed a critical error when an animal with the implant was hit
Virathas  [author] 13 Aug @ 12:57pm 
@peter turbo
I did not work with performance in mind (especially since i know little about inner workings of Rimworld), but I would gladly implement an improvement like this
peterturbo 13 Aug @ 12:50pm 
Great mod, but while using it I found a performance issue, specifically:
In PlasmaShieldImplant.VirCompShield2:CompTick the PsychicSensitivity stat is calculated using the GetStatValue method, which is heavy because it takes into account everything that can relate to the pawn's stats, and it called every tick (60 calls in second on speed 1). And you access the ShieldState stat inside CompTick() twice, which is less expensive than the previous function, but still noticeable
I managed to reduce the average call time per tick from 0.163ms to 0.007ms using caching
I'll share my solution if you contact me
Beodyn 14 Jul @ 9:33am 
This is one of my favorite mods of all time, thank you for updating it!
Andreas 26 Jun @ 3:30pm 
Awesome, thanks for being on top of things @Virathas.
Virathas  [author] 26 Jun @ 12:55am 
Once 1.6 is live, i will definitely make sure that the mod works, and have a relevant update.
Andreas 25 Jun @ 12:03pm 
Does this work in 1.6? Any plans to update?
Nuacepony 30 Apr @ 11:40pm 
Why must these implants be added to the heart area instead of the torso or the brain?
This greatly affects those players who prefer to use heart implants.