Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
13 changes: 1 addition & 12 deletions addons/sourcemod/scripting/mapchooser_extended_sounds.sp
Original file line number Diff line number Diff line change
Expand Up @@ -150,28 +150,17 @@ public OnPluginEnd()
}
*/

/*
* Moved to OnConfigsExecuted due to cvar requirements
public OnMapStart()
{
BuildDownloadsTableAll();
}
*/


public OnConfigsExecuted()
{
g_DownloadAllSounds = GetConVarBool(g_Cvar_DownloadAllSounds);

SetSoundSetFromCVar();

if (g_DownloadAllSounds)
{
BuildDownloadsTableAll();
}
else
{
BuildDownloadsTable(g_CurrentSoundSet);
}
}

SetSoundSetFromCVar()
Expand Down
Binary file not shown.
9 changes: 7 additions & 2 deletions addons/sourcemod/scripting/nominations_extended.sp
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,19 @@ public Action:Command_Nominate(client, args)
}

decl String:mapname[PLATFORM_MAX_PATH];
GetCmdArg(1, mapname, sizeof(mapname));
decl String:displayName[PLATFORM_MAX_PATH];
GetCmdArg(1, displayName, sizeof(displayName));

new status;
if (!GetTrieValue(g_mapTrie, mapname, status))
if (FindMap(displayName, mapname, sizeof(mapname)) == FindMap_NotFound)
{
CReplyToCommand(client, "%t", "Map was not found", mapname);
return Plugin_Handled;
}
if (!GetTrieValue(g_mapTrie, mapname, status)) {
CReplyToCommand(client, "%t", "Map was not found", mapname);
return Plugin_Handled;
}

if ((status & MAPSTATUS_DISABLED) == MAPSTATUS_DISABLED)
{
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/rockthevote_extended.sp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public OnClientConnected(client)
g_Voted[client] = false;

g_Voters++;
g_VotesNeeded = RoundToFloor(float(g_Voters) * GetConVarFloat(g_Cvar_Needed));
g_VotesNeeded = RoundToCeil(float(g_Voters) * GetConVarFloat(g_Cvar_Needed));

return;
}
Expand All @@ -149,7 +149,7 @@ public OnClientDisconnect(client)

g_Voters--;

g_VotesNeeded = RoundToFloor(float(g_Voters) * GetConVarFloat(g_Cvar_Needed));
g_VotesNeeded = RoundToCeil(float(g_Voters) * GetConVarFloat(g_Cvar_Needed));

if (!g_CanRTV)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"ru" "Голосование уже в процессе. Попробуйте через {1} с."
}

} "Tie Vote"
"Tie Vote"
{
"#format" "{1:i}"
"ru" "{1} карты набрали одинаковое количество голосов.\nНеобходимо повторное голосование !"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мой косяк, странно что я упустил эту сроку)

Expand Down