Call of Duty 5: World at War => Help Desk => Modding => Topic started by: MJPWGaming on June 02, 2015, 09:47:10 pm
Title: Custom Zombie Boss (During Rounds)
Post by: MJPWGaming on June 02, 2015, 09:47:10 pm
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:
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.
Title: Re: Custom Zombie Boss (During Rounds)
Post by: BluntStuffy on June 02, 2015, 10:02:38 pm
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:
Then add this new function at the bottom of the file:
And also add this function under that:
Then one boss max will spawn each round, should work. Untested though :P
EDIT: Also added the sound when he dies now
Title: Re: Custom Zombie Boss (During Rounds)
Post by: MJPWGaming on June 03, 2015, 01:17:46 am
Thanks! I get a error straight off:
Uninitialised variable 'hewhealth'
Title: Re: Custom Zombie Boss (During Rounds)
Post by: Harry Bo21 on June 03, 2015, 01:22:07 am
In _zombiemode in the precache_models() function add:
and try again..
EDIT: And also set
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
Title: Re: Custom Zombie Boss (During Rounds)
Post by: ElTitoPricus on June 03, 2015, 07:33:14 am
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
Title: Re: Custom Zombie Boss (During Rounds)
Post by: Eternal_Fire on June 03, 2015, 07:54:56 am
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?
Title: Re: Custom Zombie Boss (During Rounds)
Post by: BluntStuffy on June 03, 2015, 04:08:07 pm
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..
Title: Re: Custom Zombie Boss (During Rounds)
Post by: ElTitoPricus on June 03, 2015, 04:52:24 pm
Thank You BlunStuffy ;)
Title: Re: Custom Zombie Boss (During Rounds)
Post by: Eternal_Fire on June 07, 2015, 08:29:14 am
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..
Oh what do you mean by add the precache-function in _zombiemode?
Title: Re: Custom Zombie Boss (During Rounds)
Post by: BluntStuffy on June 07, 2015, 09:44:01 am