Jump to content
Sign in to follow this  
JaxTeller718

Infection Persists Through Death

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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.

Edited by Tin (see edit history)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 ;)

Share this post


Link to post
Share on other sites

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%?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...