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

Stronger zombies?

broken avatar :(
Created 7 years ago
by Doodles_Inc
0 Members and 1 Guest are viewing this topic.
2,419 views
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 20 April 2016
Last active: 2 years ago
Posts
145
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
if I surprised you, you had underestimated me
Signature
if I surprised you, it was because you underestimated me
×
Doodles_Inc's Groups
Doodles_Inc's Contact & Social LinksdoodlescriminoserDoodles_IncDoodlesInc
So, I want to make so my zombies have a bigger health, I tried messing around into my APE archetype, but, the health value simply doesn't does nothing, so, someone knows how to change the zombies health?
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 28 June 2015
Last active: 4 years ago
Posts
72
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
Wolfilms's Groups
Wolfilms's Contact & Social Links
This might work (I haven't tested it but it might work. There might be many flaws in it though)
Code Snippet
Plaintext
while(1)
{
zombies = GetAISpeciesArray("axis", "all");
foreach(zombie in zombies)
/*Idk if you need the zombie there -->*/ zombie zombie_utility::ai_calculate_health(round_number); //change round number to a number
}
then add to the top
Code Snippet
Plaintext
#using scripts\shared\ai\zombie_utility;
Last Edit: September 18, 2017, 10:56:40 pm by Wolfilms
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 20 April 2016
Last active: 2 years ago
Posts
145
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
if I surprised you, you had underestimated me
×
Doodles_Inc's Groups
Doodles_Inc's Contact & Social LinksdoodlescriminoserDoodles_IncDoodlesInc
So yeah I've been discussing about it in the Modders United Discord, and, I think actually, you don't even need a script, in going to test it right now, but Zoek sad that you could set the maxhealth var in the zombie spawner or riser, so yeah, I will test it now and say if it's working, this script method I think it's not good, because, the zombies will get a fix health and you need a loop, wich is not the most optimized way to do something like this.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 28 June 2015
Last active: 4 years ago
Posts
72
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
Wolfilms's Groups
Wolfilms's Contact & Social Links
Yea, I was afraid that the zombies might have a fixed health this way. Hopefully the riser thing works
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 20 April 2016
Last active: 2 years ago
Posts
145
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
if I surprised you, you had underestimated me
×
Doodles_Inc's Groups
Doodles_Inc's Contact & Social LinksdoodlescriminoserDoodles_IncDoodlesInc
Yea, I was afraid that the zombies might have a fixed health this way. Hopefully the riser thing works
Im compilling the map now to test it

Double Post Merge: September 18, 2017, 11:50:16 pm
It didn't worked :(
Last Edit: September 18, 2017, 11:50:16 pm by Doodles_Inc
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 28 June 2015
Last active: 4 years ago
Posts
72
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
Wolfilms's Groups
Wolfilms's Contact & Social Links
Maybe try my way? the function it comes from does all the calculations so it might increase the health per round. Also, taking it out of the while loop might make it work if it doesn't work with the loop
Last Edit: September 19, 2017, 01:27:10 am by Wolfilms
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 20 April 2016
Last active: 2 years ago
Posts
145
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
if I surprised you, you had underestimated me
×
Doodles_Inc's Groups
Doodles_Inc's Contact & Social LinksdoodlescriminoserDoodles_IncDoodlesInc
Maybe try my way? the function it comes from does all the calculations so it might increase the health per round. Also, taking it out of the while loop might make it work if it doesn't work with the loop
I will try it today

 
Loading ...