mirror of
https://github.com/Resxt/Plutonium-T6-Scripts.git
synced 2025-04-21 22:25:44 +00:00
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
32 lines
608 B
Plaintext
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;
|
|
} |