Modme Forums
Menu:

Changing Health regen rate?

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: Lethal Peelz
Does anyone know how to change a single players health regeneration rate?


ModmeBot:

Reply By: Crazydude55
Im testing out a script, gimme a sec.


ModmeBot:

Reply By: Crazydude55
Ok, I think I got it...

Put this all in zm_yourmapname.gsc

Put this...

#using scripts\zm\_zm_playerhealth;
Under...
#using scripts\zm\zm_usermap;

Then, put this...
thread regen_time();
Under...
level.pathdist_type = PATHDIST_ORIGINAL;

Paste this...
function regen_time()
	{
		level.longRegenTime = 1000; //Base = 5000
	}
at the bottom of your .gsc


Finally... Paste this in Your zone file (zm_yourmapname.zone)...
scriptparsetree,scripts/zm/_zm_playerhealth.gsc

anywhere in your zone...

cheers. -CrazyDude or CaptainPorbeagle.


ModmeBot:

Reply By: Harry Bo21
theres no need to thread that in a function, all your doing is setting a variable?

just set the variable in the same place youve said to thread that function and itll do the exact same


ModmeBot:

Reply By: Crazydude55
Yea I should've, I'm actually bad but I tried.


ModmeBot:

Reply By: Lethal Peelz

Crazydude55
Ok, I think I got it... Put this all in zm_yourmapname.gsc Put this... #using scripts\zm\_zm_playerhealth; Under... #using scripts\zm\zm_usermap; Then, put this... thread regen_time(); Under... level.pathdist_type = PATHDIST_ORIGINAL; Paste this... function regen_time() { level.longRegenTime = 1000; //Base = 5000 } at the bottom of your .gsc Finally... Paste this in Your zone file (zm_yourmapname.zone)... scriptparsetree,scripts/zm/_zm_playerhealth.gsc anywhere in your zone... cheers. -CrazyDude or CaptainPorbeagle.

So the code works but i am trying to make a perk that regenerates health faster, so is there a way to make it affect one player instead of them all?


ModmeBot:

Reply By: huevosduros

Lethal Peelz
Crazydude55 Ok, I think I got it... Put this all in zm_yourmapname.gsc Put this... #using scripts\zm\_zm_playerhealth; Under... #using scripts\zm\zm_usermap; Then, put this... thread regen_time(); Under... level.pathdist_type = PATHDIST_ORIGINAL; Paste this... function regen_time() { level.longRegenTime = 1000; //Base = 5000 } at the bottom of your .gsc Finally... Paste this in Your zone file (zm_yourmapname.zone)... scriptparsetree,scripts/zm/_zm_playerhealth.gsc anywhere in your zone... cheers. -CrazyDude or CaptainPorbeagle. So the code works but i am trying to make a perk that regenerates health faster, so is there a way to make it affect one player instead of them all?

i think if u put these lines in perk.gsc