So i was planning on making a map that is going to be built in a ridiculous amount (Possible 1 hour and 15 minutes) of time so i wanted to gather some info before i start the timer. so how would i make a simple ee where you just find 3 perk bottles and then you get all perks. just something really simple to add some sort of challenge or objective to the map. Any help would be awesome, thanks.
Put a script_model in radiant give it a targetname of something like "ee_cookies" In a script (load this in your map.gsc from around the main call) do this:
Code Snippet
Plaintext
init() { level.ee_cookies_shot = 0; bottles = GetEntArray("ee_cookies", "targetname"); array_thread(bottles, ::dankMemes); } dankMemes() { self SetCanDamage(true); self waittill("damage"); IPrintLnBold("I've been shot and I can't get up!"); level.ee_cookies_shot++; if(level.ee_cookies_shot == 3) //dankest memes doOtherDankness(); } doOtherDankness() { players = get_players(); for(i = 0;i < players.size; i++) players[i] setDankPerks(); } setDankPerks() { perk = []; perk[0] = "specialty_armorvest"; //iirc this is juggs perk name perk[1] = "specialty_dank"; //not actual perk name for(i = 0; i < perk.size; i++) { player SetPerk(perk[i]); player perk_hud_create( perk ); player.stats["perks"]++; player thread perk_think( perk ); } }
I didn't space it out because I'm lazy.
Last Edit: July 14, 2015, 05:17:06 am by DidUknowiPwn
setDankPerks() { perk = []; perk[0] = "specialty_armorvest"; //iirc this is juggs perk name perk[1] = "specialty_dank"; //not actual perk name for(i = 0; i < perk.size; i++) { player SetPerk(perk[i]); player maps\_zombiemode_perks::perk_hud_create( perk ); player.stats["perks"]++; player thread maps\_zombiemode_perks::perk_think( perk ); } }
- We have about an hour and 15 minutes before Mom comes home. - The cops will be here in about an hour and 15 minutes - School don't start for another hour and 15 minutes - I have two 45 minute study halls, but I have to study (go to bathroom) for about 15 minutes - I've found value in speed mapping over the need for quality - Cause "Ain't nobody got time for that". - I get 15 minutes of pc time a month, so this will actually take me 5 months. - Everybody's doing it. - Cause it's Friday, and I ain't got shit to do. (for an hour and 15 minutes) - I just said and hour and 15 minutes to start some shit with stevie - This message will self destruct, in an hour and 15 minutes.
Just playing
Last Edit: July 17, 2015, 05:04:19 pm by MakeCents
- We have about an hour and 15 minutes before Mom comes home. - The cops will be here in about an hour and 15 minutes - School don't start for another hour and 15 minutes - I have two 45 minute study halls, but I have to study (go to bathroom) for about 15 minutes - I've found value in speed mapping over the need for quality - Cause "Ain't nobody got time for that". - I get 15 minutes of pc time a month, so this will actually take me 5 months. - Everybody's doing it. - Cause it's Friday, and I ain't got shit to do. (for an hour and 15 minutes) - I just said and hour and 15 minutes to start some shit with stevie - This message will self destruct, in an hour and 15 minutes.