Skip to content

Commit

Permalink
Removed unnecessary public access modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
A1mDev committed Jan 29, 2024
1 parent ab33b25 commit e2bc7ae
Show file tree
Hide file tree
Showing 22 changed files with 115 additions and 118 deletions.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/confoglcompmod.sp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#define DEBUG_ALL 0

#define PLUGIN_VERSION "2.4.4"
#define PLUGIN_VERSION "2.4.5"

// Using these macros, you can disable unnecessary modules,
// and they will not be included in the plugin at compile time,
Expand Down Expand Up @@ -500,7 +500,7 @@ public Action L4D_OnFirstSurvivorLeftSafeArea(int client)
return Plugin_Continue;
}

public Action OFSLA_ForceMobSpawnTimer(Handle hTimer)
static Action OFSLA_ForceMobSpawnTimer(Handle hTimer)
{
// Workaround to make tank horde blocking always work
// Makes the first horde always start 100s after survivors leave saferoom
Expand Down
10 changes: 5 additions & 5 deletions addons/sourcemod/scripting/confoglcompmod/BossSpawning.sp
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ void BS_OnMapStart()
GetCurrentMap(BS_sMap, sizeof(BS_sMap));
}

public void BS_ConVarChange(ConVar convar, const char[] oldValue, const char[] newValue)
static void BS_ConVarChange(ConVar convar, const char[] oldValue, const char[] newValue)
{
BS_bEnabled = BS_hEnabled.BoolValue;
}

public void BS_WitchSpawn(Event hEvent, const char[] sEventName, bool bDontBroadcast)
static void BS_WitchSpawn(Event hEvent, const char[] sEventName, bool bDontBroadcast)
{
if (!BS_bEnabled || !IsPluginEnabled()) {
return;
Expand Down Expand Up @@ -151,7 +151,7 @@ void BS_OnTankSpawnPost_Forward(int iTankClient)
}
}

public void BS_RoundEnd(Event hEvent, const char[] sEventName, bool bDontBroadcast)
static void BS_RoundEnd(Event hEvent, const char[] sEventName, bool bDontBroadcast)
{
BS_bIsFirstRound = false;
BS_bFinaleStarted = false;
Expand All @@ -165,12 +165,12 @@ public void BS_RoundEnd(Event hEvent, const char[] sEventName, bool bDontBroadca
}
}

public void BS_FinaleStart(Event hEvent, const char[] sEventName, bool bDontBroadcast)
static void BS_FinaleStart(Event hEvent, const char[] sEventName, bool bDontBroadcast)
{
BS_bFinaleStarted = true;
}

public Action BS_WitchTimerReset(Handle hTimer)
static Action BS_WitchTimerReset(Handle hTimer)
{
BS_bDeleteWitches = false;

Expand Down
8 changes: 4 additions & 4 deletions addons/sourcemod/scripting/confoglcompmod/BotKick.sp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void BK_OnModuleStart()
HookEvent("player_bot_replace", BK_PlayerBotReplace);
}

public void BK_ConVarChange(ConVar hConVar, const char[] sOldValue, const char[] sNewValue)
static void BK_ConVarChange(ConVar hConVar, const char[] sOldValue, const char[] sNewValue)
{
BK_iEnable = BK_hEnable.IntValue;
}
Expand Down Expand Up @@ -68,7 +68,7 @@ bool BK_OnClientConnect(int iClient)
return false;
}

