Jump to content

Health Regen: COD style


shadowfx78

Recommended Posts

I downloaded this mod and i would like some help in slowing down the healing rate this provides can anyone help me out? here is the script contents and the rest of the information from the mod i cant figure it out i know how to make say a stimpak heal over time so i figured it would be something like that but dont know for sure

 

 

Default version
scn CoDHealthRegenScript

float timer
short iPlayerHealth
short iPlayerHealthPrevious
float fPlayerHealthPerc

begin GameMode

set iPlayerHealth to Player.GetAV Health
set fPlayerHealthPerc to Player.GetHealthPercentage
set timer to timer + GetSecondsPassed

if(iPlayerHealth < iPlayerHealthPrevious)
set timer to 0
set iPlayerHealthPrevious to iPlayerHealth
return
endif

if(fPlayerHealthPerc < 1)
if(timer > 6)
if(player.IsSpellTarget CoDHealthRegenEffect == 0)
player.cios CoDHealthRegenEffect
if(player.GetPCIsSex Male == 1)
PlaySound CoDRecoverBreatheEnd
else
PlaySound CoDRecoverBreatheEndFemale
endif
if(iPlayerHealth < iPlayerHealthPrevious)
player.dispel CoDHealthRegenEffect
set timer to 0
set iPlayerHealthPrevious to iPlayerHealth
return
endif
endif
else
if(player.IsSpellTarget CoDHealthRegenEffect == 1)
player.dispel CoDHealthRegenEffect
endif
endif
else
if(player.IsSpellTarget CoDHealthRegenEffect == 1)
player.dispel CoDHealthRegenEffect
endif
endif

set iPlayerHealthPrevious to iPlayerHealth

 

Actor Effect: COD regen effect *restore health"

Magnitude: 40

Duration:86400

Link to comment
Share on other sites

From glancing at it, it would seem that this script only deals with the time delay and sound effects of the healing.

 

I think you need to look under Actor Effect or Base Effect to try and find an effect called CoDHealthRegenEffect, this should be what actually controls the heal rate by using the effect Restore Health (and possibly Restore Chest, Head, etc). I believe the magnitude of Restore Health is the number of HP restored per second.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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