Skip to content

Commit f98ba83

Browse files
committed
Simplification
Sorta.
1 parent cf5e81a commit f98ba83

4 files changed

Lines changed: 12 additions & 14 deletions

File tree

-88 Bytes
Binary file not shown.

addons/sourcemod/scripting/1v1.sp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public Plugin myinfo =
3535
name = "1v1 EQ",
3636
author = "Blade + Confogl Team, Tabun, Visor",
3737
description = "A plugin designed to support 1v1.",
38-
version = "0.2.3",
38+
version = "0.2.4",
3939
url = "https://github.com/SirPlease/L4D2-Competitive-Rework"
4040
};
4141

@@ -74,16 +74,12 @@ void Event_PlayerHurt(Event hEvent, const char[] sEventName, bool bDontBroadcast
7474
int iRemainingHealth = GetClientHealth(iAttacker);
7575

7676
// [1v1] Player (Hunter) had 250 health remaining!
77-
// [1v1] AI (Hunter) had 250 health remaining!
77+
// [1v1] [BOT] Hunter had 250 health remaining!
7878

7979
if (IsFakeClient(iAttacker))
80-
CPrintToChatAll("%t %t%t", "Tag", "AI", "HealthRemaining", "", L4D2_InfectedNames[iZclass], iRemainingHealth);
80+
CPrintToChatAll("%t %t", "Tag", "HealthRemainingAI", L4D2_InfectedNames[iZclass], iRemainingHealth);
8181
else
82-
{
83-
char sName[MAX_NAME_LENGTH];
84-
GetClientName(iAttacker, sName, sizeof(sName));
85-
CPrintToChatAll("%t %t", "Tag", "HealthRemaining", sName, L4D2_InfectedNames[iZclass], iRemainingHealth);
86-
}
82+
CPrintToChatAll("%t %t", "Tag", "HealthRemaining", iAttacker, L4D2_InfectedNames[iZclass], iRemainingHealth);
8783

8884
RequestFrame(NextFrame_PlayerHurt, iAttackerId);
8985

addons/sourcemod/translations/1v1.phrases.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
}
77
"HealthRemaining"
88
{
9-
"#format" "{1:s},{2:s},{3:d}" // 1:sName 2:L4D2_InfectedNames[iZclass] 3:iRemainingHealth
9+
"#format" "{1:N},{2:s},{3:d}" // 1:iAttacker 2:L4D2_InfectedNames[iZclass] 3:iRemainingHealth
1010
"en" "{red}{1}{default} ({green}{2}{default}) had {olive}{3}{default} health remaining!"
1111
}
12-
"AI"
12+
"HealthRemainingAI"
1313
{
14-
"en" "AI"
14+
"#format" "{1:s},{2:d}" // 1:L4D2_InfectedNames[iZclass] 2:iRemainingHealth
15+
"en" "{blue}[{default}BOT{blue}]{default} {green}{1}{default} had {olive}{2}{default} health remaining!"
1516
}
1617
"UMad"
1718
{

addons/sourcemod/translations/es/1v1.phrases.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
}
77
"HealthRemaining"
88
{
9-
"#format" "{1:s},{2:s},{3:d}" // 1:sName 2:L4D2_InfectedNames[iZclass] 3:iRemainingHealth
9+
"#format" "{1:N},{2:s},{3:d}" // 1:iAttacker 2:L4D2_InfectedNames[iZclass] 3:iRemainingHealth
1010
"es" "¡{red}{1}{default} ({green}{2}{default}) tenía {olive}{3}{default} de vida restante!"
1111
}
12-
"AI"
12+
"HealthRemainingAI"
1313
{
14-
"es" "IA"
14+
"#format" "{1:s},{2:d}" // 1:L4D2_InfectedNames[iZclass] 2:iRemainingHealth
15+
"es" "¡{blue}[{default}BOT{blue}]{default} {green}{1}{default} tenía {olive}{2}{default} de vida restante!"
1516
}
1617
"UMad"
1718
{

0 commit comments

Comments
 (0)