Insurgency: Sandstorm

HealthRegen for Insurgency: Sandstorm

Released (updated ago). Ranked 53 of 407 with 37,278 (168 today) downloads

Published by RareK (mod ID: 165408)

healthregen.png

Configurable delayed health regeneration after taking damage or by taking objectives.

Mutator should work with all gamemodes and can be configured separately for each


Timer Regeneration

Every configured timer loop, players that haven't been damaged for the configured amount of time can be restored a specified amount of health. This is looped until the player has full health. Taking more damage will reset the delay.

You can also regen players up to a limit instead of full health.

Can be disabled if you just want Objective regeneration.

Objective Regeneration

Adds a configured percentage of health back to the player after an objective has been completed and the next objective is active. Can additionally be configured to heal at the start of counter attacks or at the start of the final objective counter attack for checkpoint.

You can also heal players up to a limit with some config combinations.

Can be disabled if you just want timer regeneration.


Mutator=HealthRegen


Config

Goes into your server's \sandstorm_server\Insurgency\Saved\Config\WindowsServer\Game.ini

(Or for localplay) %localappdata%\Insurgency\Saved\Config\WindowsClient\Game.ini


Config= is an array so you can have more than one entry with different settings.

(Mutator="",Scenario="",GameMode="") let's you pick the config depending on which ever of these matches first. Mutator matches are searched first, then scenario then gamemode, only the first match is loaded. Mutator won't do anything if there are no matches.

Gamemodes for matching:

INSCheckpointGameMode INSCheckpointHardcoreGameMode INSOutpostGameMode INSPushGameMode INSFrontlineGameMode INSSkirmishGameMode INSFirefightGameMode INSTeamDeathmatchGameMode

Mutator config;

So I cannot actually paste the full line with all the characters on modio because it is more than 200 characters, full checkpoint config line is here Pastebin.pl

Below are some examples though.

[/HealthRegen/Mutator/HealthRegen.HealthRegen_C]

Config=(GameMode="INSCheckpointGameMode",RegenATeam=True,RegenDelayTime=10.0,ObjATeam=True,ObjHealStart=0.4,ObjHealMode=1)
Config=(Mutator="Frenzy",ObjDTeam=True,ObjHealEnd=1.0,ObjHealFinalObj=1.0,ObjHealLimit=1.0,ObjHealMode=1)

RegenGrunt=True
RegenOverlay=True
RegenOverlayColour=(R=0.5,G=0.5,B=0.5,A=0.01)
ObjShowInChat=True
Debug=1

Inside the Config=(). Defaults are shown.

Mutator="" Config is loaded if this matches

Scenario="" Config is loaded if this matches

GameMode="" Config is loaded if this matches

RegenATeam=False Enables timer looped health regeneration for the attacking team.

RegenDTeam=False Enables timer looped health regeneration for the defending team.

(Setting RegenATeam=False and RegenDTeam=False will disable the Timer Regeneration part of the mutator.)

RegenLoopTime=1.0 (Seconds) How often all valid players are checked and healed

RegenDelayTime=5.0 (Seconds) How long of a delay there is before healing after taking damage

RegenHealthAmount=10.0 How much healing to give every loop to valid players. Normal players have max 100

RegenHealthLimit=1.0 Range 0 --> 1.0 X Max health (normally 100). Regenerates health up to this amount.

ObjATeam=False Enable objective healing for the attacking team.

ObjDTeam=False Enable objective healing for the defending team.

(Setting ObjATeam=False and ObjDTeam=False will disable the Objective Regeneration part of the mutator.)

ObjHealStart=0.2 X Max health (is normally 100) to restore for the player. Triggered at the start of counter attacks if ObjHealMode=2

ObjHealEnd=1.0 X Max health (is normally 100) to restore for the player. Triggered after finishing counter attacks, caches or objective captures with no counters.

ObjHealFinalObj=1.0 X Max health (is normally 100) to restore for the player. Triggered for the final defend in Checkpoint if ObjHealMode=1 or 2

ObjHealLimit=1.0 X Max health. Upper heal limit. ( You can do different functionality with this. For example, if you set all the Heal values to 1.0 and this to 0.2, then all players will be healed up to 20% if their health is lower than that.)

ObjHealMode=1 Can be 0 or 1 or 2. See ObjHealStart and ObjHealFinalObj above. 0 does ObjHealEnd only.


Additional configs, outside Config=(). Defaults are shown.

RegenGrunt=True Optional grunt from the player when they start healing.
RegenOverlay=True Optional subtle flashing effect when timer healing.
RegenOverlayColour=(R=0.5,G=0.5,B=0.5,A=0.01)
ObjShowInChat=True False will hide objective heal you CURRENT HEALTH/MAX HEALTH messages in chat.

InitDelay=2.0 Delay before init to allow assets to load. Default should be fine.
Debug=0 (0 or 1 or 2 or 3); 0 does nothing. 1 will show the loaded config in the game chatbox when round starts or if there are no config entries at all. 2 is the same but also shows if the are no config matches (but there were at least some). 3 is the same but also shows the gamemode and mutator classes in chat when the gamemode starts.


Releases

FilenameSizeVersionAddedOptions
filedata.15.zip23.69kb1.11e

filedata.14.zip23.76kb1.11d

filedata.13.zip46.22kb1.11c

filedata.12.zip2.21kb1.11b

filedata.11.zip2.21kb1.11

filedata.10.zip2.21kb1.10b

filedata.9.zip18.64kb1.10

filedata.8.zip17.94kb1.09

filedata.7.zip17.82kb1.08

filedata.6.zip17.66kb1.07

filedata.5.zip13.1kb1.06

filedata.4.zip12.52kb1.05

