Warning: Place each switch prefab into the map otherwise crashes will occur.
Installation
Instructions
Step 1: Go into mods/your_mod/maps folder and open mapname.gsc. Find maps\_zombiemode::main(); ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Step 2: Directly under maps\_zombiemode::main(); put:
Code Snippet
Plaintext
maps\perk_switches::switch_defines();
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Step 3: Drag file included inside this rar (mods/your_modname/maps/perk_switches.gsc) into your own mod's "maps" folder. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Step 4: Go into maps/dlc3_code.gsc and find "clientnotify( "revive_on" );" (Copy this file from raw/maps if it isn't already in your mod. DO NOT EDIT INSIDE OF RAW.) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Step 5: Delete all of the following. MAKE SURE TO LEAVE 'flag_set( "electricity_on" );'
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Step 6: Drag map_source into your waw root folder. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Step 7: Place the Power switch prefabs from map_source/_prefabs/numanswitches into your map. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Step 8: Inside of launcher, when building your mod, make sure to tick "perk_switches.gsc" inside of the IWD List
Configuration
Inside of perks_switches.gsc You will find All of the Different Prices and Hintstrings. You can edit these however you wish. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- trig_qr Quick Revive trig_rof Double Tap trig_jugg Juggernog trig_sleight Speed Cola trig_pap Pack a Punch ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Price =
Code Snippet
Plaintext
cost = 250;
Hintstring =
Code Snippet
Plaintext
spec_hint = "Press and Hold ^3&&1 ^9to Activate Quick Revive [Cost: 250]";
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do Not Edit anything else
Last Edit: December 16, 2020, 04:22:07 pm by Numan
I think it works for BO1 too, if you change the code a little bit, I commented out enough lines that pointed to bad syntax, and it worked in the game, when the switch was activated, the desired perk turned on, there were just no sounds, and also the spark effect, can you adjust for bo1, please?
I think it works for BO1 too, if you change the code a little bit, I commented out enough lines that pointed to bad syntax, and it worked in the game, when the switch was activated, the desired perk turned on, there were just no sounds, and also the spark effect, can you adjust for bo1, please?
Last Edit: December 28, 2023, 11:49:46 pm by Дмитрий78