Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

  1. Home
  2. BO1 Modding Releases & Resources
  3. [Release] [Zombies] Set Mystery Box Hits Before Teddy

[Release] [Zombies] Set Mystery Box Hits Before Teddy

Scheduled Pinned Locked Moved BO1 Modding Releases & Resources
2 Posts 1 Posters 1.1k 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.
  • Duckyhubundefined Offline
    Duckyhubundefined Offline
    Duckyhub
    wrote on last edited by
    #1

    This script allows you to set the amount of times the box can be used before getting a teddy bear that moves the box. If you set it high it will basically just be a permanent box location but I would not recommend that because you might get a shitty box location. I'm working on a way to set up the first box spawn location for each map so that will release soon if I can get that working.

    Here is the code. Put this in AppData\Local\Plutonium\storage\t5\scripts\sp\zom

    #include maps\_utility;
    #include common_scripts\utility;
    #include maps\_zombiemode_utility;
    
    init()
    {
    	if( GetDvar( #"zombiemode" ) == "1" )
    		level thread onPlayerConnect();
    }
    
    onPlayerConnect()
    {
    	level endon("end_game");
    	for (;;)
    	{
    		level waittill("connected", player);
    		player thread onPlayerSpawned();
    	}
    }
    
    onPlayerSpawned()
    {
    	self endon("disconnect");
    	self waittill("spawned_player");
    	level thread boxhits();
            wait 6;
            self iprintln("^1Box Hits Set to: ^4" +level.chest_min_move_usage);
    }
    
    boxhits()
    {
    	if(!isdefined(level.chest_min_move_usage))
    	{
    		level.chest_min_move_usage = 10; //change number to whatever you want.
    	}
    	if(level.chest_accessed < level.chest_min_move_usage)
    	{
    		chance_of_joker = -1;
    	}
    	else
    	{
    		chance_of_joker = 100; //change this to -1 if you want a permanent box 
    	}
    }
    
    Duckyhubundefined 1 Reply Last reply
    1
    • Duckyhubundefined Duckyhub

      This script allows you to set the amount of times the box can be used before getting a teddy bear that moves the box. If you set it high it will basically just be a permanent box location but I would not recommend that because you might get a shitty box location. I'm working on a way to set up the first box spawn location for each map so that will release soon if I can get that working.

      Here is the code. Put this in AppData\Local\Plutonium\storage\t5\scripts\sp\zom

      #include maps\_utility;
      #include common_scripts\utility;
      #include maps\_zombiemode_utility;
      
      init()
      {
      	if( GetDvar( #"zombiemode" ) == "1" )
      		level thread onPlayerConnect();
      }
      
      onPlayerConnect()
      {
      	level endon("end_game");
      	for (;;)
      	{
      		level waittill("connected", player);
      		player thread onPlayerSpawned();
      	}
      }
      
      onPlayerSpawned()
      {
      	self endon("disconnect");
      	self waittill("spawned_player");
      	level thread boxhits();
              wait 6;
              self iprintln("^1Box Hits Set to: ^4" +level.chest_min_move_usage);
      }
      
      boxhits()
      {
      	if(!isdefined(level.chest_min_move_usage))
      	{
      		level.chest_min_move_usage = 10; //change number to whatever you want.
      	}
      	if(level.chest_accessed < level.chest_min_move_usage)
      	{
      		chance_of_joker = -1;
      	}
      	else
      	{
      		chance_of_joker = 100; //change this to -1 if you want a permanent box 
      	}
      }
      
      Duckyhubundefined Offline
      Duckyhubundefined Offline
      Duckyhub
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0

      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
      • Unread 0
      • Recent
      • Tags
      • Popular
      • Users
      • Groups