mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
Fix broken translations for CS:S.
This commit is contained in:
parent
795c45df30
commit
7c56de9ebb
@ -1482,7 +1482,7 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3
|
||||
|
||||
// velocity limit
|
||||
if(iGroundEntity != -1 && view_as<float>(gA_StyleSettings[gBS_Style[client]][fVelocityLimit] > 0.0) &&
|
||||
(!gB_Zones || !Shavit_InsideZone(client, Zone_NoVelLimit)))
|
||||
(!gB_Zones || !Shavit_InsideZone(client, Zone_NoVelLimit)))
|
||||
{
|
||||
float fSpeed[3];
|
||||
GetEntPropVector(client, Prop_Data, "m_vecVelocity", fSpeed);
|
||||
|
||||
@ -53,6 +53,7 @@ int gI_AdvertisementsCycle = 0;
|
||||
char gS_CurrentMap[192];
|
||||
ConVar gCV_Hostname = null;
|
||||
ConVar gCV_Hostport = null;
|
||||
BhopStyle gBS_Style[MAXPLAYERS+1];
|
||||
|
||||
// cookies
|
||||
Handle gH_HideCookie = null;
|
||||
@ -200,7 +201,7 @@ public void OnPluginStart()
|
||||
|
||||
// cvars and stuff
|
||||
gCV_GodMode = CreateConVar("shavit_misc_godmode", "3", "Enable godmode for players?\n0 - Disabled\n1 - Only prevent fall/world damage.\n2 - Only prevent damage from other players.\n3 - Full godmode.", 0, true, 0.0, true, 3.0);
|
||||
gCV_PreSpeed = CreateConVar("shavit_misc_prespeed", "3", "Stop prespeed in startzone?\n0 - Disabled\n1 - Limit 280 speed.\n2 - Block bhopping in startzone\n3 - Limit 280 speed and block bhopping in startzone.", 0, true, 0.0, true, 3.0);
|
||||
gCV_PreSpeed = CreateConVar("shavit_misc_prespeed", "3", "Stop prespeeding in the start zone?\n0 - Disabled, fully allow prespeeding.\n1 - Limit to shavit_misc_prespeedlimit.\n2 - Block bunnyhopping in startzone.\n3 - Limit to shavit_misc_prespeedlimit and block bunnyhopping.", 0, true, 0.0, true, 3.0);
|
||||
gCV_HideTeamChanges = CreateConVar("shavit_misc_hideteamchanges", "1", "Hide team changes in chat?\n0 - Disabled\n1 - Enabled", 0, true, 0.0, true, 1.0);
|
||||
gCV_RespawnOnTeam = CreateConVar("shavit_misc_respawnonteam", "1", "Respawn whenever a player joins a team?\n0 - Disabled\n1 - Enabled", 0, true, 0.0, true, 1.0);
|
||||
gCV_RespawnOnRestart = CreateConVar("shavit_misc_respawnonrestart", "1", "Respawn a dead player if he uses the timer restart command?\n0 - Disabled\n1 - Enabled", 0, true, 0.0, true, 1.0);
|
||||
@ -301,6 +302,8 @@ public void OnClientCookiesCached(int client)
|
||||
{
|
||||
gB_Hide[client] = view_as<bool>(StringToInt(sHideSetting));
|
||||
}
|
||||
|
||||
gBS_Style[client] = Shavit_GetBhopStyle(client);
|
||||
}
|
||||
|
||||
public void Shavit_OnStyleConfigLoaded(int styles)
|
||||
@ -538,7 +541,7 @@ public MRESReturn DHook_GetMaxPlayerSpeed(int pThis, Handle hReturn)
|
||||
return MRES_Ignored;
|
||||
}
|
||||
|
||||
DHookSetReturn(hReturn, view_as<float>(gA_StyleSettings[Shavit_GetBhopStyle(pThis)][fRunspeed]));
|
||||
DHookSetReturn(hReturn, view_as<float>(gA_StyleSettings[gBS_Style[pThis]][fRunspeed]));
|
||||
|
||||
return MRES_Override;
|
||||
}
|
||||
@ -654,7 +657,7 @@ public Action OnPlayerRunCmd(int client, int &buttons)
|
||||
}
|
||||
|
||||
// prespeed
|
||||
if(!gA_StyleSettings[Shavit_GetBhopStyle(client)][bPrespeed] && bInStart)
|
||||
if(!gA_StyleSettings[gBS_Style[client]][bPrespeed] && bInStart)
|
||||
{
|
||||
if((gI_PreSpeed == 2 || gI_PreSpeed == 3) && (gI_LastFlags[client] & FL_ONGROUND) == 0 && (GetEntityFlags(client) & FL_ONGROUND) > 0 && (buttons & IN_JUMP) > 0)
|
||||
{
|
||||
@ -669,9 +672,9 @@ public Action OnPlayerRunCmd(int client, int &buttons)
|
||||
if(gI_PreSpeed == 1 || gI_PreSpeed == 3)
|
||||
{
|
||||
float fSpeed[3];
|
||||
GetEntPropVector(client, Prop_Data, "m_vecVelocity", fSpeed);
|
||||
GetEntPropVector(client, Prop_Data, "m_vecAbsVelocity", fSpeed);
|
||||
|
||||
float fSpeed_New = SquareRoot(Pow(fSpeed[0], 2.0) + Pow(fSpeed[1], 2.0));
|
||||
float fSpeed_New = GetVectorLength(fSpeed);
|
||||
float fScale = (gF_PrespeedLimit / fSpeed_New);
|
||||
|
||||
if(bNoclipping)
|
||||
@ -695,6 +698,8 @@ public Action OnPlayerRunCmd(int client, int &buttons)
|
||||
|
||||
public void OnClientPutInServer(int client)
|
||||
{
|
||||
gBS_Style[client] = Shavit_GetBhopStyle(client);
|
||||
|
||||
if(!AreClientCookiesCached(client))
|
||||
{
|
||||
gB_Hide[client] = false;
|
||||
|
||||
@ -3,22 +3,22 @@
|
||||
// ---------- Commands ---------- //
|
||||
"AutobhopEnabled"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "Autobhop {1}enabled{2}."
|
||||
}
|
||||
"AutobhopDisabled"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "Autobhop {1}disabled{2}."
|
||||
}
|
||||
"CheatTimerStop"
|
||||
{
|
||||
"#format" "{1:c},{2:c},{3:s}"
|
||||
"#format" "{1:s},{2:s},{3:s}"
|
||||
"en" "{1}Timer stopped! {2}{3}"
|
||||
}
|
||||
"CommandDisabled"
|
||||
{
|
||||
"#format" "{1:c},{2:s},{3:c}"
|
||||
"#format" "{1:s},{2:s},{3:s}"
|
||||
"en" "The command ({1}{2}{3}) is disabled."
|
||||
}
|
||||
// ---------- Errors ---------- //
|
||||
@ -33,7 +33,7 @@
|
||||
}
|
||||
"StyleSelection"
|
||||
{
|
||||
"#format" "{1:c},{2:s},{3:c}"
|
||||
"#format" "{1:s},{2:s},{3:s}"
|
||||
"en" "You have selected to play {1}{2}{3}."
|
||||
}
|
||||
"StyleUnranked"
|
||||
@ -51,49 +51,49 @@
|
||||
}
|
||||
"UnrankedWarning"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "{1}WARNING: {2}This style is unranked. Your times WILL NOT be saved and will be only displayed to you!"
|
||||
}
|
||||
// ---------- Pauses ---------- //
|
||||
"MessagePause"
|
||||
{
|
||||
"#format" "{1:c},{2:c},{3:c}"
|
||||
"#format" "{1:s},{2:s},{3:s}"
|
||||
"en" "{1}Timer has been {2}paused{3}."
|
||||
}
|
||||
"MessageUnpause"
|
||||
{
|
||||
"#format" "{1:c},{2:c},{3:c}"
|
||||
"#format" "{1:s},{2:s},{3:s}"
|
||||
"en" "{1}Timer has been {2}resumed{3}."
|
||||
}
|
||||
"PauseNotOnGround"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "You {1}are not{2} allowed to pause when not on ground."
|
||||
}
|
||||
"PauseStartZone"
|
||||
{
|
||||
"#format" "{1:c},{2:c},{3:c},{4:c},{5:c}"
|
||||
"#format" "{1:s},{2:s},{3:s},{4:s},{5:s}"
|
||||
"en" "{1}You {2}cannot{3} pause in the {4}start zone{5}."
|
||||
}
|
||||
"TimerUnpaused"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "Timer has been {1}unpaused{2}."
|
||||
}
|
||||
"TimerPaused"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "Timer has been {1}paused{2}."
|
||||
}
|
||||
// ---------- Zones ---------- //
|
||||
"StartZoneUndefined"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "Your timer {1}will not{2} start as a start zone for the map is not defined."
|
||||
}
|
||||
"EndZoneUndefined"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "You {1}can't{2} teleport as an end zone for the map is not defined."
|
||||
}
|
||||
}
|
||||
|
||||
@ -3,47 +3,47 @@
|
||||
// ---------- Commands ---------- //
|
||||
"CommandAlive"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "You have to be {1}alive{2} to use this command."
|
||||
}
|
||||
"CommandDisabled"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "This command is {1}disabled{2}."
|
||||
}
|
||||
"FeatureDisabled"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "This feature is {1}disabled{2}."
|
||||
}
|
||||
"HideEnabled"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "You are now {1}hiding{2} players."
|
||||
}
|
||||
"HideDisabled"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "You are now {1}not hiding{2} players."
|
||||
}
|
||||
"LackingAccess"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "You're {1}lacking access{2} to this command."
|
||||
}
|
||||
"SpectateDead"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "You {1}cannot{2} target a dead player."
|
||||
}
|
||||
"SpectatorCount"
|
||||
{
|
||||
"#format" "{1:c},{2:N},{3:c},{4:c},{5:i},{6:c},{7:s}"
|
||||
"#format" "{1:s},{2:N},{3:s},{4:s},{5:i},{6:s},{7:s}"
|
||||
"en" "{1}{2}{3} has {4}{5}{6} spectators: {7}"
|
||||
}
|
||||
"SpectatorCountZero"
|
||||
{
|
||||
"#format" "{1:c},{2:N},{3:c}"
|
||||
"#format" "{1:s},{2:N},{3:s}"
|
||||
"en" "No one is spectating {1}{2}{3}."
|
||||
}
|
||||
"SpectatorInvalid"
|
||||
@ -56,7 +56,7 @@
|
||||
}
|
||||
"TeleportInZone"
|
||||
{
|
||||
"#format" "{1:c},{2:c},{3:c},{4:c}"
|
||||
"#format" "{1:s},{2:s},{3:s},{4:s}"
|
||||
"en" "You {1}cannot teleport{2} inside the {3}start/end zones{4}."
|
||||
}
|
||||
"TeleportInvalidTarget"
|
||||
@ -70,18 +70,18 @@
|
||||
}
|
||||
"WeaponAlive"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "You need to be {1}alive{2} to spawn weapons."
|
||||
}
|
||||
// ---------- Misc ---------- //
|
||||
"BHStartZoneDisallowed"
|
||||
{
|
||||
"#format" "{1:c},{2:c},{3:c},{4:c}"
|
||||
"#format" "{1:s},{2:s},{3:s},{4:s}"
|
||||
"en" "Bunnyhopping in the {1}start zone{2} is {3}not allowed{4}."
|
||||
}
|
||||
"WRNotice"
|
||||
{
|
||||
"#format" "{1:c},{2:s}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "{1}NEW {2} WR!!!"
|
||||
}
|
||||
}
|
||||
|
||||
@ -39,33 +39,33 @@
|
||||
// ---------- Points ---------- //
|
||||
"ApproximatePoints"
|
||||
{
|
||||
"#format" "{1:c},{2:s},{3:c},{4:c},{5:.01f},{6:c},{7:c},{8:i},{9:s}"
|
||||
"#format" "{1s},{2:s},{3s},{4s},{5:.01f},{6s},{7s},{8:i},{9:s}"
|
||||
"en" "{1}{2}{3}: Around {4}{5}{6} points for a time of {7}{8}{9}."
|
||||
}
|
||||
"Rank"
|
||||
{
|
||||
"#format" "{1:c},{2:N},{3:c},{4:c},{5:i},{6:c},{7:c},{8:i},{9:c},{10:c},{11:.02f},{12:s}"
|
||||
"#format" "{1s},{2:N},{3s},{4s},{5:i},{6s},{7s},{8:i},{9s},{10s},{11:.02f},{12:s}"
|
||||
"en" "{1}{2}{3} is ranked {4}{5}{6} out of {7}{8}{9} with {10}{11} points {12}."
|
||||
}
|
||||
"UnknownPoints"
|
||||
{
|
||||
"#format" "{1:c},{2:s},{3:c}"
|
||||
"#format" "{1s},{2:s},{3s}"
|
||||
"en" "{1}{2}{3}: Unknown points, no records on map."
|
||||
}
|
||||
"Unranked"
|
||||
{
|
||||
"#format" "{1:c},{2:N},{3:c},{4:c},{5:c}"
|
||||
"#format" "{1s},{2:N},{3s},{4s},{5s}"
|
||||
"en" "{1}{2}{3} is {4}unranked{5}."
|
||||
}
|
||||
// ---------- Tiers ---------- //
|
||||
"Tier"
|
||||
{
|
||||
"#format" "{1:c},{2:s},{3:c},{4:c},{5:.01f},{6:c}"
|
||||
"#format" "{1s},{2:s},{3s},{4s},{5:.01f},{6s}"
|
||||
"en" "{1}{2}{3} is rated as {4}Tier {5}{6}."
|
||||
}
|
||||
"TierUnset"
|
||||
{
|
||||
"#format" "{1:c},{2:s},{3:c}"
|
||||
"#format" "{1s},{2:s},{3s}"
|
||||
"en" "{1}{2}{3} is not rated."
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,12 +25,12 @@
|
||||
// ---------- Replay Deletion ---------- //
|
||||
"ReplayDeleted"
|
||||
{
|
||||
"#format" "{1:c},{2:s},{3:c}"
|
||||
"#format" "{1:s},{2:s},{3:s}"
|
||||
"en" "Deleted replay for {1}{2}{3}."
|
||||
}
|
||||
"ReplayDeleteFailure"
|
||||
{
|
||||
"#format" "{1:c},{2:s},{3:c}"
|
||||
"#format" "{1:s},{2:s},{3:s}"
|
||||
"en" "Could not delete replay for {1}{2}{3}."
|
||||
}
|
||||
}
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
// ---------- Errors ---------- //
|
||||
"StatsMenuFailure"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "{1}ERROR: {2}Could not open the stats menu."
|
||||
}
|
||||
// ---------- Map Completions ---------- //
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
}
|
||||
"DeletedRecordsMap"
|
||||
{
|
||||
"#format" "{1:c},{2:s},{3:c}"
|
||||
"#format" "{1:s},{2:s},{3:s}"
|
||||
"en" "Deleted ALL records for {1}{2}{3}."
|
||||
}
|
||||
// ---------- Client Menus ---------- //
|
||||
@ -27,22 +27,22 @@
|
||||
// ---------- Completion Messages ---------- //
|
||||
"FirstCompletion"
|
||||
{
|
||||
"#format" "{1:c},{2:N},{3:c},{4:c},{5:s},{6:c},{7:c},{8:s},{9:c},{10:c},{11:d},{12:c},{13:d},{14:d},{15:s},{16:c}"
|
||||
"#format" "{1:s},{2:N},{3:s},{4:s},{5:s},{6:s},{7:s},{8:s},{9:s},{10:s},{11:d},{12:s},{13:d},{14:d},{15:s},{16:s}"
|
||||
"en" "{1}{2}{3} finished ({4}{5}{6}) in {7}{8}{9} ({10}#{11}{12}) with {13} jumps, {14} strafes{15}{16}."
|
||||
}
|
||||
"NotFirstCompletion"
|
||||
{
|
||||
"#format" "{1:c},{2:N},{3:c},{4:c},{5:s},{6:c},{7:c},{8:s},{9:c},{10:c},{11:d},{12:c},{13:d},{14:d},{15:s},{16:c},{17:c},{18:s}"
|
||||
"#format" "{1:s},{2:N},{3:s},{4:s},{5:s},{6:s},{7:s},{8:s},{9:s},{10:s},{11:d},{12:s},{13:d},{14:d},{15:s},{16:s},{17:s},{18:s}"
|
||||
"en" "{1}{2}{3} finished ({4}{5}{6}) in {7}{8}{9} ({10}#{11}{12}) with {13} jumps, {14} strafes{15}{16}. {17}(-{18})"
|
||||
}
|
||||
"WorseTime"
|
||||
{
|
||||
"#format" "{1:c},{2:s},{3:c},{4:c},{5:s},{6:c},{7:d},{8:d},{9:s},{10:c},{11:s}"
|
||||
"#format" "{1:s},{2:s},{3:s},{4:s},{5:s},{6:s},{7:d},{8:d},{9:s},{10:s},{11:s}"
|
||||
"en" "You have finished ({1}{2}{3}) in {4}{5}{6} with {7} jumps, {8} strafes{9}{10}. (+{11})"
|
||||
}
|
||||
"UnrankedTime"
|
||||
{
|
||||
"#format" "{1:c},{2:s},{3:c},{4:c},{5:s},{6:c},{7:d},{8:d},{9:s},{10:c}"
|
||||
"#format" "{1:s},{2:s},{3:s},{4:s},{5:s},{6:s},{7:d},{8:d},{9:s},{10:s}"
|
||||
"en" "You have finished ({1}{2}{3}) in {4}{5}{6} with {7} jumps, {8} strafes{9}{10}."
|
||||
}
|
||||
// ---------- Deletion Menus ---------- //
|
||||
@ -90,7 +90,7 @@
|
||||
}
|
||||
"NoStyles"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "{1}FATAL ERROR: {2}No styles are available. Contact the server owner immediately!"
|
||||
}
|
||||
// ---------- WR Menu ---------- //
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
}
|
||||
"ZonesCommand"
|
||||
{
|
||||
"#format" "{1:c},{2:c}"
|
||||
"#format" "{1:s},{2:s}"
|
||||
"en" "You {1}cannot{2} setup mapzones when you're dead."
|
||||
}
|
||||
"ZoneCustomSpawnExists"
|
||||
@ -100,7 +100,7 @@
|
||||
}
|
||||
"ZoneDeleteSuccessful"
|
||||
{
|
||||
"#format" "{1:c},{2:s},{3:c}"
|
||||
"#format" "{1:s},{2:s},{3:s}"
|
||||
"en" "Deleted {1}{2}{3} successfully."
|
||||
}
|
||||
"ZoneDeleteAllSuccessful"
|
||||
@ -117,7 +117,7 @@
|
||||
}
|
||||
"ZoneEdgeChange"
|
||||
{
|
||||
"#format" "{1:s},{2:c},{3:s},{4:c},{5:c},{6:.01f},{7:c}"
|
||||
"#format" "{1:s},{2:s},{3:s},{4:s},{5:s},{6:.01f},{7:s}"
|
||||
"en" "{1} edge {2}{3}{4} by {5}{6} degrees{7}."
|
||||
}
|
||||
"ZoneMenuDeleteTitle"
|
||||
@ -151,7 +151,7 @@
|
||||
}
|
||||
"ZonePoint"
|
||||
{
|
||||
"#format" "{1:d},{2:c}"
|
||||
"#format" "{1:d},{2:s}"
|
||||
"en" "Point {1} | {2} axis"
|
||||
}
|
||||
"ZoneRotate"
|
||||
@ -170,7 +170,7 @@
|
||||
}
|
||||
"ZoneRotateSuccessful"
|
||||
{
|
||||
"#format" "{1:c},{2:.01f},{3:c}"
|
||||
"#format" "{1:s},{2:.01f},{3:s}"
|
||||
"en" "Zone rotated by {1}{2}{3} degrees."
|
||||
}
|
||||
"ZoneSecond"
|
||||
@ -207,12 +207,12 @@
|
||||
}
|
||||
"ZoneSizeIncrease"
|
||||
{
|
||||
"#format" "{1:c},{2:c},{3:c},{4:d},{5:c},{6:.01f},{7:c}"
|
||||
"#format" "{1:s},{2:s},{3:s},{4:d},{5:s},{6:.01f},{7:s}"
|
||||
"en" "{1}{2} axis{3} (point {4}) increased by {5}{6}{7}"
|
||||
}
|
||||
"ZoneSizeDecrease"
|
||||
{
|
||||
"#format" "{1:c},{2:c},{3:c},{4:d},{5:c},{6:.01f},{7:c}"
|
||||
"#format" "{1:s},{2:s},{3:s},{4:d},{5:s},{6:.01f},{7:s}"
|
||||
"en" "{1}{2} axis{3} (point {4}) decreased by {5}{6}{7}"
|
||||
}
|
||||
"ZoneTeleportUpdated"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user