I need this for my map, so I made the script and decided to make a tutorial for this. If there's already one I'm sorry, but I haven't found any (at least here). It's like in Grid Lock: when you finish a round you have a break to do whatever you want without zombies. The break will end when the time is out or when the host press enter (you might want to change it to other thing). I haven't tested it online, but it should work well. And please, report me any bug.
Let's start. If you have NOT done it before, go to root/raw/maps and copy _zombiemode.gsc. Then go to root/mods/YOUR_MOD_NAME/maps and paste it there.
If you already had this file there you should backup it !!
Open it with the text editor of your choice.
First, find these lines:
and copy this just below: Feel free to change "200" to the time you want the round break to be.
Now find this function:
and replace it entirely with:
Now find this line inside this function and comment it:
It should look like:
Find the "round_wait()" function and inside of it, just at the end, add this lines:
Finally, add these functions just bellow the "round_wait()" function (outside of it).
If you want to do something when the round break starts or if you need to check if you are in the round break you can use this:
If you use it in your map, please give credit to me. Enjoy it.
Last Edit: October 18, 2015, 12:12:21 pm by Soy-Yo
If you want scripts / features made for you, then contact me by PM or email / skype etc it will cost you tho so if you have no intention of reciprocating don't even waste my time
Maybe I didn't understand you, but I wouldn't need to change anything then, right? Because in round 1 the variable isn't defined yet, so it'll return undefined (I said null in the post, I'll change it). And then, during any other round, the variable will be false. Did you mean to change this line... ...to.... ...?
instead of setting it false after, set it back to undefined
treyarch used this for the is_drinking stuff, which actually caused me to break all their scripts by doing it the opposite way on my old perks lol. Only noticed when smashers bowie knife broke - along with everone elses lol
they use
i was setting is_drinking to false
so "isDefined" was returning true, no matter what, stopping the player from interacting with anything treyarch that was "wanting" it to become undefined lol
oops lol
plus this way gives you 4 options for usage too :
Last Edit: October 10, 2015, 11:28:46 pm by Harry Bo21