Custom Zombie Boss (During Rounds)

broken avatar :(
Created 1898 days ago
by MJPWGaming
0 Members and 1 Guest are viewing this topic.
10,063 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 45 days ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
Hi I was wondering how to do a Zombie Boss in the rounds?
This will just be a random zombie that stands out from the others and has more health.
Also he needs to go with the same speed as the others (slow at the beginning and faster later).

The custom zombie boss that I'm doing is a secret project that will be revealed during release so I cant go into more
details about the specific boss but he would need to just go off the regular anims as all the others (not a panzer or Brutus).

The character model also came out as two pieces (head and body).
So lets say I were to use:

char_ger_ansel_body
char_ger_honorgd_zombiehead1_1

If there's a easy tut or script someone is willing to help me out with I'd greatly appreciate it!

EDIT: Also one other thing, a sound has to be played after his death.
Last Edit: June 02, 2015, 09:50:22 pm by MJPWGaming
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 4 days ago
Posts
1,187
Respect
1,393Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
[RELEASED] Greenhouse Realism 3.0: [You are not allowed to view external links. Register or Login to see them]

NUK370WN Realism 3.0: [You are not allowed to view external links. Register or Login to see them]
Industrial Estate Realism 3.0: [You are not allowed to view external links. Register or Login to see them]

Support my work here:  [You are not allowed to view external links. Register or Login to see them]
×
BluntStuffy's Groups
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.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
In _zombiemode_spawner::zombie_spawn_init(), somewhere around the end of the function, under     self.flame_damage_time = 0;     for example, add something like this:

	if( ( !isdefined( level.boss_spawned ) || isdefined( level.boss_spawned ) && !level.boss_spawned ) && randomint( 100 ) < 40 )
{
level.boss_spawned = true;
self.boss = true; // you can use this in other scripts to check
self detachall();
self setModel("char_ger_ansel_body");
self.headModel = "char_ger_honorgd_zombiehead1_1";
self attach(self.headModel, "", true);

self.maxhealth = HEWHEALTH;
self.health = HEWHEALTH;
level thread boss_round_reset();
                self thread play_sound_on_death();
}

Then add this new function at the bottom of the file:

	boss_round_reset()
{
level waittill( "between_round_over" );
level.boss_spawned = false;
}


And also add this function under that:

play_sound_on_death()
{
      self waittill( "death" );

      playsoundatposition( "SOUND_ALIAS", self.origin );
}

Then one boss max will spawn each round, should work. Untested though  :P


EDIT:
Also added the sound when he dies now




Last Edit: June 02, 2015, 10:37:19 pm by BluntStuffy
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 45 days ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
Thanks! I get a error straight off:

Uninitialised variable 'hewhealth'
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 141 days ago
Posts
6,879
Respect
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
Thanks! I get a error straight off:

Uninitialised variable 'hewhealth'

I think he meant "newhealth" and I also think he intended for you to replace that with a number, multiplication or reference to a variable you set

something like :

newHealth = level.round_number * 250;
self.maxhealth = newHealth;
self.health = newHealth;

the above would mean as the rounds go up, as does the boss zombies health
Last Edit: June 03, 2015, 01:23:38 am by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 45 days ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
Nice! So now it all works, sound and all, BUT the character just looks like any of the other zombies that spawn. :/
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 141 days ago
Posts
6,879
Respect
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
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
Nice! So now it all works, sound and all, BUT the character just looks like any of the other zombies that spawn. :/

change these to you desired models

self setModel("char_ger_ansel_body");
self.headModel = "char_ger_honorgd_zombiehead1_1";

if the model has a head, just skip the head. comment it out or delete it

I believe the ones in the example are for the normal zombies
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 61 days ago
Posts
3,998
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Nice! So now it all works, sound and all, BUT the character just looks like any of the other zombies that spawn. :/

Remember to also add models in mod.csv
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 45 days ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
change these to you desired models

self setModel("char_ger_ansel_body");
self.headModel = "char_ger_honorgd_zombiehead1_1";

if the model has a head, just skip the head. comment it out or delete it

I believe the ones in the example are for the normal zombies


I changed it to the actual models it was supposed to be :(

Remember to also add models in mod.csv

Already done :/
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 141 days ago
Posts
6,879
Respect
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
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
well he did say it was untested, might need a slight adjustment. Maybe a wait till spawn check before swapping the models or something

Im sure Stuffy will reappear with the solution before long, he always does ;)
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 45 days ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
well he did say it was untested, might need a slight adjustment. Maybe a wait till spawn check before swapping the models or something

Im sure Stuffy will reappear with the solution before long, he always does ;)

