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 600 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 on 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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          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