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

Plutonium

siderealundefined

sidereal

@sidereal
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
10
Following
9

Posts

Recent Best Controversial

  • Zombie blood script
    siderealundefined sidereal

    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");
    }
    }

    BO2 Modding Support & Discussion
  • 1 / 1
  • Login

  • Don't have an account? Register

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