Skip to content

Commit

Permalink
修正一些插件的翻译被覆盖,修正!pen不扣除分数,修正一些翻译,更新rygive并更新签名
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasylidong committed Jun 4, 2023
1 parent e4cbc1e commit 103a194
Show file tree
Hide file tree
Showing 12 changed files with 1,654 additions and 1,554 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ $RECYCLE.BIN/
# =========================
# Operating System Files
# =========================
.vscode/settings.json
18 changes: 18 additions & 0 deletions addons/sourcemod/gamedata/rygive.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,24 @@
/* ? ? ? ? ? ? ? ? E8 ? ? ? ? 84 ? 75 ? 8B ? E8 ? ? ? ? C6 86 */
}

/* TerrorNavMesh::GetLastCheckpoint(TerrorNavMesh *__hidden this) */
"TerrorNavMesh::GetLastCheckpoint"
{
"library" "server"
"linux" "@_ZNK13TerrorNavMesh17GetLastCheckpointEv"
"windows" "\x2A\x2A\x2A\x2A\x2A\x2A\x56\x33\x2A\x57\x85\x2A\x7E\x2A\x8B\xB1\x2A\x2A\x2A\x2A\x8B\x2A\x8B"
/* ? ? ? ? ? ? 56 33 ? 57 85 ? 7E ? 8B B1 ? ? ? ? 8B ? 8B */
}

/* Checkpoint::GetLargestArea(Checkpoint *__hidden this) */
"Checkpoint::GetLargestArea"
{
"library" "server"
"linux" "@_ZNK10Checkpoint14GetLargestAreaEv"
"windows" "\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x8B\x2A\x53\x8B\x2A\x2A\x33\x2A\x33\x2A\x89\x2A\x2A\x83"
/* ? ? ? ? ? ? ? 8B ? 53 8B ? ? 33 ? 33 ? 89 ? ? 83 */
}

"NextBotCreatePlayerBot<Smoker>"
{
"library" "server"
Expand Down
Binary file modified addons/sourcemod/plugins/extend/l4d_stats.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/extend/rpg.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/extend/rygive.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/optional/l4d_tank_control_eq.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/optional/survivor_mvp.smx
Binary file not shown.
10 changes: 5 additions & 5 deletions addons/sourcemod/scripting/extend/l4d_stats.sp
Original file line number Diff line number Diff line change
Expand Up @@ -3536,20 +3536,20 @@ public Action:event_PlayerDeath(Handle:event, const String:name[], bool:dontBroa
if (Mode > 1)
{
GetClientName(Attacker, AttackerName, sizeof(AttackerName));
StatsPrintToChatAll("\x05%s \x04爆头杀死\x01 %s\x05%s \x01获得 \x04%i \x01分 !", AttackerName, (VictimIsBot ? "一只" : ""), VictimName, Score);
StatsPrintToChatAll("\x05%s \x04爆头杀死 \x05%s \x01获得 \x04%i \x01分 !", AttackerName, VictimName, Score);
}
else
StatsPrintToChat(Attacker, "\x04爆头杀死\x01 %s\x05%s \x01 获得 \x04%i \x01分!", (VictimIsBot ? "一只" : ""), VictimName, Score);
StatsPrintToChat(Attacker, "\x04爆头杀死 \x05%s \x01 获得 \x04%i \x01分!", VictimName, Score);
}
else
{
if (Mode > 1)
{
GetClientName(Attacker, AttackerName, sizeof(AttackerName));
StatsPrintToChatAll("\x05%s \x04杀死\x01 %s\x05%s \x01获得 \x04%i \x01分 !", AttackerName, (VictimIsBot ? "一只" : ""), VictimName, Score);
StatsPrintToChatAll("\x05%s \x04杀死 \x05%s \x01获得 \x04%i \x01分 !", AttackerName, VictimName, Score);
}
else
StatsPrintToChat(Attacker, "\x04杀死\x01 %s\x05%s \x01 获得 \x04%i \x01分!", (VictimIsBot ? " 一只" : ""), VictimName, Score);
StatsPrintToChat(Attacker, "\x04杀死 \x05%s \x01 获得 \x04%i \x01分!", VictimName, Score);
}
}

