Setting up traps
Updated 10 Days AgoPublic

Download: Everything You Need

Instructions

Download the files and extract them into your root directory ( Root directory is your Black Ops 3 install )

Scripting:

Open your mapname.gsc and mapname.csc

find this line :

#using scripts\zm\_zm_perk_staminup;

add this underneath :

// Traps
#using scripts\zm\_zm_trap_electric;
#using scripts\zm\_zm_trap_fire;

Open YOURMAPNAME.gsc

find this line

function main()

above it place this :

// Trap
#precache( "fx", "zombie/fx_elec_player_md_zmb" );
#precache( "fx", "zombie/fx_elec_player_sm_zmb" );
#precache( "fx", "zombie/fx_elec_player_torso_zmb" );

add these function to the bottom of the script

function precache_fx()
{
    	level._effect[ "elec_torso" ] 	= "zombie/fx_elec_player_torso_zmb";
	level._effect[ "elec_md" ] 	= "zombie/fx_elec_player_md_zmb";
	level._effect[ "elec_sm" ] 		= "zombie/fx_elec_player_sm_zmb";
}

find this line

zm_usermaps::main();

add this underneath :

//FX
precache_fx();

Open YOURMAPNAME.csc

find this line

function main()

above it place this :

// Trap
#precache( "client_fx", "dlc0/factory/fx_elec_trap_factory" );
#precache( "client_fx", "harry/fire_trap/fx_fire_trap_med_loop" );

add these function to the bottom of the script

function precache_fx()
{
    	level._effect[ "zapper" ]	= "dlc0/factory/fx_elec_trap_factory";
	level._effect[ "fire_trap" ]	= "harry/fire_trap/fx_fire_trap_med_loop";
}

find this line

zm_usermaps::main();

add this underneath :

//FX
precache_fx();

Zone:

Open your mapname.zone ( you can right click your map in launcher and click Open Zone File

At the bottom paste this

scriptparsetree,scripts/zm/_zm_trap_fire.gsc
scriptparsetree,scripts/zm/_zm_trap_fire.csc
scriptparsetree,scripts/zm/_zm_trap_electric.gsc
scriptparsetree,scripts/zm/_zm_trap_electric.csc
fx,harry/fire_trap/fx_fire_trap_med_loop.efx

Setting up the Sounds:

Go to root/usermaps/YOUR_MAP/sound/zoneconfig/

You will find a SZC file with your maps name. Open this in any text editor

Find this section ( Be aware that the copy of the SZC we are originally given is horribly formatted )

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

Add this under it, its pretty much copy paste with the name and filename changed

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

Radiant:

Open your map in radiant

Place whichever traps you want to use

The prefabs are located at - map_source/_prefabs/zm/harrybo21_prefabs/traps

IMPORTANT: If you place for example a electric trap A you must not "also" place a fire trap A - only one of each may exist
IMPORTANT: If you need more than 3 traps, you can create more by modifying the KVPs on further traps

You are DONE

Ok, so assuming you've followed these steps exactly - you now just need to recompile your map and link in launcher. Now go test!

More to come:

  • Flogger
  • Flinger

Contributors
DTZxPorter
ZeRoY
SethNorris
Harry Bo21

Last Author
Harry_Bo21
Projects
None
Subscribers
None