Advertisement
sharpgamers4you

Spawn a boss zombie in bo3 mod tools.

Jan 22nd, 2023
733
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. You will need a few things to get this boss zombie to spawn.
  2. It can be an actor and you can even duplicate the zombie in ape and customize it to stand out from the rest.
  3.  
  4. first of all, we need the actor spawn name, this can be found by opening radiant and then selecting a zombie actor.
  5. now hit "N" to open the entity editor and at the top, it says "Remap" click on the remap button and type what zombie you want to make a boss zombie.
  6. whatever is in that box is the name we need.
  7.  
  8.  
  9. First, open radiant and drop in at least 1 script struct.
  10. Give it a target name of "boss_spawn"
  11. That's all in radiant, you can duplicate the structs as many as you wish.
  12.  
  13. Now you will need to open your map name's GSC script file.
  14. Usually, that's c:\SteamLibrary\steamapps\common\Call of Duty Black Ops III\usermaps\yourmapname\scripts\yourmapname.GSC.
  15.  
  16. paste the following under your last #using
  17.  
  18. #using scripts\shared\spawner_shared;
  19.  
  20.  
  21. paste the following under "zm_usermap::main();"
  22.  
  23. Code:
  24. //sg4y's boss boss zombie tutorial,
  25. thread spawn_boss_zombie();
  26.  
  27. now paste the following to the bottom of the script.
  28.  
  29.  
  30. function spawn_boss_zombie()
  31. {
  32.  
  33. while(1)
  34. {
  35. level waittill( "dog_round_starting" ); // this will spawn in the boss everytime the dog rounds are starting.
  36. //level flag::wait_till( "power_on" ); // this will spawn in the boss everytime the power goes on.
  37. //level waittill( "your custom notify" ); //this will spawn the boss everytime your level notify goes on.
  38.  
  39. // you can only select 1, you can enable more flags/notifies, but i would only use 1 at a time.
  40.  
  41. x_structs = struct::get_array( "boss_spawn", "targetname" );
  42.  
  43. foreach( x_struct in x_structs )
  44. {
  45. x_struct thread xtra_zombie( );
  46. //x_struct PlaySound( "YOUR AUDIO!" );
  47. }
  48. wait .5;
  49. }
  50.  
  51. }
  52.  
  53.  
  54. function xtra_zombie( )
  55. {
  56. n_players = getplayers();//recommended by frost997
  57. n_players = n_players.size;
  58. boss_num = 0;
  59. health_func = 9000*level.round_number*n_players; // this is the health, it will increace by player size and round number the base health is set to 9000
  60.  
  61.  
  62. boss_zombie = SpawnActor("actor_spawner_zm_templar_boss_zombie", self.origin, self.angles, "", true, true); // change "actor_spawner_zm_templar_boss_zombie" to your actor spawner name.
  63. boss_zombie zm_spawner::zombie_spawn_init( undefined );
  64. boss_zombie._rise_spot = self;
  65. boss_zombie.is_boss = 1;
  66. boss_zombie.gibbed = 0; // change it to 1 if you don't want crawlers
  67. boss_zombie.health = health_func;
  68. boss_zombie.in_the_ground = 1; // set it to 0 if you want him to just pop in like cod waw.
  69. boss_zombie.ignore_enemy_count = 1; // the round will end if you killed all regular zombies.
  70. boss_zombie.ignore_nuke = 1; // the boss will be ignored to a nuke power drop.
  71. boss_zombie.no_powerups = 1; // the boss zombie will drop no power drops.
  72. boss_zombie.no_damage_points = 1; // players gets no damage points from the boss.
  73. boss_zombie.deathpoints_already_given = 1; // players will not get points for killing the boss zombie.
  74. boss_zombie.instakill_func = &lednors_boss_Damage;
  75. boss_zombie.script_string = "find_flesh"; // this means that the boss needs to be in playable area so not behind a window.
  76. boss_zombie zm_spawner::do_zombie_spawn();
  77.  
  78. }
  79. function lednors_boss_Damage(player, mod, hit_location, damage)
  80. {
  81. return true; //ignore insta kill
  82. }
  83. I added a few comments to know what it will affect and such. the code above was edited by Mr.Lednor and is working as of 17/11/22 any more issues plz let us know on discord
  84.  
  85. Keep in mind that you will need your zombie actor on your map so it will spawn the boss,
  86. make sure to clear the script_noteworthy so it does not spawn in rounds like regular zombies.
  87.  
  88. I also made a detailed tutorial video, I definitely suggest watching the video while installing this script so
  89. it's easier to understand what does what and where to do/change or add stuff.
  90.  
  91. https://youtu.be/xWID08-t4pM
  92.  
  93.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement