mirror of
https://github.com/Resxt/Plutonium-T6-Scripts.git
synced 2025-04-22 06:35:44 +00:00
32 lines
576 B
Plaintext
32 lines
576 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("vote_start");
|
|
level waittill("vote_end");
|
|
return false;
|
|
}
|
|
|
|
level waittill("final_killcam_done");
|
|
if (isRoundBased() && !wasLastRound())
|
|
return true;
|
|
wait 3;
|
|
|
|
level notify("vote_start");
|
|
level waittill("vote_end");
|
|
return true;
|
|
} |