Every time we do practice and do a lot of smokes and molleys, maybe 200 or even more, the SV on the server starts to turn red and spike with 10-25, continuing only makes it worse.
It's not client issue, only solution is to reboot the entire scrd server.
I was wondering if there is a secret or hidden command like a clear memory or even better soft clear all objects trails or whatever it is called.
Maybe it would be possible with an addon that could clear everything related to weapons,grenades,bots existent that leaves trails in the memory so it was like the server was fresh spawned?
Is it even possible to call such things ?
The server is running on a SSD with 8 cores, 16gb ram solely by it self.
We have checked with the "few" plugins we use if that was the cause, was still positive without any addons or SM installed
Restarting the map should do the trick.
Performance wise, if it's not necessary to pick up items, set this:
Code:
mp_death_drop_defuser "0" - Drop defuser on player death
mp_death_drop_grenade "0" - Which grenade to drop on player death: 0=none, 1=best, 2=current or best, 3=all
mp_death_drop_gun "0" - Which gun to drop on player death: 0=none, 1=best, 2=current or best
mp_death_drop_taser "0" - Drop taser on player death
CS:GO is single core, so while having more cores and a lot of ram is good, it doesn't benefit you.
new Handle:g_Enabled = INVALID_HANDLE;
new Handle:g_AllowPlayers = INVALID_HANDLE;
new Handle:g_DefaultAlpha = INVALID_HANDLE;
new Handle:g_DefaultOn = INVALID_HANDLE;
new Handle:g_EnableHETails = INVALID_HANDLE;
new Handle:g_EnableFlashTails = INVALID_HANDLE;
new Handle:g_EnableSmokeTails = INVALID_HANDLE;
new Handle:g_EnableDecoyTails = INVALID_HANDLE;
new Handle:g_EnableMolotovTails = INVALID_HANDLE;
new Handle:g_EnableIncTails = INVALID_HANDLE;
new Handle:g_HEColor = INVALID_HANDLE;
new Handle:g_FlashColor = INVALID_HANDLE;
new Handle:g_SmokeColor = INVALID_HANDLE;
new Handle:g_DecoyColor = INVALID_HANDLE;
new Handle:g_MolotovColor = INVALID_HANDLE;
new Handle:g_IncColor = INVALID_HANDLE;
new Handle:g_TailTime = INVALID_HANDLE;
new Handle:g_TailFadeTime = INVALID_HANDLE;
new Handle:g_TailWidth = INVALID_HANDLE;
new g_iBeamSprite;
new bool:Tails[MAXPLAYERS+1];
new TempColorArray[] = {0, 0, 0, 0}; //temp array since you can't return arrays
//Ugly list of colors since I couldn't get Enum Arrays to work
new g_ColorAqua[] = {0,255,255};
new g_ColorBlack[] = {0,0,0};
new g_ColorBlue[] = {0,0,255};
new g_ColorFuschia[] = {255,0,255};
new g_ColorGray[] = {128,128,128};
new g_ColorGreen[] = {0,128,0};
new g_ColorLime[] = {0,255,0};
new g_ColorMaroon[] = {128,0,0};
new g_ColorNavy[] = {0,0,128};
new g_ColorRed[] = {255,0,0};
new g_ColorWhite[] = {255,255,255};
new g_ColorYellow[] = {255,255,0};
new g_ColorSilver[] = {192,192,192};
new g_ColorTeal[] = {0,128,128};
new g_ColorPurple[] = {128,0,128};
new g_ColorOlive[] = {128,128,0};
new g_ColorOrange[] = {255,153,0};
//end colors
public Plugin:myinfo =
{
name = "Nade Tails",
author = "InternetBully, H3Bus",
version = "2.1",
description = "Adds tails to projectiles",
url = "https://forums.alliedmods.net/showthread.php?p=2321825#post2321825"
};
public OnPluginStart()
{
RegConsoleCmd("sm_tails", Cmd_Tails, "Toggles grenade tails.");
RegAdminCmd("sm_tailsmenu", Cmd_tail_menu, ADMFLAG_KICK, "Admin menu to toggle Nade Tails on players");
//CVARs
g_Enabled = CreateConVar("sm_tails_enabled", "1", "Enables Nade Tails (0/1).");
g_AllowPlayers = CreateConVar("sm_tails_allowplayers", "1", "Allow players to use nade tails with !tails (0/1)");
g_DefaultAlpha = CreateConVar("sm_tails_defaultalpha", "255", "Default alpha for trails (0 is invisible, 255 is solid).");
g_DefaultOn = CreateConVar("sm_tails_defaulton", "1", "Tails on for all users, Set to 0 to require user to type !tails to use");
//Projectiles to put tails on
g_EnableHETails = CreateConVar("sm_tails_hegrenade", "1", "Enables Nade Tails on HE Grenades (0/1).");
g_EnableFlashTails = CreateConVar("sm_tails_flashbang", "1", "Enables Nade Tails on Flashbangs (0/1).");
g_EnableSmokeTails = CreateConVar("sm_tails_smoke", "1", "Enables Nade Tails on Smoke Grenades (0/1).");
g_EnableDecoyTails = CreateConVar("sm_tails_decoy", "1", "Enables Nade Tails on Decoy Grenades (0/1).");
g_EnableMolotovTails = CreateConVar("sm_tails_molotov", "1", "Enables Nade Tails on Molotovs (0/1).");
g_EnableIncTails = CreateConVar("sm_tails_incendiary", "1", "Enables Nade Tails on Incendiary Grenades (0/1).");
//TE_SetupBeamFollow CVARs -- Colors
g_HEColor = CreateConVar("sm_tails_hecolor", "red", "Tail color on HE Grenades. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20 147 225\"");
g_FlashColor = CreateConVar("sm_tails_flashcolor", "white", "Tail color on Flashbangs. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20 147 225\"");
g_SmokeColor = CreateConVar("sm_tails_smokecolor", "green", "Tail color on Smoke Grenades. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20 147 225\"");
g_DecoyColor = CreateConVar("sm_tails_decoycolor", "Purple", "Tail color on Decoy Grenades. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20,147 225\"");
g_MolotovColor = CreateConVar("sm_tails_molotovcolor", "orange", "Tail color on Molotovs. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20 147 225\"");
g_IncColor = CreateConVar("sm_tails_inccolor", "orange", "Tail color on Incendiary Grenades. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20 147 225\"");
//size and time
g_TailTime = CreateConVar("sm_tails_tailtime", "7.0", "Time the tail stays visible.");
g_TailFadeTime = CreateConVar("sm_tails_tailfadetime", "1", "Time for tail to fade over.");
g_TailWidth = CreateConVar("sm_tails_tailwidth", "4.0", "Width of the tail.");
}
public OnClientPutInServer(client)
{
Tails[client] = false;
}
public Action:Cmd_tail_menu(client, args)
{
if (client == 0)
{
ReplyToCommand(client, "%t", "Command is in-game only");
return Plugin_Handled;
}
else if(GetConVarBool(g_DefaultOn))
{
ReplyToCommand(client, "Nade Tails is already enabled for everyone, not launching menu");
return Plugin_Handled;
}
Cmd_TailMenu(client);
return Plugin_Handled;
}
public OnEntityCreated(entity, const String:classname[])
{
if(GetConVarBool(g_Enabled) && IsValidEntity(entity)) SDKHook(entity, SDKHook_SpawnPost, OnEntitySpawned); //don't draw tails if we disable the plugin while people have tails enabled
}
public OnEntitySpawned(entity)
{
if(!IsValidEdict(entity))
return;
int TempColorArray[] = {0, 0, 0, 0}; //temp array since you can't return arrays
public Plugin myinfo = { name = "Nade Tails", author = "InternetBully, H3Bus", version = "2.1", description = "Adds tails to projectiles", url = "https://forums.alliedmods.net/showthread.php?p=2321825#post2321825" };
public void OnPluginStart() { RegConsoleCmd("sm_tails", Cmd_Tails, "Toggles grenade tails."); RegAdminCmd("sm_tailsmenu", Cmd_tail_menu, ADMFLAG_KICK, "Admin menu to toggle Nade Tails on players");
//CVARs g_Enabled = CreateConVar("sm_tails_enabled", "1", "Enables Nade Tails (0/1)."); g_AllowPlayers = CreateConVar("sm_tails_allowplayers", "1", "Allow players to use nade tails with !tails (0/1)"); g_DefaultAlpha = CreateConVar("sm_tails_defaultalpha", "255", "Default alpha for trails (0 is invisible, 255 is solid)."); g_DefaultOn = CreateConVar("sm_tails_defaulton", "1", "Tails on for all users, Set to 0 to require user to type !tails to use");
//Projectiles to put tails on g_EnableHETails = CreateConVar("sm_tails_hegrenade", "1", "Enables Nade Tails on HE Grenades (0/1)."); g_EnableFlashTails = CreateConVar("sm_tails_flashbang", "1", "Enables Nade Tails on Flashbangs (0/1)."); g_EnableSmokeTails = CreateConVar("sm_tails_smoke", "1", "Enables Nade Tails on Smoke Grenades (0/1)."); g_EnableDecoyTails = CreateConVar("sm_tails_decoy", "1", "Enables Nade Tails on Decoy Grenades (0/1)."); g_EnableMolotovTails = CreateConVar("sm_tails_molotov", "1", "Enables Nade Tails on Molotovs (0/1)."); g_EnableIncTails = CreateConVar("sm_tails_incendiary", "1", "Enables Nade Tails on Incendiary Grenades (0/1).");
//TE_SetupBeamFollow CVARs -- Colors g_HEColor = CreateConVar("sm_tails_hecolor", "red", "Tail color on HE Grenades. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20 147 225\""); g_FlashColor = CreateConVar("sm_tails_flashcolor", "white", "Tail color on Flashbangs. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20 147 225\""); g_SmokeColor = CreateConVar("sm_tails_smokecolor", "green", "Tail color on Smoke Grenades. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20 147 225\""); g_DecoyColor = CreateConVar("sm_tails_decoycolor", "Purple", "Tail color on Decoy Grenades. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20,147 225\""); g_MolotovColor = CreateConVar("sm_tails_molotovcolor", "orange", "Tail color on Molotovs. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20 147 225\""); g_IncColor = CreateConVar("sm_tails_inccolor", "orange", "Tail color on Incendiary Grenades. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20 147 225\"");
//size and time g_TailTime = CreateConVar("sm_tails_tailtime", "7.0", "Time the tail stays visible."); g_TailFadeTime = CreateConVar("sm_tails_tailfadetime", "1", "Time for tail to fade over."); g_TailWidth = CreateConVar("sm_tails_tailwidth", "4.0", "Width of the tail.");
}
public void OnClientPutInServer(int client) { Tails[client] = false; }
public Action Cmd_tail_menu(int client, int args) { if (client == 0) { ReplyToCommand(client, "%t", "Command is in-game only"); return Plugin_Handled; } if(GetConVarBool(g_DefaultOn)) { ReplyToCommand(client, "Nade Tails is already enabled for everyone, not launching menu"); return Plugin_Handled; } Cmd_TailMenu(client); return Plugin_Handled; }
for (int i = 1; i <= MaxClients; i++) { if (!IsClientConnected(i) || IsClientInKickQueue(i)) continue; IntToString(GetClientUserId(i), user_id, sizeof(user_id)); GetClientName(i, name, sizeof(name)); Format(display, sizeof(display), "%s", name); AddMenuItem(menu, user_id, display); }
DisplayMenu(menu, client, MENU_TIME_FOREVER); }
public int mh_TailMenu(Handle menu, MenuAction action, int param1, int param2) { switch (action) { case MenuAction_Select: { //param1 is client, param2 is item
public void OnEntityCreated(int entity, const char[] classname) { if(GetConVarBool(g_Enabled) && IsValidEntity(entity)) SDKHook(entity, SDKHook_SpawnPost, OnEntitySpawned); //don't draw tails if we disable the plugin while people have tails enabled }
public void OnEntitySpawned(int entity) { if(!IsValidEdict(entity)) return;
int TempColorArray[] = {0, 0, 0, 0}; //temp array since you can't return arrays
public Plugin myinfo =
{
name = "Nade Tails",
author = "InternetBully, H3Bus",
version = "2.1",
description = "Adds tails to projectiles",
url = "https://forums.alliedmods.net/showthread.php?p=2321825#post2321825"
};
public void OnPluginStart()
{
RegConsoleCmd("sm_tails", Cmd_Tails, "Toggles grenade tails.");
RegAdminCmd("sm_tailsmenu", Cmd_tail_menu, ADMFLAG_KICK, "Admin menu to toggle Nade Tails on players");
//CVARs
g_Enabled = CreateConVar("sm_tails_enabled", "1", "Enables Nade Tails (0/1).");
g_AllowPlayers = CreateConVar("sm_tails_allowplayers", "1", "Allow players to use nade tails with !tails (0/1)");
g_DefaultAlpha = CreateConVar("sm_tails_defaultalpha", "255", "Default alpha for trails (0 is invisible, 255 is solid).");
g_DefaultOn = CreateConVar("sm_tails_defaulton", "1", "Tails on for all users, Set to 0 to require user to type !tails to use");
//Projectiles to put tails on
g_EnableHETails = CreateConVar("sm_tails_hegrenade", "1", "Enables Nade Tails on HE Grenades (0/1).");
g_EnableFlashTails = CreateConVar("sm_tails_flashbang", "1", "Enables Nade Tails on Flashbangs (0/1).");
g_EnableSmokeTails = CreateConVar("sm_tails_smoke", "1", "Enables Nade Tails on Smoke Grenades (0/1).");
g_EnableDecoyTails = CreateConVar("sm_tails_decoy", "1", "Enables Nade Tails on Decoy Grenades (0/1).");
g_EnableMolotovTails = CreateConVar("sm_tails_molotov", "1", "Enables Nade Tails on Molotovs (0/1).");
g_EnableIncTails = CreateConVar("sm_tails_incendiary", "1", "Enables Nade Tails on Incendiary Grenades (0/1).");
//TE_SetupBeamFollow CVARs -- Colors
g_HEColor = CreateConVar("sm_tails_hecolor", "red", "Tail color on HE Grenades. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20 147 225\"");
g_FlashColor = CreateConVar("sm_tails_flashcolor", "white", "Tail color on Flashbangs. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20 147 225\"");
g_SmokeColor = CreateConVar("sm_tails_smokecolor", "green", "Tail color on Smoke Grenades. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20 147 225\"");
g_DecoyColor = CreateConVar("sm_tails_decoycolor", "Purple", "Tail color on Decoy Grenades. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20,147 225\"");
g_MolotovColor = CreateConVar("sm_tails_molotovcolor", "orange", "Tail color on Molotovs. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20 147 225\"");
g_IncColor = CreateConVar("sm_tails_inccolor", "orange", "Tail color on Incendiary Grenades. (use named colors like \"Aqua\" or \"Black\" or use RGBA like \"255 20 147 225\"");
//size and time
g_TailTime = CreateConVar("sm_tails_tailtime", "7.0", "Time the tail stays visible.");
g_TailFadeTime = CreateConVar("sm_tails_tailfadetime", "1", "Time for tail to fade over.");
g_TailWidth = CreateConVar("sm_tails_tailwidth", "4.0", "Width of the tail.");
}
public void OnClientPutInServer(int client)
{
Tails[client] = false;
}
public Action Cmd_tail_menu(int client, int args)
{
if (client == 0)
{
ReplyToCommand(client, "%t", "Command is in-game only");
return Plugin_Handled;
}
if(GetConVarBool(g_DefaultOn))
{
ReplyToCommand(client, "Nade Tails is already enabled for everyone, not launching menu");
return Plugin_Handled;
}
Cmd_TailMenu(client);
return Plugin_Handled;
}
for (int i = 1; i <= MaxClients; i++)
{
if (!IsClientConnected(i) || IsClientInKickQueue(i))
continue;
IntToString(GetClientUserId(i), user_id, sizeof(user_id));
GetClientName(i, name, sizeof(name));
Format(display, sizeof(display), "%s", name);
AddMenuItem(menu, user_id, display);
}
DisplayMenu(menu, client, MENU_TIME_FOREVER);
}
public int mh_TailMenu(Handle menu, MenuAction action, int param1, int param2)
{
switch (action)
{
case MenuAction_Select:
{
//param1 is client, param2 is item
public void OnEntityCreated(int entity, const char[] classname)
{
if(GetConVarBool(g_Enabled) && IsValidEntity(entity))
SDKHook(entity, SDKHook_SpawnPost, OnEntitySpawned); //don't draw tails if we disable the plugin while people have tails enabled
}
public void OnEntitySpawned(int entity)
{
if(!IsValidEdict(entity))
return;