BYZMODZ
Buildable Power Switch
DESCRIPTION:A power switch that must be built to use much like tranzit zombies power system.
https://www.youtube.com/watch?v=zkQ6M1FxjPIDOWNLOAD: http://www.mediafire.com/file/jiorj6p22540d2z/BYZMODZ+BUILDABLE+POWER+SWITCH+%28GAME-GURU%29.rarSTEP 1: Copy all folders from the archive you just extracted,
to (Game-Guru/files/).
STEP 2: This requires my power system,
however when adding power system
do not add the power switch included
ignore that instruction.
power system download & instructions
can be found here:
http://byzmodz.createaforum.com/scripts/(byzmodz)-switch-power-system/STEP 3: Add an entity to be your workbench
& place it where you want player to build power switch
then open it's entity properties & make sure the following
adjustments are made:
main = byzmodz\byzmodz_buildable_power_switch_utilities.lua
static mode = no
isimmobile = yes
always active = yes
sound0 = audiobank\byzmodz\vox\maxis\1_of_3_parts_built.wav
sound1 = audiobank\byzmodz\vox\maxis\last_part_picked_up.wav
sound2 = audiobank\byzmodz\vox\maxis\task_completed_sound.wav
STEP 4: Open Your level & add the included power switch entity,
then open entity properties for power switch
& make sure the following adjustments are made:
main = byzmodz\byzmodz_buildable_power_switch_built.lua
static mode = no
spawn at start = no
isimmobile = yes
always active = yes
sound0 = audiobank\byzmodz\misc\byz_switch2.wav
Now apply properties and place entity
where you want it to appear when built.
(NOTE: I recommend you keep it near work bench, you don't have to i just think it looks nicer seeing parts appear as built)
STEP 5: Now add the parts that will appear as they are built.
first add the handle entity and give it the following properties :
main = byzmodz\byzmodz_buildable_power_switch_built_handle.lua
isimmobile = yes
always active = yes
spawn at start = no
sound0 = audiobank\byzmodz\mystery_box\poof.wav
second add the panel entity and give it the following properties :
main = byzmodz\byzmodz_buildable_power_switch_built_panel.lua
isimmobile = yes
always active = yes
spawn at start = no
sound0 = audiobank\byzmodz\mystery_box\poof.wav
third add a entity you want to be the light
and give it the following properties :
main = byzmodz\byzmodz_buildable_power_switch_built_light.lua
isimmobile = yes
always active = yes
spawn at start = no
sound0 = audiobank\byzmodz\mystery_box\poof.wav
Now take all 3 parts and place them
all exactly overlapping the power switch
entity you added, or as close as you can get.
(NOTE: press b to enter snap mode it will be alot easier to place built parts)
STEP 6: Now add the parts that player will find & pickup.
first add the handle entity and give it the following properties :
main = byzmodz\byzmodz_buildable_power_switch_pickup_handle.lua
static mode = no
always active = no
sound0 = audiobank\byzmodz\mystery_box\poof.wav
second add the panel entity and give it the following properties :
main = byzmodz\byzmodz_buildable_power_switch_pickup_panel.lua
static mode = no
always active = no
sound0 = audiobank\byzmodz\mystery_box\poof.wav
third add a entity you chose to be the light
and give it the following properties :
main = byzmodz\byzmodz_buildable_power_switch_pickup_light.lua
static mode = no
always active = no
sound0 = audiobank\byzmodz\mystery_box\poof.wav
STEP 7: Now add 3 trigger zones, these will be the build zones
give the one zone the following properties :
main = byzmodz\byzmodz_buildable_power_switch_buildzone_h.lua
sound0 = audiobank\byzmodz\misc\byz_build_loop.wav
give the another zone the following properties :
main = byzmodz\byzmodz_buildable_power_switch_buildzone_p.lua
sound0 = audiobank\byzmodz\misc\byz_build_loop.wav
give the another zone the following properties :
main = byzmodz\byzmodz_buildable_power_switch_buildzone_l.lua
sound0 = audiobank\byzmodz\misc\byz_build_loop.wav
That's it, thank you for using my codes, please credit me, & Happy Developing!
NOTE: For entity you chose or choose as the light part,
I recommend you buy/use the jforth designs one on gameguru store
as that is what the shader for that part is designed to look like,
however should you wanna use a different entity for the light,
i will include instructions to create part shader below.
(Be sure if you make part shader for light entity to keep the same name as light shader included and to place in same location)HOW TO MAKE PART SHADER:(NOTE: This method uses paint.net which is available to download here: http://www.getpaint.net/download.html) - add entity you want to make shader for into editor
then align you view over entity and press 'print screen'
key on your keyboard, Now open paint .net and press 'ctrl + v'
keys on your keyboard, then when it asks you choose expand canvas size.
Now click on rectangle select tool and select a square around the part
and press 'ctrl + shift + x' and that will crop it down to size, now
use eraser or magic wand if your able to and erase to background so
it's just the part entity showing in the image, now to give it the
same look as the other part shaders click on adjustments at the top
and click sepia, now resize image to 64 x 64 and make sure part is
centered in the image, then save as .png