filedata.3.zip12.4kb1.05

filedata.1.zip12.45kb1.04

filedata.zip12.52kb1.03

filedata.2.zip12.05kb1.02

49 comments

Join the community or sign in with your gaming account to join the conversation:

DarkGhost7
DarkGhost7 @darkghost7

If i understood it properly
I.imgur.com
This means when you took damage and if 10s passed with no more damage
you get healed(whether immediately? or slowly?) for amount of 100hp
in Hardcore CP. Is that right? I don't know if mine is right
(but i can see "config is loaded" log) but it seems to
doesn't work. when i get damaged and screen got bloody screen doesn't
recover how long time passes. And it seems i still have low HP
judging by getting additional test shots after.

DarkGhost7
DarkGhost7 @darkghost7

Now it's working! thank you for all your works!!!

-[U|S|A]-WilliamF
-[U|S|A]-WilliamF @usa-williamf

Hi DarkGhost7, do you mind share me the setting you use for this mod? I had the same issue that it says config is loaded but not healing after I take damage.

RareK
RareK @rarek

Give the new update a go, I used the wrong variables in a branch, so Timer regen wasn't working without objective regen.

EN
publicENEM1613189139 @publicenem1613189139

Does this plugin worked anymore? Doesnt work on my server.

KennyLuo
KennyLuo @kennyluo

Can I use 'ReganShowInChat=True' to show CURRENT HEALTH/MAX HEALTH messages for timer Regeneration in chat?

KennyLuo
KennyLuo @kennyluo

Or show CURRENT HEALTH when the player is checking his ammo left in the magazine?

RareK
RareK @rarek

I'd have to make an update to add both, but RegenShowInChat would fill the entire chat log though.

bahzooga
bahzooga @bahzooga

Nice feature, for Hardcore in particular :)

Lipe123
Lipe123 @na2207282

Hey Bro, any update on this, I cannot get this mod to load successfully on my server at all. It worked before but 1.9 just made it no longer load.

RareK
RareK @rarek

Looks like 1.9 changed the classnames at some point and probably something else. Says it loaded along with FrenzyZombiesHardcore on my local server too ;)

xcyber3000x
xcyber3000x @xcyber3000x

Same Here bro, please update

RareK
RareK @rarek

Done.

Lipe123
Lipe123 @na2207282

Woop!! looks like its working and yes it was never zombies' fault, 1.9 just broke things.

Lipe123
Lipe123 @na2207282

When I use this mod: Insurgencysandstorm.mod.io
it changes the server from checkpoint to "zombies hardcore" for game mode in the description. How would I make that work in this mod? I tried using the mutator from that config "FrenzyZombiesHardcore" but its not working :(

RareK
RareK @rarek

Does something like this not work? Pastebin.com
I would have though that the gamemode under the hood would still be INSCheckpointGameMode or INSCheckpointHardcoreGameMode though? I might need to talk with snakyio ;)

Lipe123
Lipe123 @na2207282

it's technically still INSCheckpointGameMode yes but for some reason the healing does not trigger anymore :( Soon as I started the zombies mod it broke. If you look here Battlemetrics.com it somehow overrides the game mode.
Is there maybe an option to ignore all options and just work always?

RareK
RareK @rarek

I added Debug=3 to show the loaded gamemode and mutators
Grab a screenshot of your chatbox with the below in your Game.ini and the mutator HealthRegen in your startup params
[/HealthRegen/Mutator/HealthRegen.HealthRegen_C]
Debug=3

Mutators will show the full classnames with this btw (with _c_0 on the end or something), the config matches to the bit before those last 4 characters.

Lipe123
Lipe123 @na2207282

Thanks so much for the help but I'm doing something wrong i think,

I have this in game.ini Pastebin.com
and i have the mutator selected but nothing shows in chat.

RareK
RareK @rarek

Hmm, does the mutator show as loaded in your main menu esc menu? I'm assuming your server mutator launch params look something like this + your other mods -Mutators=HealthRegen.
I'll load up the mods on my local server and have a look also ;)

RareK
RareK @rarek

Config=(Mutator="HealthRegen",) + your settings, should force load it I think. Maybe put Debug=2 on so you can see if it loaded.

Lipe123
Lipe123 @na2207282

yeah you got it, its not loading.
In my console i get:
[0m[33m[2020.12.11-03.57.06:921][ 95]LogGameMode: Warning: Failed to load mutator with path '/HealthRegen/Mutator/HealthRegen.HealthRegen_C'
and it doesn't show in game, the others that I have do show up.

mind you there was just a server update less than 1h ago that prob broke more things

TannicArturo98
TannicArturo98 @tannicarturo98

me too:
[2020.12.11-15.56.22:988][ 48]LogAudioCues: Error: Unable to load banks at this time, deferring load.
[2020.12.11-15.56.22:989][ 48]LogStreaming: Error: Couldn't find file for package /HealthRegen/Mutator/HealthRegen requested by async loading code. NameToLoad: /HealthRegen/Mutator/HealthRegen
[2020.12.11-15.56.22:990][ 48]LogStreaming: Error: This will hitch streaming because it ends up searching the disk instead of finding the file in the pak file.
[2020.12.11-15.56.22:990][ 48]LogStreaming: Error: Found 0 dependent packages...
[2020.12.11-15.56.22:997][ 49]LogGameMode: Warning: Failed to load mutator with path '/HealthRegen/Mutator/HealthRegen.HealthRegen_C'

Lipe123
Lipe123 @na2207282

Are you on linux or windows server? I'm starting to think its Linux related, madammo causes server to crash for me on Linux but it runs fine on windows.

TannicArturo98
TannicArturo98 @tannicarturo98

I'm on Windows server