Plutonium-T6-Scripts/mapvote/mapvote_mp_extend.gsc
Resxt 4501736b79 Remove everything about compiled files
Just a refactor that doesn't affect any script or add anything new.
Plutonium T6 now supports loading source scripts so compiling them isn't needed anymore
https://plutonium.pw/docs/changelog/#r3408

[Refactor]
Removed all compiled scripts
Moved all source scripts to the main folder instead of a source folder
Renamed all source scripts to remove the source tag at the end

Removed notions of compiled and source scripts in the repository's README
2023-02-27 14:05:04 +01:00

32 lines
614 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 GetDvarInt("mapvote_display_wait_time");
[[level.mapvote_rotate_function]]();
return false;
}
level waittill("final_killcam_done");
if (isRoundBased() && !wasLastRound())
return true;
wait GetDvarInt("mapvote_display_wait_time");
[[level.mapvote_rotate_function]]();
return true;
}