Left 4 Dead 2

Left 4 Dead 2

Shootable electrical boxes
Nescius  [developer] 24 Mar, 2023 @ 1:57pm
Making the addon compatible with custom campaign
If you are a map maker and want electrical boxes in your campaign while having this addon it's relatively simple. You'll need to make folder "electrical_boxes" in a scripts/vscripts and add a .nut files named for each chapter
<map_name_here>_d_electric_boxes.nut

Example: If your map is named g_drains.bsp the script name should be "g_drains_d_electrical_boxes.nut"

The script needs to contain information about electrical boxes prop_statics in your map.
Example how the script should look:
::electric_boxes <- [ { model = "models/props/de_nuke/electricalbox01.mdl" angles = Vector(0,0,0) rendercolor = Vector(255,255,255) skin = 0 origin = Vector(1056,4160,-8) } { model = "models/props/de_nuke/electricalbox02.mdl" angles = Vector(0,0,0) rendercolor = Vector(255,255,255) skin = 0 origin = Vector(1352,4576,32) } { model = "models/props/de_nuke/electricalbox01.mdl" angles = Vector(0,0,0) rendercolor = Vector(255,255,255) skin = 0 origin = Vector(-384,2279,0.002) } ]

Note: skin and rendercolor are unused but they need to be specified in the current version or the script would cause error.

These are the supported electrical boxes models: (don't use any other ones)
"models/props_street/electrical_box01.mdl" "models/props_street/electrical_box02.mdl" "models/props_fairgrounds/fairgrounds_electric_box001.mdl" "models/props/de_nuke/electricalbox01.mdl" "models/props/de_nuke/electricalbox02.mdl"

If you are by any chance planning to add this to your campaign let me know here. There's a chance I'll change some minor details in future update
Last edited by Nescius; 24 Mar, 2023 @ 2:16pm
< >
Showing 1-2 of 2 comments
jimy l4d 28 Mar, 2023 @ 4:11am 
haha .nut file
Baz 28 Mar, 2023 @ 8:00am 
Deez nuts
< >
Showing 1-2 of 2 comments
Per page: 1530 50