• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Infection Persists Through Death

JaxTeller718

Survivor
Im trying to make infection persist until you cure it. I got that part working, i have it so it does not clear on death but unfortunately doing this also creates a death loop when it hits 100 percent. I die, respawn and die again since its not clearing the infection on death.

Im awful at buffs so I want to know, is there a way to get it to actually clear at 100 percent but still have it be persist on death in other stages?

 
Maybe something to try:

Make a buff that uses "onSelfRespawn" so it debuff's the infection buff last stage.

then have it require that last stage of infection buff. so it is only going to work if you re-spawn, and have that stage of infection.

then have it buff the infection again, so it resets to the beginning?

Edit: if that doesn't make sense I can write it out a bit more. It should be possible though.

 
Last edited by a moderator:
You could de-couple the death part of the buff into a new buff that is cast on the player on reaching 100%. This buff would kill the player, but not carry over on death and also remove the infection when it cast, basically resolving the infection since it killed the player at the end.

So infected casts a 2nd buff on 100% infection. Infection debuffs itself on 100%. 2nd buff kills player and does not stick on death. Effect: Player is dead, infection is resolved. Alternatively have a new infection cast by the 2nd killing buff, then the player will respawn with a infection again at 0%.

But infection probably is a cvar, might also be possible to reset it to 0 on death, so it will not cure. Could even be simpler this way.

 
Sound kind of interesting ....

If you are perma infected and constantly have to keep down the infection % but being unable to cure it.

That would kinda keep you on the edge ... constantly have to look out for honey/antiobiotics etc to keep the infection under control

That may also be a nice addition to the GNA Mod ;)

 
On my phone so can't check, but couldn't you have it trigger on death to remove x amount of the infection cvar to bring it down to a certain value below the 100%?

 
Back
Top