Expand Down Expand Up @@ -11847,7 +11847,7 @@ stock bool IsGaoJiRenJiEnabled()
stock bool IsNormalMode()
{
ConVar cvar = FindConVar("l4d_infected_limit");
if(cvar_mode == null) return true;
if(cvar == null) return true;
return false;
}

Expand Down
13 changes: 6 additions & 7 deletions addons/sourcemod/scripting/extend/rpg.sp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ bool IsAnne = false;
int InfectedNumber=6;
bool g_bEnableGlow = true;
ConVar GaoJiRenJi, AllowBigGun, g_InfectedNumber, g_cShopEnable, g_hEnableGlow;
bool g_bGodFrameSystemAvailable = false, g_bHatSystemAvailable = false, g_bHextagsSystemAvailable = false, g_bl4dstatsSystemAvailable = false, g_bpunchangelSystemAvailable = false, g_bMysqlSystemAvailable = false;
bool g_bGodFrameSystemAvailable = false, g_bHatSystemAvailable = false, g_bHextagsSystemAvailable = false, g_bl4dstatsSystemAvailable = false, g_bMysqlSystemAvailable = false;
//new lastpoints[MAXPLAYERS + 1];

//枚举变量,修改武器消耗积分在此。
Expand Down Expand Up @@ -181,23 +181,23 @@ public void OnAllPluginsLoaded()
g_bHatSystemAvailable = LibraryExists("l4d_hats");
g_bl4dstatsSystemAvailable = LibraryExists("l4d_stats");
g_bHextagsSystemAvailable = LibraryExists("hextags");
g_bpunchangelSystemAvailable = LibraryExists("punch_angle");
// g_bpunchangelSystemAvailable = LibraryExists("punch_angle");
}
public void OnLibraryAdded(const char[] name)
{
if ( StrEqual(name, "l4d2_godframes_control_merge") ) { g_bGodFrameSystemAvailable = true; }
else if ( StrEqual(name, "l4d_hats") ) { g_bHatSystemAvailable = true; }
else if ( StrEqual(name, "l4d_stats") ) { g_bl4dstatsSystemAvailable = true; }
else if ( StrEqual(name, "hextags") ) { g_bHextagsSystemAvailable = true; }
else if ( StrEqual(name, "punch_angle") ) { g_bpunchangelSystemAvailable = true; }
// else if ( StrEqual(name, "punch_angle") ) { g_bpunchangelSystemAvailable = true; }
}
public void OnLibraryRemoved(const char[] name)
{
if ( StrEqual(name, "l4d2_godframes_control_merge") ) { g_bGodFrameSystemAvailable = false; }
else if ( StrEqual(name, "l4d_hats") ) { g_bHatSystemAvailable = false; }
else if ( StrEqual(name, "l4d_stats") ) { g_bl4dstatsSystemAvailable = false; }
else if ( StrEqual(name, "hextags") ) { g_bHextagsSystemAvailable = false; }
else if ( StrEqual(name, "punch_angle") ) { g_bpunchangelSystemAvailable = false; }
// else if ( StrEqual(name, "punch_angle") ) { g_bpunchangelSystemAvailable = false; }
}

//god frame send forward implement
Expand Down Expand Up @@ -439,7 +439,6 @@ public void RewardScore(){
return;
if(FindConVar("l4d_ready_cfg_name"))
{
int renji=0;
GaoJiRenJi = FindConVar("sb_fix_enabled");
if(GaoJiRenJi != null && GaoJiRenJi.BoolValue){
PrintToChatAll("\x01[\x04RANK\x01]\x04由于开启了高级人机,不能获得额外过关积分");
Expand Down Expand Up @@ -932,9 +931,9 @@ public Action BuyPen(int client,int args)
{
bool result = false;
if(GetRandomInt(0,1))
result = RemovePoints(client,0,"pumpshotgun");
result = RemovePoints(client,50,"pumpshotgun");
else
result = RemovePoints(client,0,"shotgun_chrome");
result = RemovePoints(client,50,"shotgun_chrome");
if(result)
PrintToChatAll("\x04%N \x03快速花费50B数随机购买一把单喷",client);
}else{
Expand Down
Loading

0 comments on commit 103a194

Please sign in to comment.