top of page

Multiple Power Switches

This guide will show you how to implement multiple power switches, such as in Shangri-La, where there are two power switches that must be both flipped in order to turn on the power.


This will not cover local power, for learning how to do that, click HERE (COMING SOON).

 

DOWNLOAD


Download the following folder and place all of the contents within your root directory.


 

RADIANT


Open up your PREFAB_BROWSER and look for "logical/power/multi_power_switch.map".


Place as many as these as you'd like throughout your map.

 

SCRIPT


Open your mapname.gsc located in "Call of Duty Black Ops III\usermaps\zm_mapname\scripts\zm" and find the following line:

#using scripts\zm\zm_usermap;

Next, paste in the following underneath that:

//Multi Power
#using scripts\zm\logical\logical_multi_power;

Open your mapname.zone located in "Call of Duty Black Ops III\usermaps\zm_mapname\zone" and paste in the following near the others that look similar to it:

//Multi Power
scriptparsetree,scripts/zm/logical/logical_multi_power.gsc
 

SOUNDS


If you would like to add that extra bit of *pizzazz* into your map, you'll need to add some sounds.


Open up logical_multi_power.gsc located in "Call of Duty Black Ops III\share\raw\scripts\zm\logical" and find the following defines:

#define POWER_SWITCH_FLIP_SOUND     ""  // Sound that plays when a singular Switch is flipped
#define FULL_POWER_ON_SOUND         ""  // Sound that plays when all Switches are flipped

Within these quotation marks you may add your own sounds that are setup properly within an alias. If you don't know how to do that, follow the guide HERE.

 

OPTIONAL


I have included a "Power Switch Flip Sound" and a "Full Power On Sound", just incase you don't have any sounds. This is completely optional, but here is how to set up the sounds I've provided: First, replace those defines we found before inside of logical_multi_power.gsc with these:

#define POWER_SWITCH_FLIP_SOUND     "logical_multi_power_switch"  // Sound that plays when a singular Switch is flipped
#define FULL_POWER_ON_SOUND         "logical_multi_power_on"  // Sound that plays when all Switches are flipped

Next, open up your mapname.szc found within "Call of Duty Black Ops III\usermaps\zm_mapname\sound\zoneconfig" and find the following:

{
	"Type" : "ALIAS",
	"Name" : "user_aliases",
	"Filename" : "user_aliases.csv",
	"Specs" : [ ] 
},

Underneath that, paste the following:

{
	"Type" : "ALIAS",
	"Name" : "logical_multi_power_switches",
	"Filename" : "logical_multi_power_switches.csv",
	"Specs" : [ ] 
},

It should look like this:

{
	"Type" : "ALIAS",
	"Name" : "user_aliases",
	"Filename" : "user_aliases.csv",
	"Specs" : [ ] 
},
{
	"Type" : "ALIAS",
	"Name" : "logical_multi_power_switches",
	"Filename" : "logical_multi_power_switches.csv",
	"Specs" : [ ] 
},

That's it! Make sure to Compile & Link your map!

 

CREDITS


If you happen to use this script, make sure to credit Logical for the scripting!

0 comments

Related Posts

See All

ZM Stats

NOTE This is a comprehensive list of all stats that are tracked in zombies. These are the variables that go within the quotations when...

Avoiding Power Lag

NOTE Using these in your maps will avoid the lag players experience for a few seconds after turning on the power. The lag is caused...

Shi No Numa Styled Random Perk Locations

NOTE This tutorial and script were made by ZombieKid164 & HarryBo21. All credits go to them. Shi No Numa styled means that once you open...

Comments


bottom of page