Jump to content

A script that prevents the player from dying


Zorkaz

Recommended Posts

Just a thought but, does anyobdy have a good idea about a script that prevents the player from dying in a custom worldspace (In hardcore mode where tim doesn't work)

 

 

My initial thought would be to place a script in a trigger:

 

Onload

while self.isenabled

if player health is lower than 20

teleport him somewhere

 

 

(not using proper scripting language here)

 

 

The main issue about such a setup would be that if the player had 21 health and received a critical strike he'd still die.

So well you could play around with the numbers, set it higher and so on. But it wouldn't be foolproof.

Link to comment
Share on other sites

Done this in several mods,

 

OptionA - Set the player to Essential, register for event OnEnterBleedout and then manage the 10 second recovery. Look at SKK PlayerUndead or Gun Games.

 

Option B - Attach a perk that modifies all incoming damage when the player health AV is below a certain value. Problem is the health threshold may be lower than a heavy hitter or effect over time like poison. Look at SKK Dynamic Damage Manager.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...