UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: whippytrout on March 26, 2017, 11:41:15 pm

Title: Disable trigger in-between rounds
Post by: whippytrout on March 26, 2017, 11:41:15 pm
Hey guys,

I'm trying to finish up my Alcatraz map but I have one game breaking bug. If a player uses my teleporter while the rounds are changing it messes up everything. I have a boss that spawns when you teleport but if you teleport in-between rounds a bunch of bosses spawn and there is no way to survive, that trust me.

So how can I disable my trigger or deny the player from teleporting when in-between rounds? I've tried for 5+ hours today and can't figure it out.

Thanks,

Whippy
Title: Re: Disable trigger in-between rounds
Post by: death_reaper0 on March 27, 2017, 12:40:48 am
look for

Code Snippet
Plaintext
		level thread spectators_respawn();

level thread chalk_round_hint();

in _zombiemode.gsc

and see if

Code Snippet
Plaintext
		level notify("round_finish");

is above it, if not add it (not sure if that was something i added to my script or not)

then make your trigger use this function
Code Snippet
Plaintext
trigger thread disable_between_rounds();


Code Snippet
Plaintext

disable_between_rounds()
{
while(1)
{
level waittill("round_finish");
self hide();
level waittill("between_round_over");
self show();
}
}

Title: Re: Disable trigger in-between rounds
Post by: whippytrout on March 27, 2017, 03:17:47 am
That works great! Thank you so much.  :nyan:  :nyan:  :nyan:  :nyan:  :nyan:  :nyan:  :nyan: