UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Player Health reset to Default!

broken avatar :(
Created 8 years ago
by Guilhermex12
0 Members and 1 Guest are viewing this topic.
3,498 views
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 27 January 2014
Last active: 3 years ago
Posts
271
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
Guilhermex12's Groups
Guilhermex12's Contact & Social LinksGuilhermex12UGX-Mods
So, in my map, i trying to make the player go down with 3 Hits, but... After i get downed and revived (Coop or Single player quick revive), my health resets to 100!!! I tryed editing every "health" line, first i edited it in "load_gsc", after this, searched for Player health in "zombiemode_gsc" but it has nothing saying values of player health... :/
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 6 months ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Check _laststand.gsc for the revive it'll set the players maxhealth and health again so find that variable that controls it and mess with it rather than load.
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 27 January 2014
Last active: 3 years ago
Posts
271
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
Guilhermex12's Groups
Guilhermex12's Contact & Social LinksGuilhermex12UGX-Mods
Check _laststand.gsc for the revive it'll set the players maxhealth and health again so find that variable that controls it and mess with it rather than load.
Thanks for the answer :) Ok, i tryed this yesterday, but the "last_stand" doesn't have any Health values... Just lines saying "player.health" and "player.maxhealth"...  :-\
broken avatar :(
×
broken avatar :(
Location: usLayton, UT
Date Registered: 4 August 2013
Last active: 8 months ago
Posts
66
Respect
Forum Rank
Rotting Walker
Primary Group
Famous User
My Groups
More
My Contact & Social Links
More
Personal Quote
not real
×
LilRobot's Groups
Famous User
Famous User
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
LilRobot's Contact & Social LinkslilrobawtlilrobotDrLilRobotDrLilRobot
Thanks for the answer :) Ok, i tryed this yesterday, but the "last_stand" doesn't have any Health values... Just lines saying "player.health" and "player.maxhealth"...  :-\
that's exactly what you're looking for.
player.health is the player's current health, player being the object, health being the value you're after.
player.maxhealth is the player's curernt max health.

change the proper maxhealth vars to the amount you want for 3-hits.
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Thanks for the answer :) Ok, i tryed this yesterday, but the "last_stand" doesn't have any Health values... Just lines saying "player.health" and "player.maxhealth"...  :-\
(๏╭╮๏)
Anyway, the player.health and player.maxhealth is EXACTLY what you're looking for. Change their values to 120, that's my recommendation for proper BO3 3-hit.
Also, you have to change these values in _load.gsc too.
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 27 January 2014
Last active: 3 years ago
Posts
271
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
Guilhermex12's Groups
Guilhermex12's Contact & Social LinksGuilhermex12UGX-Mods
Ok. Look, in the "_load.gsc" i can see the line "player.maxhealth" and the value in 100, i already edited it to 150. Works good etc, but after this the HEALTH reset to DEFAULT... I have checked the "_laststand.gsc" but i DOESN'T have nothing about HEALTH values.
 So, how you're guys saying to me edit the value in laststand if it doens't have any health values to edit.  Also, sorry for the bad english, and my noob question, i'm not that good with Scripts...
Last Edit: May 04, 2016, 06:09:30 pm by Guilhermex12
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
check _callbackglobal.gsc
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 27 January 2014
Last active: 3 years ago
Posts
271
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
Guilhermex12's Groups
Guilhermex12's Contact & Social LinksGuilhermex12UGX-Mods
check _callbackglobal.gsc
Found alot of "self.health" and "self.maxhealth" but nothing of values... :(
Also, some "// self.health" and "// self.maxhealth"

Double Post Merge: May 04, 2016, 11:26:03 pm
I also tryed to add an line called "self.health = 150;" in _laststand.gsc, but, not worked....

Another possibility, can i reduce the zombies damage? If yes, what is the file?

Double Post Merge: May 05, 2016, 12:50:38 am
Ok ok, i just added an line called "self.maxhealth = 150;" in the zombiemode_perks.gsc under the Quick revive code and its fixed now! :D Thanks for all the replies anyway.

Double Post Merge: May 05, 2016, 01:46:01 pm
Hey, problem already solved.

Double Post Merge: May 05, 2016, 06:47:34 pm
Ok, one more post, sorry for flooding. But, the _zombiemode.perks.gsc you edit to get your health working in SOLO. For Coop you need to modify _laststand.gsc

PS: These files have health values, but, i needed to add some codes lines like "self.health = self.maxhealth;" and "self.maxhealth = 150;"
Last Edit: May 05, 2016, 06:47:34 pm by Guilhermex12

 
Loading ...