Indeed he does haha. I really hope it works so far my little project is pretty sweet :D
Marked as best answer by MJPWGaming on Today at 11:32:30 pm
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 4 days ago
Posts
1,187
Respect
1,393Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
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.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
In _zombiemode in the precache_models() function add:

	precachemodel( "char_ger_ansel_body" ); 
precachemodel( "char_ger_honorgd_zombiehead1_1" );

and try again..



EDIT: And also set
self.gibbed = true;

for the boss in the piece of code you added in _zombiemode_spawner, else he will change back to a normal zombie when you shoot of an arm/leg.
Last Edit: June 03, 2015, 05:16:24 am by BluntStuffy
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 45 days ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
In _zombiemode in the precache_models() function add:

	precachemodel( "char_ger_ansel_body" ); 
precachemodel( "char_ger_honorgd_zombiehead1_1" );

and try again..



EDIT: And also set
self.gibbed = true;

for the boss in the piece of code you added in _zombiemode_spawner, else he will change back to a normal zombie when you shoot of an arm/leg.

It works! Thank you! Now I just gotta find out how to export AW player models correctly haha thanks
Last Edit: June 03, 2015, 06:37:08 am by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: esBilbao
Date Registered: 6 September 2012
Last active: 301 days ago
Posts
84
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
×
ElTitoPricus's Groups
ElTitoPricus's Contact & Social LinksElTitoPricusElTitoPricus
Sorry to bump on your topic MJPWGaming :)

Anyone knows how to make it work for specific rounds?

Let's say round 5-10-15 etc

Thanks
Last Edit: June 03, 2015, 07:33:52 am by ElTitoPricus
broken avatar :(
×
broken avatar :(
Location: au
Date Registered: 23 April 2015
Last active: 158 days ago
Posts
165
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
Signature
Money isn't everything but everything has a price
×
Eternal_Fire's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Eternal_Fire's Contact & Social Links
Ok so I put stuffys script in under self.flame = 0 but it doesnt work, Harry is not sure why and i put an iprint in and it doesnt print on the screen so that means that it isnt using the code... Any help?
Last Edit: June 03, 2015, 10:19:21 am by Eternal_Fire
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 4 days ago
Posts
1,187
Respect
1,393Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
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.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
Sorry to bump on your topic MJPWGaming :)

Anyone knows how to make it work for specific rounds?

Let's say round 5-10-15 etc

Thanks

In spawner add this instead:

	if( level.boss_spawned == 1 && randomint( 100 ) < 40 )
{
level.boss_spawned--;
self.boss = true; // you can use this in other scripts to check
self detachall();
self setModel("char_ger_ansel_body");
self.headModel = "char_ger_honorgd_zombiehead1_1";
self attach(self.headModel, "", true);

self.maxhealth = HEWHEALTH;
self.health = HEWHEALTH;
self thread play_sound_on_death();
}

and then in _zombiemode.gsc for example, in the main() function under this:     DisableGrenadeSuicide();     add:

          level thread boss_round_check();



  and then at the bottom of the file for example, add:

	boss_round_check()
{
level.next_boss_round = 5;
level.boss_spawned = 0;

while(1)
{
level waittill( "between_round_over" );
if( level.round_number == level.next_boss_round )
{
level.next_boss_round+=5;
level.boss_spawned = 1;
}
}
}






Ok so I put stuffys script in under self.flame = 0 but it doesnt work, Harry is not sure why and i put an iprint in and it doesnt print on the screen so that means that it isnt using the code... Any help?

If you havent solved it yet: DId you add the models to your mod.csv and to the precache-function in _zombiemode?
Otherwise post the piece of script from spawner, maybe something messed up..

 

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
Loading ...