mirror of
https://github.com/Resxt/Plutonium-T6-Scripts.git
synced 2025-07-04 10:11:50 +00:00
Create mapvote
This commit is contained in:
32
mapvote/source/mapvote_mp_extend-source.gsc
Normal file
32
mapvote/source/mapvote_mp_extend-source.gsc
Normal file
@ -0,0 +1,32 @@
|
||||
#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;
|
||||
}
|
Reference in New Issue
Block a user