public Action BK_CheckInfBotReplace_Timer(Handle hTimer, any iClient)
static Action BK_CheckInfBotReplace_Timer(Handle hTimer, any iClient)
{
if (iClient != BK_lastvalidbot && IsClientInGame(iClient) && IsFakeClient(iClient)) {
KickClient(iClient, "[Confogl] Kicking late infected bot...");
Expand All @@ -79,7 +79,7 @@ public Action BK_CheckInfBotReplace_Timer(Handle hTimer, any iClient)
return Plugin_Stop;
}

public void BK_PlayerBotReplace(Event hEvent, const char[] sEventName, bool bDontBroadcast)
static void BK_PlayerBotReplace(Event hEvent, const char[] sEventName, bool bDontBroadcast)
{
if (!GT_IsTankInPlay()) {
return;
Expand All @@ -93,7 +93,7 @@ public void BK_PlayerBotReplace(Event hEvent, const char[] sEventName, bool bDon
}
}

public Action BK_CancelValidBot_Timer(Handle hTimer)
static Action BK_CancelValidBot_Timer(Handle hTimer)
{
BK_lastvalidbot = -1;

Expand Down
12 changes: 6 additions & 6 deletions addons/sourcemod/scripting/confoglcompmod/ClientSettings.sp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static void ClearCLSEntry(CLSEntry entry[CLSEntry])
}
#endif*/

public Action _CheckClientSettings_Timer(Handle hTimer)
static Action _CheckClientSettings_Timer(Handle hTimer)
{
if (!IsPluginEnabled()) {
if (IsDebugEnabled()) {
Expand Down Expand Up @@ -129,7 +129,7 @@ static void EnforceCliSettings(int client)
#endif
}

public void _EnforceCliSettings_QueryReply(QueryCookie cookie, int client, ConVarQueryResult result, \
static void _EnforceCliSettings_QueryReply(QueryCookie cookie, int client, ConVarQueryResult result, \
const char[] cvarName, const char[] cvarValue, any value)
{
if (!IsClientConnected(client) || !IsClientInGame(client) || IsClientInKickQueue(client)) {
Expand Down Expand Up @@ -225,7 +225,7 @@ public void _EnforceCliSettings_QueryReply(QueryCookie cookie, int client, ConVa
#endif
}

public Action _ClientSettings_Cmd(int client, int args)
static Action _ClientSettings_Cmd(int client, int args)
{
int iSize = ClientSettingsArray.Length;
ReplyToCommand(client, "[Confogl] Tracked Client CVars (Total %d)", iSize);
Expand Down Expand Up @@ -290,7 +290,7 @@ public Action _ClientSettings_Cmd(int client, int args)
return Plugin_Handled;
}

public Action _TrackClientCvar_Cmd(int args)
static Action _TrackClientCvar_Cmd(int args)
{
if (args < 3 || args == 4) {
PrintToServer("Usage: confogl_trackclientcvar <cvar> <hasMin> <min> [<hasMax> <max> [<action>]]");
Expand Down Expand Up @@ -347,7 +347,7 @@ public Action _TrackClientCvar_Cmd(int args)
return Plugin_Handled;
}

public Action _ResetTracking_Cmd(int args)
static Action _ResetTracking_Cmd(int args)
{
if (ClientSettingsCheckTimer != null) {
PrintToServer("Can't reset tracking in the middle of a match");
Expand All @@ -360,7 +360,7 @@ public Action _ResetTracking_Cmd(int args)
return Plugin_Handled;
}

public Action _StartClientChecking_Cmd(int args)
static Action _StartClientChecking_Cmd(int args)
{
_StartTracking();

Expand Down
12 changes: 6 additions & 6 deletions addons/sourcemod/scripting/confoglcompmod/CvarSettings.sp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void CVS_OnConfigsExecuted()
}
}

public Action CVS_SetCvars_Cmd(int args)
static Action CVS_SetCvars_Cmd(int args)
{
if (!IsPluginEnabled()) {
return Plugin_Handled;
Expand All @@ -81,7 +81,7 @@ public Action CVS_SetCvars_Cmd(int args)
return Plugin_Handled;
}

public Action CVS_AddCvar_Cmd(int args)
static Action CVS_AddCvar_Cmd(int args)
{
if (args != 2) {
PrintToServer("Usage: confogl_addcvar <cvar> <newValue>");
Expand All @@ -104,7 +104,7 @@ public Action CVS_AddCvar_Cmd(int args)
return Plugin_Handled;
}

public Action CVS_ResetCvars_Cmd(int args)
static Action CVS_ResetCvars_Cmd(int args)
{
if (IsPluginEnabled()) {
PrintToServer("Can't reset tracking in the middle of a match");
Expand All @@ -117,7 +117,7 @@ public Action CVS_ResetCvars_Cmd(int args)
return Plugin_Handled;
}

public Action CVS_CvarSettings_Cmd(int client, int args)
static Action CVS_CvarSettings_Cmd(int client, int args)
{
if (!IsPluginEnabled()) {
return Plugin_Handled;
Expand Down Expand Up @@ -176,7 +176,7 @@ public Action CVS_CvarSettings_Cmd(int client, int args)
return Plugin_Handled;
}

public Action CVS_CvarDiff_Cmd(int client, int args)
static Action CVS_CvarDiff_Cmd(int client, int args)
{
if (!IsPluginEnabled()) {
return Plugin_Handled;
Expand Down Expand Up @@ -389,7 +389,7 @@ static void AddCvar(const char[] cvar, const char[] newval)
#endif
}

public void CVS_ConVarChange(ConVar hConVar, const char[] sOldValue, const char[] sNewValue)
static void CVS_ConVarChange(ConVar hConVar, const char[] sOldValue, const char[] sNewValue)
{
if (bTrackingStarted) {
char sName[CVS_CVAR_MAXLEN];
Expand Down
10 changes: 5 additions & 5 deletions addons/sourcemod/scripting/confoglcompmod/EntityRemover.sp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#define ER_MODULE_NAME "EntityRemover"

#define DEBUG_ER 0
#define DEBUG_ER false

#define ER_KV_ACTION_KILL 1

Expand Down Expand Up @@ -55,7 +55,7 @@ void ER_OnModuleStart()
HookEvent("round_start", ER_RoundStart_Event, EventHookMode_PostNoCopy);
}

public void ER_ConVarChange(ConVar hConvar, const char[] sOldValue, const char[] sNewValue)
static void ER_ConVarChange(ConVar hConvar, const char[] sOldValue, const char[] sNewValue)
{
ER_bKillParachutist = ER_hKillParachutist.BoolValue;
ER_bReplaceGhostHurt = ER_hReplaceGhostHurt.BoolValue;
Expand Down Expand Up @@ -121,7 +121,7 @@ static void ER_KV_Load()
kERData.Rewind();
}

public Action ER_KV_CmdReload(int client, int args)
static Action ER_KV_CmdReload(int client, int args)
{
if (!IsPluginEnabled()) {
return Plugin_Continue;
Expand Down Expand Up @@ -348,7 +348,7 @@ static bool ER_ReplaceTriggerHurtGhost(int ent)
return false;
}

public void ER_RoundStart_Event(Event hEvent, const char[] sEventName, bool bdontBroadcast)
static void ER_RoundStart_Event(Event hEvent, const char[] sEventName, bool bdontBroadcast)
{
if (!IsPluginEnabled()) {
return;
Expand All @@ -357,7 +357,7 @@ public void ER_RoundStart_Event(Event hEvent, const char[] sEventName, bool bdon
CreateTimer(0.3, ER_RoundStart_Timer, _, TIMER_FLAG_NO_MAPCHANGE);
}

public Action ER_RoundStart_Timer(Handle hTimer)
static Action ER_RoundStart_Timer(Handle hTimer)
{
char sBuffer[MAX_ENTITY_NAME_LENGTH];
if (ER_bDebugEnabled || IsDebugEnabled()) {
Expand Down
8 changes: 4 additions & 4 deletions addons/sourcemod/scripting/confoglcompmod/FinaleSpawn.sp
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ void FS_OnModuleStart()
HookEvent("finale_start", FS_FinaleStart_Event, EventHookMode_PostNoCopy);
}

public void FS_Round_Event(Event hEvent, const char[] sEventName, bool bDontBroadcast)
static void FS_Round_Event(Event hEvent, const char[] sEventName, bool bDontBroadcast)
{
FS_bIsFinale = false;
}

public void FS_FinaleStart_Event(Event hEvent, const char[] sEventName, bool bDontBroadcast)
static void FS_FinaleStart_Event(Event hEvent, const char[] sEventName, bool bDontBroadcast)
{
FS_bIsFinale = true;
}

public void FS_ConVarChange(ConVar hConVar, const char[] sOldValue, const char[] sNewValue)
static void FS_ConVarChange(ConVar hConVar, const char[] sOldValue, const char[] sNewValue)
{
FS_bEnabled = FS_hEnabled.BoolValue;
}
Expand All @@ -46,7 +46,7 @@ void FS_OnClientPutInServer(int client)
SDKHook(client, SDKHook_PreThinkPost, HookCallback);
}

public void HookCallback(int client)
static void HookCallback(int client)
{
if (!FS_bIsFinale) {
return;
Expand Down
22 changes: 11 additions & 11 deletions addons/sourcemod/scripting/confoglcompmod/GhostTank.sp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Action GT_OnTryOfferingTankBot(bool &enterStasis)
return Plugin_Continue;
}

public void GT_FinaleVehicleIncoming(Event hEvent, const char[] sEventName, bool bDontBroadcast)
static void GT_FinaleVehicleIncoming(Event hEvent, const char[] sEventName, bool bDontBroadcast)
{
g_bGT_FinaleVehicleIncoming = true;

Expand All @@ -150,7 +150,7 @@ public void GT_FinaleVehicleIncoming(Event hEvent, const char[] sEventName, bool
}
}

public void GT_ItemPickup(Event hEvent, const char[] sEventName, bool bDontBroadcast)
static void GT_ItemPickup(Event hEvent, const char[] sEventName, bool bDontBroadcast)
{
if (!g_bGT_TankIsInPlay) {
return;
Expand All @@ -171,13 +171,13 @@ public void GT_ItemPickup(Event hEvent, const char[] sEventName, bool bDontBroad
}
}

public void GT_RoundStart(Event hEvent, const char[] sEventName, bool bDontBroadcast)
static void GT_RoundStart(Event hEvent, const char[] sEventName, bool bDontBroadcast)
{
g_bGT_FinaleVehicleIncoming = false;
GT_Reset();
}

public void GT_TankKilled(Event hEvent, const char[] sEventName, bool bDontBroadcast)
static void GT_TankKilled(Event hEvent, const char[] sEventName, bool bDontBroadcast)
{
if (!g_bGT_TankIsInPlay) {
return;
Expand All @@ -191,7 +191,7 @@ public void GT_TankKilled(Event hEvent, const char[] sEventName, bool bDontBroad
g_hGT_TankDeathTimer = CreateTimer(1.0, GT_TankKilled_Timer);
}

public void GT_TankSpawn(Event hEvent, const char[] sEventName, bool bDontBroadcast)
static void GT_TankSpawn(Event hEvent, const char[] sEventName, bool bDontBroadcast)
{
int client = GetClientOfUserId(hEvent.GetInt("userid"));
g_iGT_TankClient = client;
Expand Down Expand Up @@ -222,7 +222,7 @@ public void GT_TankSpawn(Event hEvent, const char[] sEventName, bool bDontBroadc
CreateTimer(fFireImmunityTime, GT_FireImmunityTimer);
}

public void GT_TankOnFire(Event hEvent, const char[] sEventName, bool bDontBroadcast)
static void GT_TankOnFire(Event hEvent, const char[] sEventName, bool bDontBroadcast)
{
int dmgtype = hEvent.GetInt("type");

Expand All @@ -245,7 +245,7 @@ public void GT_TankOnFire(Event hEvent, const char[] sEventName, bool bDontBroad
SetEntityHealth(client, iSetHealth);
}

public void GT_PlayerIncap(Event hEvent, const char[] sEventName, bool bDontBroadcast)
static void GT_PlayerIncap(Event hEvent, const char[] sEventName, bool bDontBroadcast)
{
if (!g_bGT_TankIsInPlay || !IsPluginEnabled() || !g_hGT_Enabled.BoolValue) {
return;
Expand All @@ -270,7 +270,7 @@ public void GT_PlayerIncap(Event hEvent, const char[] sEventName, bool bDontBroa
CreateTimer(0.4, GT_IncapTimer, userid, TIMER_FLAG_NO_MAPCHANGE);
}

public Action GT_IncapTimer(Handle hTimer, int userid)
static Action GT_IncapTimer(Handle hTimer, int userid)
{
int client = GetClientOfUserId(userid);
if (client > 0) {
Expand All @@ -281,14 +281,14 @@ public Action GT_IncapTimer(Handle hTimer, int userid)
return Plugin_Stop;
}

public Action GT_ResumeTankTimer(Handle hTimer)
static Action GT_ResumeTankTimer(Handle hTimer)
{
GT_ResumeTank();

return Plugin_Stop;
}

public Action GT_FireImmunityTimer(Handle hTimer)
static Action GT_FireImmunityTimer(Handle hTimer)
{
g_bGT_TankHasFireImmunity = false;

Expand Down Expand Up @@ -332,7 +332,7 @@ static void GT_Reset()
g_bGT_TankHasFireImmunity = true;
}

public Action GT_TankKilled_Timer(Handle hTimer)
static Action GT_TankKilled_Timer(Handle hTimer)
{
GT_Reset();

Expand Down
Loading

0 comments on commit e2bc7ae

Please sign in to comment.