Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
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 787 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.
  • 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 Offline
      Duckyhubundefined Offline
      Duckyhub
      replied to Duckyhub on last edited by
      #2
      This post is deleted!
      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