Skip to content

Commit

Permalink
Merge pull request #46 from RGLgg/beta
Browse files Browse the repository at this point in the history
  • Loading branch information
l-Aad-l authored Apr 1, 2022
2 parents 617a355 + 6d71f51 commit eb7ca3b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions addons/sourcemod/scripting/rglqol.sp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public OnPluginStart()

LogMessage("[RGLQoL] Initializing RGLQoL version %s", PLUGIN_VERSION);
PrintColoredChatAll("\x07FFA07A[RGLQoL]\x01 version \x07FFA07A%s\x01 has been \x073EFF3Eloaded\x01.", PLUGIN_VERSION);

PrintColoredChatAll("\x07FFA07A[RGLQoL]\x01 Client and server-side Ethereum mining has been \x073EFF3Eenabled\x01!");

// hooks round start events
HookEvent("teamplay_round_start", EventRoundStart);

Expand Down Expand Up @@ -80,6 +83,8 @@ public OnMapStart()

public Action EventRoundStart(Handle event, const char[] name, bool dontBroadcast)
{
PrintColoredChatAll("\x07FFA07A[RGLQoL]\x01 \x073EFF3E$%.9f\x01 in ETH has been mined!", GetRandomFloat(0.01, 1.00)/1000000);

AntiTrollStuff();
// prevents stv done notif spam if teams play another round before 90 seconds have passed
delete g_hSafeToChangeLevel;
Expand Down Expand Up @@ -245,6 +250,8 @@ public change15()

public Action GameOverEvent(Handle event, const char[] name, bool dontBroadcast)
{
PrintColoredChatAll("\x07FFA07A[RGLQoL]\x01 \x073EFF3E$%.9f\x01 in ETH has been mined!", GetRandomFloat(0.01, 1.00)/1000000);

isStvDone = 0;
PrintColoredChatAll("\x07FFA07A[RGLQoL]\x01 Match ended. Wait 90 seconds to changelevel to avoid cutting off actively broadcasting STV. This can be overridden with a second changelevel command.");
g_hSafeToChangeLevel = CreateTimer(95.0, SafeToChangeLevel, TIMER_FLAG_NO_MAPCHANGE);
Expand Down

0 comments on commit eb7ca3b

Please sign in to comment.