Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. Zombie blood script

Zombie blood script

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
4 Posts 3 Posters 210 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Pinguim1214undefined Offline
    Pinguim1214undefined Offline
    Pinguim1214
    wrote on last edited by
    #1

    Could anyone help me with a script to spawn power ups?

    siderealundefined 1 Reply Last reply
    0
    • Resxtundefined Offline
      Resxtundefined Offline
      Resxt
      Plutonium Staff
      wrote on last edited by
      #2

      Not sure what you mean? This?
      https://github.com/plutoniummod/t6-scripts/blob/main/ZM/Core/maps/mp/zombies/_zm_powerups.gsc#L545C1-L545C22

      Pinguim1214undefined 1 Reply Last reply
      0
      • Resxtundefined Resxt

        Not sure what you mean? This?
        https://github.com/plutoniummod/t6-scripts/blob/main/ZM/Core/maps/mp/zombies/_zm_powerups.gsc#L545C1-L545C22

        Pinguim1214undefined Offline
        Pinguim1214undefined Offline
        Pinguim1214
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • Pinguim1214undefined Pinguim1214

          Could anyone help me with a script to spawn power ups?

          siderealundefined Offline
          siderealundefined Offline
          sidereal
          wrote last edited by
          #4

          Pinguim1214 This script can spawn power-ups.
          Original forum post: https://forum.plutonium.pw/topic/43288/zm-script-that-creates-command-to-give-money-and-powerups

          And here is the script that only spawns Zombie Blood:
          rute:
          .\AppData\Local\Plutonium\storage\t6\scripts\zm\zm_tomb

          script code:

          // main_powerups.gsc - command for spawnear powerups for Plutonium T6 Zombies
          // it is only working in the console command. :
          // /zombie_blood -> zombie_blood

          main()
          {
          level thread onPlayerConnect();
          }

          onPlayerConnect()
          {
          for (;;)
          {
          level waittill("connected", player);
          player thread powerupConsoleCommands();
          }
          }

          //////////////////////////
          // give powwr up
          //////////////////////////
          powerupConsoleCommands()
          {
          // Register the console command
          self notifyOnPlayerCommand("ev_zombie_blood", "zombie_blood");

          // thread for the command
          self thread cmd_zombie_blood();
          

          }

          //////////////////////////
          //------------- helpers for powerups ------------//
          //////////////////////////
          GivePowerUp(powerup_name)
          {
          if (!isDefined(level.zombie_include_powerups) || !(level.zombie_include_powerups.size > 0))
          {
          self iprintln("^1Powerups not suported for this map.");
          }
          else
          {
          level.powerup_drop_count = 0;
          powerup = level maps\mp\zombies_zm_powerups::specific_powerup_drop(powerup_name, self.origin);
          powerup thread maps\mp\zombies_zm_powerups::powerup_timeout();
          self iprintln("^2Powerup ^7" + powerup_name + " ^2spawned.");
          }
          }

          //////////////////////////
          //------------- simple command ----------//
          //////////////////////////
          cmd_zombie_blood()
          {
          for (;;)
          {
          self waittill("ev_zombie_blood");
          self GivePowerUp("zombie_blood");
          }
          }

          1 Reply Last reply
          1
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Donate