Plutonium-T6-Scripts/mapvote/source/mapvote_mp_extend-source.gsc
Resxt 98d005b57e mapvote 1.0.2
Changed all notifies with the mapvote prefix to avoid conflicts with other scripts

Fixed some typos in the code comments

Removed self notifyonplayercommand("unselect", "+frag"); as it should have been removed in 1.0.1
2022-10-21 21:18:39 +02:00

32 lines
608 B
Plaintext

#include maps\mp\_utility;
Init()
{
if (GetDvarInt("mapvote_enable"))
{
replaceFunc(maps\mp\gametypes\_killcam::finalkillcamwaiter, ::OnKillcamEnd);
}
}
OnKillcamEnd()
{
if (!IsDefined(level.finalkillcam_winner))
{
if (isRoundBased() && !wasLastRound())
return false;
wait 3;
level notify("mapvote_vote_start");
level waittill("mapvote_vote_end");
return false;
}
level waittill("final_killcam_done");
if (isRoundBased() && !wasLastRound())
return true;
wait 3;
level notify("mapvote_vote_start");
level waittill("mapvote_vote_end");
return true;
}