{F42024}
INCLUDES:
A set of 10 different prefabs are set up in the download ( if you need more, copy paste the trap “H” prefab of the type you want, open it in a text editor, and search and replace “trap_a” with “trap_whatever” )
Download: Everything You Need
Instructions
Scripting:
mapname.gsc
#using scripts\zm\_zm_perk_staminup;
add this underneath:
// Traps
#using scripts\zm\_zm_trap_electric;
#using scripts\zm\_zm_trap_fire;
#using scripts\zm\_hb21_sym_zm_trap_turret;
#using scripts\zm\_hb21_zm_trap_flogger;
#using scripts\zm\_hb21_zm_trap_centrifuge;
#using scripts\zm\_hb21_zm_trap_flinger;
#using scripts\zm\_hb21_sym_zm_trap_chain;
#using scripts\zm\_hb21_sym_zm_trap_fan;
#using scripts\zm\_hb21_sym_zm_trap_acid;
#using scripts\zm\_hb21_sym_zm_trap_gate;
mapname.csc
#using scripts\zm\_zm_perk_staminup;
add this underneath:
// Traps
#using scripts\zm\_zm_trap_electric;
#using scripts\zm\_zm_trap_fire;
#using scripts\zm\_hb21_zm_trap_centrifuge;
#using scripts\zm\_hb21_sym_zm_trap_fan;
#using scripts\zm\_hb21_sym_zm_trap_acid;
Zone:
mapname.zone
( you can right click your map in launcher and click Open Zone File
)include,hb21_traps
Setting up the Sounds:
root/usermaps/YOUR_MAP/sound/zoneconfig/
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:
map_source/_prefabs/zm/harrybo21_prefabs/traps
IMPORTANT: If you place for example a
electric trap A
you must not “also” place afire trap A
- only one of each may exist
NOTE: If you need more than 10 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!
Additional KVPs
If you want to change a traps price, select the prefab and add this KVP ( change the cost to whatever you like )
zombie_cost - 5000
If you want to make sure a trap cannot be used until a door is opened, select the prefab and add this KVP ( replace with the script_flag from your door trigger )
script_flag_wait - activate_zone_1
If you are using local power switches, select the prefab and add this KVP ( change to the appropriate power zone number )
script_int - 0
Contributors: