UGX-Mods

Call of Duty: Black Ops 1 => Downloadable Items for Mappers => Custom Maps, Mods & Tools => Models => Topic started by: shippuden1592 on March 19, 2023, 01:25:42 am

Title: Slasher from Rave in the Redwoods [New Spawn System]
Post by: shippuden1592 on March 19, 2023, 01:25:42 am

www.mediafire.com

 
Credits:
shippuden1592 ---> Script & fx´s
Lightning ---> models & xanims

 
Settings
Code Snippet
Plaintext
set_zombie_var( "slasher_first_round",            1 );
set_zombie_var( "slasher_rnd_max",            4 );
set_zombie_var( "slasher_rnd_min",            3 );
set_zombie_var( "slasher_health_multiplier",        8 );      
set_zombie_var( "slasher_can_monkey_taunt",            true );      
set_zombie_var( "slasher_wonder_weapon",                 500 );    
set_zombie_var( "slasher_kill_points",                500 );
These variables can be modified:
slasher_first_round --> First round of spawn
slasher_rnd_max --> Max spawn interval
slasher_rnd_min --> Minimum spawn interval
slasher_health_multiplier --> Multiplies the health of a normal zombie
slasher_can_monkey_taunt --> Allows the boss to follow the monkey_bolt
slasher_wonder_weapon --> Damage taken by wonder weapons
slasher_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

 
Inside the file you will see a function called: Is_Boss( zombie )
Code Snippet
Plaintext
Is_Boss(zombie)
{
    if( IsDefined( zombie.is_hazmat ) && zombie.is_hazmat )
        return true;

    switch(zombie.animname)
    {
        case "megaton_zombie":
        case "radz_left_zombie":
        case "radz_right_zombie":
        case "mech_zombie":
            return true;
        default:
            return false;
    }
}
Add the animname of your special zombie if you are using one of mine. In the case of the slasher it would be:
Code Snippet
Plaintext
case "slasher_zombie":

 
 1.-In your _zombiemode.gsc below:
Code Snippet
Plaintext
maps\_zombiemode_weapon_box::init();
Add this:
Code Snippet
Plaintext
maps\_zombiemode_ai_slasher::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_slasher::can_spawn_slasher();
        }

        //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_slasher::can_spawn_slasher();
        }
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_zombie_slasher_death
    ai_zombie_slasher_idle
    ai_zombie_slasher_ram_attack_in
    ai_zombie_slasher_ram_attack_loop
    ai_zombie_slasher_ram_attack_out
    ai_zombie_slasher_spin_attack_01
    ai_zombie_slasher_spin_attack_02
    ai_zombie_slasher_taunt_01
    ai_zombie_slasher_taunt_02
    ai_zombie_slasher_throw
    ai_zombie_slasher_turn45L
    ai_zombie_slasher_turn45R
    ai_zombie_slasher_turn90L
    ai_zombie_slasher_turn90R
    ai_zombie_slasher_turn135L
    ai_zombie_slasher_turn135R
    ai_zombie_slasher_turn180L
    ai_zombie_slasher_turn180R
    ai_zombie_slasher_walk
    ai_zombie_slasher_wall_drop
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_slasher

 
 
 

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/)