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

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. [Release] Give A Powerup On Certain Round Start

[Release] Give A Powerup On Certain Round Start

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
2 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Ashton Biehlundefined Offline
    Ashton Biehlundefined Offline
    Ashton Biehl
    wrote on last edited by Emosewaj
    #1

    Put this under onPlayerSpawned()

    self thread certainroundexample(); // you can change this to your liking its my example
    

    Then put this anywhere in your script

    certainroundexample()
    {
    	if(level.round_number >= 1) // You can change the rounds you want it to give the power up
            {
            	foreach(player in level.players)
            {
                    level thread maps\mp\zombies\_zm_powerups::double_points_powerup(self,player);
                    player thread maps\mp\zombies\_zm_powerups::powerup_vo("double_points");
            }
            }
    }
    

    If you want it on more than 1 certain round add this code instead of the top one

    certainroundex()
    {
    	if(level.round_number >= 1)
            {
            	foreach(player in level.players)
            {
                    level thread maps\mp\zombies\_zm_powerups::double_points_powerup(self,player);
                    player thread maps\mp\zombies\_zm_powerups::powerup_vo("double_points");
            }
            }
    	else if(level.round_number >= 5)
    	{
    		level thread maps\mp\zombies\_zm_powerups::double_points_powerup(self,player);
                    player thread maps\mp\zombies\_zm_powerups::powerup_vo("double_points");
    	}
    }
    

    and you can keep adding the "else if" to keep on adding powerups on certain rounds.
    this has been tested and it works

    If you have any questions add my discord: Ashton Biehl#6969

    1 Reply Last reply
    1
    • samsth957undefined Offline
      samsth957undefined Offline
      samsth957
      wrote on last edited by samsth957
      #2

      Thank you.

      1 Reply Last reply
      0

      • Login

      • Don't have an account? Register

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