

A Host-Only mod that fixes all sentries to support the HEL piercing property.
Ever since the beginning of time, sentries never supported HEL pierce. You can see this by viewing their fire code in R6 Mono and they are strictly missing the logic to do so. This means that when the developers needed to implement HEL Auto Sentry, they need to add the logic for it as well as editting the datablock, however they only editted the datablock resulting in non-functioning HEL Auto Sentry. (They probably assumed that they had implemented it in the past)
This mod adds the HEL pierce logic to the sentries such that they can utilize the pierce property from the datablocks properly.
As sentries are simulated on host this mod can only ever work on host. There is no way to get this mod to work client-side due to this fact.
There are some dodgy work arounds but they are not real solutions, for example:
This plugin overwrites the fire method of sentry guns in a prefix which returns false and thus anyone who implements custom sentry firing logic will have compatability issues. The following methods have been prefix patched and return false:
SentryGunInstance_Firing_Bullets.FireBulletSentryGunInstance_Firing_Bullets.UpdateFireShotgunSemiIf you wish to have code execute on prefix or postfix of the sentry gun firing with this mod, I have provided delegates which you may use:
HelSentryFix.SentryFirePatches.anySentryFire_Prefix;
HelSentryFix.SentryFirePatches.anySentryFire_Postfix;
HelSentryFix.SentryFirePatches.sentryFire_Prefix;
HelSentryFix.SentryFirePatches.sentryFire_Postfix;
HelSentryFix.SentryFirePatches.shotgunSentryFire_Prefix;
HelSentryFix.SentryFirePatches.shotgunSentryFire_Postfix;
Assigning a function to these delegates will operate similar to Harmony prefix / postfix as in the code runs prio to the shot and after, however you cannot do harmony-like things such as returning false in a prefix to stop main code / referencing parameters to alter them prior execution.
v0.0.4
v0.0.3
v0.0.2
v0.0.1