Skip to content

Commit

Permalink
forsaken:下次换execl.exe来
Browse files Browse the repository at this point in the history
  • Loading branch information
cH1yoi committed Dec 22, 2024
1 parent 9a4bc1b commit 795c59a
Show file tree
Hide file tree
Showing 32 changed files with 0 additions and 180 deletions.
Binary file added addons/l4dtoolz.dll
Binary file not shown.
Binary file added addons/metamod/bin/metamod.2.l4d2.dll
Binary file not shown.
Binary file added addons/metamod/bin/server.dll
Binary file not shown.
Binary file added addons/sourcemod/bin/sourcemod.2.l4d2.dll
Binary file not shown.
Binary file added addons/sourcemod/bin/sourcemod.logic.dll
Binary file not shown.
Binary file added addons/sourcemod/bin/sourcemod_mm.dll
Binary file not shown.
Binary file added addons/sourcemod/bin/sourcepawn.jit.x86.dll
Binary file not shown.
Binary file not shown.
Binary file added addons/sourcemod/extensions/bintools.ext.dll
Binary file not shown.
Binary file not shown.
Binary file added addons/sourcemod/extensions/clientprefs.ext.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added addons/sourcemod/extensions/dbi.mysql.ext.dll
Binary file not shown.
Binary file added addons/sourcemod/extensions/dbi.pgsql.ext.dll
Binary file not shown.
Binary file added addons/sourcemod/extensions/dbi.sqlite.ext.dll
Binary file not shown.
Binary file added addons/sourcemod/extensions/dhooks.ext.dll
Binary file not shown.
Binary file added addons/sourcemod/extensions/geoip.ext.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added addons/sourcemod/extensions/regex.ext.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added addons/sourcemod/extensions/topmenus.ext.dll
Binary file not shown.
Binary file added addons/sourcemod/extensions/updater.ext.dll
Binary file not shown.
Binary file added addons/sourcemod/extensions/webternet.ext.dll
Binary file not shown.
Binary file modified addons/sourcemod/plugins/optional/l4d_tank_control_eq.smx
Binary file not shown.
72 changes: 0 additions & 72 deletions addons/sourcemod/scripting/l4d_tank_control_eq.sp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public void OnPluginStart()
RegConsoleCmd("sm_tank", Tank_Cmd, "Shows who is becoming the tank.");
RegConsoleCmd("sm_boss", Tank_Cmd, "Shows who is becoming the tank.");
RegConsoleCmd("sm_witch", Tank_Cmd, "Shows who is becoming the tank.");
RegConsoleCmd("sm_tankpool", TankPool_Cmd, "Shows who is in the pool of possible tanks.");

// Cvars
hTankPrint = CreateConVar("tankcontrol_print_all", "0", "Who gets to see who will become the tank? (0 = Infected, 1 = Everyone)");
Expand Down Expand Up @@ -502,77 +501,6 @@ Action GiveTank_Cmd(int client, int args)
return Plugin_Handled;
}

