UGX-Mods

Call of Duty: Black Ops 1 => Downloadable Items for Mappers => Custom Maps, Mods & Tools => Models => Topic started by: shippuden1592 on May 06, 2023, 09:36:58 pm

Title: Hazmat from COD Online [New Spawn System]
Post by: shippuden1592 on May 06, 2023, 09:36:58 pm

www.mediafire.com

 
Settings
Code Snippet
Plaintext
set_zombie_var( "hazmat_first_round",            2 );
set_zombie_var( "hazmat_rnd_max",            2 );
set_zombie_var( "hazmat_rnd_min",            1 );
set_zombie_var( "hazmat_health_multiplier",        4 );
set_zombie_var( "hazmat_can_monkey_taunt",            true );
set_zombie_var( "hazmat_wonder_weapon",                 500 );
set_zombie_var( "hazmat_kill_points",                250 );
These variables can be modified:
hazmat_first_round --> First round of spawn
hazmat_rnd_max --> Max spawn interval
hazmat_rnd_min --> Minimum spawn interval
hazmat_health_multiplier --> Multiplies the health of a normal zombie
hazmat_can_monkey_taunt --> Allows the boss to follow the monkey_bolt
hazmat_wonder_weapon --> Damage taken by wonder weapons
hazmat_kill_points --> Points you give when you die

How to install
You need to download the latest version of the utility file: shippuden_utility.gsc
 
The latest version will always be in the following folder:
www.mediafire.com

 


 1.-In your _zombiemode.gsc below:
Code Snippet
Plaintext
maps\_zombiemode_weapon_box::init();
Add this:
Code Snippet
Plaintext
maps\_zombiemode_ai_hazmat::init();
find this function: round_spawning() inside the function look for these lines:
Code Snippet
Plaintext
ai = spawn_zombie( spawn_point ); 
        if( IsDefined( ai ) )
        {
            level.zombie_total--;
            ai thread round_spawn_failsafe();
            count++;
        }
Note: If you are already using a boss of mine just skip to step 3
 
2.-Replace them with these
Code Snippet
Plaintext
//Bosses Spawn
            ai = undefined;

            //Add Custom Bosses

            if( !IsDefined( ai ) )
            {
                    ai = maps\_zombiemode_ai_hazmat::can_spawn_hazmat();
            }

            //Normal Spawn
            if ( !IsDefined(ai) )
            {
                    ai = spawn_zombie( spawn_point );
            }

            if( IsDefined( ai ) )
            {
                    level.zombie_total--;
                    ai thread round_spawn_failsafe();
                    count++;
            }
3.-Add these lines:
Code Snippet
Plaintext
if( !IsDefined( ai ) )
            {
                    ai = maps\_zombiemode_ai_hazmat::can_spawn_hazmat();
            }
above the line:
Code Snippet
Plaintext
//Normal Spawn
Note: This spawn mode is brand new, some of my bosses don't install like this. Very soon I will bring an update for everyone else.
 
4.-In your generic_human.atr search this:
Code Snippet
Plaintext
body
{
And below add this:
Code Snippet
Plaintext
ai_hazmat_sprint
Note. Remember to check that you do not already have xanims added
 
5.-Add this to your mod.csv
Code Snippet
Plaintext
include,ai_zombie_hazmat
6.-Add the sound.txt in your sounds
 
 
Bosses that work with the new spawn system:
 
Panzer Soldat from BO3 (https://www.ugx-mods.com/forum/models/125/panzer-soldat-v1-5-bo3-version/23087/)
Hazmat from COD Online (https://www.ugx-mods.com/forum/models/125/hazmat-from-cod-online/23803/)
Slasher from Rave in the Redwoods (https://www.ugx-mods.com/forum/models/125/slasher-from-rave-in-the-redwoods/23775/)
Napalm (https://www.ugx-mods.com/forum/models/125/napalm-zombie-v1-1/21101/)