Hello Guys And This Is My First Script Release On UGX-Mods
This Script Enables You To Have A Perk Bottle Easter Egg In Your Map With A Reward For All Perks In The Map
THIS IS SETUP TO WORK WITH HARRYS PERKS, HENSE WHY THERE ARE 13 BOTTLES IN THE SCRIPT. YOU CAN EDIT THIS TO WORK WITH LESS OR MORE PERK BOTTLES BY COPYING THE bottle_1 FUNCTION AND PASTING IT OVER AND OVER AGAIN BUT PLACE IT ABOVE THE All_bottles FUNCTION...
IN THE give_players_perks SCRIPT YOU NEED TO ADD HARRYS PERKS IN THIS SECTION:
perks[0] = "specialty_armorvest"; //Juggernog
perks[1] = "specialty_rof"; //Double tap
perks[2] = "specialty_fastreload";//speed cola
perks[3] = "specialty_detectexplosive";//PHD flopper
perks[4] = "specialty_bulletaccuracy";//deadshot
perks[5] = "specialty_extraammo";//mule kick
perks[6] = "specialty_longersprint";// staminup
//perks[7] = "speciality_whatever_perk";// IF YOU HAVE MORE PERKS YOU WANT TO ADD, THEN CHANGE "speciality_whatever_perk" TO THE STRING NAME OF THE PERK YOU WILL ADD. THEN CONTINUE LIKE THAT WHEN ADDING MORE PERKS. AND CHANGE THE NUMBER AT EVERY PERK YOU ADD LIKE. "perks[number]"
IT HOWS YOU HOW TO AD THEM EASILY, YOU SHOULDNT HAVE ANY TROUBLE
All You Have To Do Is Follow This Simple Tutorial :
SCRIPTING
Firstly Create A New .GSC And Name It: give_players_perks
Then Open This Link And Copy The Script Inside It To The New .GSC You Named: give_players_perks
http://paste.md-5.net/fibupanuwa.coffeeClick Save And Exit That Script Then Copy It Over To mods/nazi_zombie_YOURMAPNAME/maps
Then Open Your Map Name .GSC
After That Open This Link And Copy The Script Inside It To The Bottom Of Your Mapname .GSC
http://paste.md-5.net/giduxoxiso.avrasmOnce That Is Done, In The Same File Find:
/*--------------------
FUNCTION CALLS - POST _Load
----------------------*/
level.zone_manager_init_func = ::dlc3_zone_init;
level thread DLC3_threadCalls2();
Then Open This Link:
http://paste.md-5.net/jucafonaqa.avrasmAnd Copy The Script Inside It Directly Underneath:
level thread DLC3_threadCalls2();
So It Should Look Like This:
/*--------------------
FUNCTION CALLS - POST _Load
----------------------*/
level.zone_manager_init_func = ::dlc3_zone_init;
level thread DLC3_threadCalls2();
level thread Bottle_1();
level thread Bottle_2();
level thread Bottle_3();
level thread Bottle_4();
level thread Bottle_5();
level thread Bottle_6();
level thread Bottle_7();
level thread Bottle_8();
level thread Bottle_9();
level thread Bottle_10();
level thread Bottle_11();
level thread Bottle_12();
level thread Bottle_13();
level.BottlesDamaged = 0;
RADIANT
Now All That's Left To Do Is Place The Perk Bottle Models You Want With A Damage Trigger
Open Radiant And Load Up Your Map
Then Once Your Map Has Loaded In Radiant Right Click And Select Misc/Model And Select The Perk Bottle You Want To Use, Then Place The Model Where You Want It Then Add A Trigger/Damage And Place It Over The Perk Bottle Model And Give The Trigger These KVPs:
targetname : bottle_1
( YOU CAN COPY AND PASTE THE PERK BOTTLE MODEL AND TIRGGER AND JUST REPLACE THE bottle_1 KVP With bottle_2 OR bottle_3 OR WHATEVER NUMBER YOU LIKE )
And Then Your Done
Click Save And Exit Then Compile Your Map And Build Mod With The Two Files That We Edited Selected
Load Your map And Test!
CREDIT ME IF YOU USE THIS