public Action TankPool_Cmd(int client, int args)
{
if (!IsClientInGame(client))
return Plugin_Handled;
// 显示当前Tank队列
CPrintToChat(client, "%t", "TankPoolHeader");
CPrintToChat(client, "%t", "CurrentQueue");

if (h_tankQueue.Length == 0)
{
CPrintToChat(client, "%t", "QueueEmpty");
}
else
{
char steamId[64];
for (int i = 0; i < h_tankQueue.Length; i++)
{
h_tankQueue.GetString(i, steamId, sizeof(steamId));
int tankClient = getInfectedPlayerBySteamId(steamId);
if (tankClient != -1)
{
CPrintToChat(client, "%d. %N", i + 1, tankClient);
}
}
}
// 显示已经当过Tank的玩家
CPrintToChat(client, "\n%t", "PlayedTanks");
if (h_whosHadTank.Length == 0)
{
CPrintToChat(client, "%t", "NoPlayedTanks");
}
else
{
char steamId[64];
for (int i = 0; i < h_whosHadTank.Length; i++)
{
h_whosHadTank.GetString(i, steamId, sizeof(steamId));
int player = getInfectedPlayerBySteamId(steamId);
if (player != -1)
{
CPrintToChat(client, "- %N", player);
}
}
}
// 显示可用的Tank玩家
ArrayList availablePlayers = new ArrayList(ByteCountToCells(64));
AddTeamSteamIdsToArray(availablePlayers, TEAM_INFECTED);
RemoveSteamIdsFromArray(availablePlayers, h_whosHadTank);
RemoveSteamIdsFromArray(availablePlayers, h_tankQueue);
CPrintToChat(client, "\n%t", "AvailableTanks");
if (availablePlayers.Length == 0)
{
CPrintToChat(client, "%t", "NoAvailableTanks");
}
else
{
char steamId[64];
for (int i = 0; i < availablePlayers.Length; i++)
{
availablePlayers.GetString(i, steamId, sizeof(steamId));
int player = getInfectedPlayerBySteamId(steamId);
if (player != -1)
{
CPrintToChat(client, "- %N", player);
}
}
}
delete availablePlayers;
return Plugin_Handled;
}

public Action AddTankPool_Cmd(int client, int args)
{
if (args < 1)
Expand Down
54 changes: 0 additions & 54 deletions addons/sourcemod/translations/chi/l4d_tank_control_eq.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,58 +43,4 @@
{
"chi" "控制权重新回满"
}

"TankPoolHeader"
{
"chi" "=== 坦克池状态 ==="
}
"CurrentQueue"
{
"chi" "当前坦克队列:"
}
"QueueEmpty"
{
"chi" "队列为空"
}
"PlayedTanks"
{
"chi" "已经当过坦克的玩家:"
}
"AvailableTanks"
{
"chi" "可以当坦克的玩家:"
}
"NoPlayedTanks"
{
"chi" "还没有人当过坦克"
}
"NoAvailableTanks"
{
"chi" "没有可用的坦克玩家"
}
"PlayerAddedToQueue"
{
"#format" "{1:N}"
"chi" "{1} 已被添加到坦克队列"
}
"PlayerRemovedFromQueue"
{
"#format" "{1:N}"
"chi" "{1} 已从坦克队列中移除"
}
"PlayerAlreadyInQueue"
{
"#format" "{1:N}"
"chi" "{1} 已经在坦克队列中"
}
"PlayerNotInQueue"
{
"#format" "{1:N}"
"chi" "{1} 不在坦克队列中"
}
"PlayerRemovedFromCurrent"
{
"#format" "{1:N}"
"chi" "{1} 已被移除当前坦克资格"
}
}
54 changes: 0 additions & 54 deletions addons/sourcemod/translations/l4d_tank_control_eq.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,58 +43,4 @@
{
"en" "Rage Meter Refilled"
}

"TankPoolHeader"
{
"en" "{green}Tank Pool Status"
}
"CurrentQueue"
{
"en" "Current Tank Queue:"
}
"QueueEmpty"
{
"en" "Queue is empty"
}
"PlayedTanks"
{
"en" "Players who have played Tank:"
}
"AvailableTanks"
{
"en" "Available Tank Players:"
}
"NoPlayedTanks"
{
"en" "No one has played Tank yet"
}
"NoAvailableTanks"
{
"en" "No available Tank players"
}
"PlayerAddedToQueue"
{
"#format" "{1:N}"
"en" "{1} has been added to the Tank queue"
}
"PlayerRemovedFromQueue"
{
"#format" "{1:N}"
"en" "{1} has been removed from the Tank queue"
}
"PlayerAlreadyInQueue"
{
"#format" "{1:N}"
"en" "{1} is already in the Tank queue"
}
"PlayerNotInQueue"
{
"#format" "{1:N}"
"en" "{1} is not in the Tank queue"
}
"PlayerRemovedFromCurrent"
{
"#format" "{1:N}"
"en" "{1} has been removed from being the current Tank"
}
}
Binary file added addons/tickrate_enabler.dll
Binary file not shown.

0 comments on commit 795c59a

Please sign in to comment.