UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: Doodles_Inc on September 18, 2017, 10:07:15 pm

Title: Stronger zombies?
Post by: Doodles_Inc on September 18, 2017, 10:07:15 pm
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?
Title: Re: Stronger zombies?
Post by: Wolfilms on September 18, 2017, 10:36:29 pm
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;
Title: Re: Stronger zombies?
Post by: Doodles_Inc on September 18, 2017, 11:19:34 pm
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.
Title: Re: Stronger zombies?
Post by: Wolfilms on September 18, 2017, 11:21:19 pm
Yea, I was afraid that the zombies might have a fixed health this way. Hopefully the riser thing works
Title: Re: Stronger zombies?
Post by: Doodles_Inc on September 18, 2017, 11:24:09 pm
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 :(
Title: Re: Stronger zombies?
Post by: Wolfilms on September 19, 2017, 12:05:47 am
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
Title: Re: Stronger zombies?
Post by: Doodles_Inc on September 22, 2017, 11:50:16 pm
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