mirror of
https://github.com/Resxt/Plutonium-T6-Scripts.git
synced 2025-04-19 05:32:53 +00:00
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
32 lines
614 B
Plaintext
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;
|
|
} |