Skip to content

Commit 1977f41

Browse files
committed
Release1.3.9
1 parent fe4566b commit 1977f41

18 files changed

Lines changed: 341 additions & 121 deletions

HelpSense/Commands/Timer.cs

Lines changed: 0 additions & 30 deletions
This file was deleted.

HelpSense/Commands/VersionCommand.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
2828
sb.AppendLine("功能开启列表(不是全部.只显示比较重要的):");
2929
sb.AppendFormat("非礼勿视机动特遣队:{0}", BoolTranslate(config.EnableSeeNoEvil)).AppendLine();
3030
sb.AppendFormat("天网机动特遣队:{0}", BoolTranslate(config.EnableSkynet)).AppendLine();
31+
sb.AppendFormat("SCP-023 黑煞星:{0}", BoolTranslate(config.SCP023)).AppendLine();
3132
sb.AppendFormat("SCP-029 暗影之女:{0}", BoolTranslate(config.EnableSCP029)).AppendLine();
3233
sb.AppendFormat("SCP-073 亚伯/亚当:{0}", BoolTranslate(config.SCP073)).AppendLine();
3334
sb.AppendFormat("SCP-191 机械少女:{0}", BoolTranslate(config.SCP191)).AppendLine();
@@ -42,8 +43,8 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
4243
sb.AppendFormat("无限子弹模式:{0}", Plugin.Instance.Config.InfiniteAmmoType).AppendLine();
4344

4445
//Copyright
45-
sb.AppendLine("-Made By X小左-");
46-
sb.AppendLine("Copyright © X小左 2022-2024");
46+
sb.AppendLine("-Made By X小左(XLittleLeft)-");
47+
sb.AppendLine("Copyright © X小左 2022-2025");
4748

4849
response = sb.ToString();
4950
StringBuilderPool.Pool.Return(sb);

HelpSense/ConfigSystem/Config.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ public class Config
8484
// /////////////////////////////////////////////////
8585
[Description("无限子弹")]
8686
public bool InfiniteAmmo { get; set; } = true;
87-
[Description("无限子弹模式(0->Old:给玩家加备用子弹来装填;1->Normal:(可能有点问题)正常模式,有换弹动作,不需要子弹换弹;2->Moment:瞬间换弹,无换弹动作,不需要子弹换弹;3->Infinite:真·无限子弹,不需要换弹)")]
88-
public InfiniteAmmoType InfiniteAmmoType { get; set; } = InfiniteAmmoType.Old;
87+
[Description("无限子弹模式(Old:给玩家加备用子弹来装填;Moment:瞬间换弹,无换弹动作,不需要子弹换弹;Infinite:真·无限子弹,不需要换弹)")]
88+
public InfiniteAmmoType InfiniteAmmoType { get; set; } = InfiniteAmmoType.Normal;
8989

9090
/// /////////////////////////////////////////////////
9191
[Description("启用修改SCP血量系统")]
@@ -196,6 +196,8 @@ public class Config
196196
public bool SCP2936 { get; set; } = true;
197197
[Description("SCP-1093")]
198198
public bool SCP1093 { get; set; } = true;
199+
[Description("SCP-023")]
200+
public bool SCP023 { get; set; } = true;
199201
}
200202
public enum MessageType
201203
{
@@ -204,7 +206,6 @@ public enum MessageType
204206
};
205207
public enum InfiniteAmmoType
206208
{
207-
Old,
208209
Normal,
209210
Moment,
210211
Infinite
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.ComponentModel;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace HelpSense.ConfigSystem
9+
{
10+
public class SSSSTranslateConfig
11+
{
12+
[Description("穿门技能")]
13+
public string DoorPiercingAbility { get; set; } = "穿门技能";
14+
[Description("穿门技能按键")]
15+
public string DoorPiercingAbilityKey { get; set; } = "穿门技能按键";
16+
[Description("穿门技能按键说明")]
17+
public string DoorPiercingAbilityKeyDescription { get; set; } = "按一下或长按就可以穿门了";
18+
[Description("穿门技能发动模式")]
19+
public string PiercingSkillActivationMode { get; set; } = "穿门技能发动模式";
20+
[Description("长按")]
21+
public string Hold { get; set; } = "长按";
22+
[Description("开关")]
23+
public string Toggle { get; set; } = "开关";
24+
}
25+
}

HelpSense/ConfigSystem/TranslateConfig.cs

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,22 +219,32 @@ public class TranslateConfig
219219
[Description("SCP-1093刷新广播")]
220220
public string SCP1093SpawnBroadcast { get; set; } = "你是 <color=yellow>SCP-1093 人灯</color>";
221221
[Description("SCP-1093技能介绍")]
222-
public List<string> SCP1093SkillIntroduction { get; set; } = new List<string>()
223-
{
222+
public List<string> SCP1093SkillIntroduction { get; set; } =
223+
[
224224
"你是 [SCP-1093] 持续照亮附近5米范围,并辐射附近1米范围内的人",
225225
"你的头是虚无的,任何人对你头部没有伤害"
226-
};
226+
];
227+
[Description("SCP-023刷新广播")]
228+
public string SCP023SpawnBroadcast { get; set; } = "你是 <color=red>SCP-023 黑煞星</color>";
229+
[Description("SCP-023技能介绍")]
230+
public List<string> SCP023SkillIntroduction { get; set; } =
231+
[
232+
"你是 [SCP-023] 按对应的按键可以发动穿门技能",
233+
"使用SCP-1344的攻击你的人会遭到反噬"
234+
];
235+
[Description("SCP-023被带SCP1344的人伤害时攻击者被反噬的死亡原因")]
236+
public string SCP023ReversedCauseOfDeath { get; set; } = "你不应该带着SCP-1344出现在SCP-023面前的";
227237
[Description("警卫队长刷新广播")]
228238
public string GuardCaptainSpawnBroadcast { get; set; } = "<size=60><color=#E5DADA>你是安保队长</color></size>";
229239
[Description("SCP-191刷新广播")]
230240
public string SCP191SpawnBroadcast { get; set; } = "你成为了<color=red>SCP-191 机械少女</color>";
231241
[Description("SCP-191技能介绍")]
232-
public List<string> SCP191SkillIntroduction { get; set; } = new List<string>()
233-
{
242+
public List<string> SCP191SkillIntroduction { get; set; } =
243+
[
234244
"你是 [SCP-191] 因为你的身体的改造",
235245
"你对除了电磁和爆炸伤害的<color=red>抗性很高</color>",
236246
"但别忘了去079收容室充电"
237-
};
247+
];
238248
[Description("SCP-191电量显示")]
239249
public string SCP191BatteryHintShow { get; set; } = "<align=right><size=40><b>你目前剩余的电量:<color=yellow>%Battery%安</color></size></b></align>";
240250
[Description("SCP-191电量耗尽死亡原因")]
@@ -269,6 +279,8 @@ public class TranslateConfig
269279
public string SCP191SpecialIntroduction { get; set; } = "<color=red>SCP-191 机械少女</color>";
270280
[Description("SCP-2936特殊介绍")]
271281
public string SCP2936SpecialIntroduction { get; set; } = "<color=red>SCP-2936-1 巨型德国机器人</color>";
282+
[Description("SCP-023特殊介绍")]
283+
public string SCP023SpecialIntroduction { get; set; } = "<color=red>SCP-023 黑煞星</color>";
272284
[Description("天网机动特遣队特殊介绍")]
273285
public string SkynetSpecialIntroduction { get; set; } = "<color=blue>天网 机动特遣队</color>";
274286
[Description("非礼勿视机动特遣队特殊介绍")]

HelpSense/HelpSense.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
<Compile Include="Commands\ChatCommand\BcCommand.cs" />
5353
<Compile Include="Commands\ChatCommand\CCommand.cs" />
5454
<Compile Include="Commands\InfoCommand.cs" />
55-
<Compile Include="Commands\Timer.cs" />
5655
<Compile Include="Commands\VersionCommand.cs" />
5756
<Compile Include="Commands\RescueCommand.cs" />
5857
<Compile Include="ConfigSystem\Config.cs" />
58+
<Compile Include="ConfigSystem\SSSSTranslateConfig.cs" />
5959
<Compile Include="ConfigSystem\TranslateConfig.cs" />
6060
<Compile Include="Handler\LobbyLocationHandler.cs" />
6161
<Compile Include="Helper\Chat\ChatHelper.cs" />
@@ -71,8 +71,10 @@
7171
<Compile Include="Helper\SCP\SCPHPChangeSystem.cs" />
7272
<Compile Include="MonoBehaviors\PlayerGlowBehavior.cs" />
7373
<Compile Include="MonoBehaviors\PlayerLightBehavior.cs" />
74+
<Compile Include="SSSS\GhostlyAbility.cs" />
7475
<Compile Include="Patches\MaxHealthGetPatch.cs" />
7576
<Compile Include="Patches\PositionSyncingPatch.cs" />
77+
<Compile Include="Patches\ReloaderModulePatch.cs" />
7678
<Compile Include="Plugin.cs" />
7779
<Compile Include="ConfigSystem\Properties.cs" />
7880
<Compile Include="Properties\AssemblyInfo.cs" />

HelpSense/Helper/Event/EventHelper.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using CustomPlayerEffects;
22
using HelpSense.Helper.SCP;
3+
using InventorySystem.Items;
34
using MapGeneration;
45
using MEC;
56
using PlayerRoles;
@@ -112,7 +113,7 @@ public static void OnTeamRespawn(SpawnableWaveBase spawnableWaveBase, List<Refer
112113
{
113114
if (Player.Role is RoleTypeId.NtfCaptain)
114115
{
115-
Player.AddItem(ItemType.MicroHID);
116+
Player.AddItem(ItemType.MicroHID, ItemAddReason.AdminCommand);
116117
}
117118
}
118119
});
@@ -134,7 +135,7 @@ public static void OnTeamRespawn(SpawnableWaveBase spawnableWaveBase, List<Refer
134135

135136
player.ShowBroadcast(Plugin.Instance.TranslateConfig.ChaosLeaderSpawnBroadcast, 10, Broadcast.BroadcastFlags.Normal);
136137

137-
player.AddItem(ItemType.ParticleDisruptor);
138+
player.AddItem(ItemType.ParticleDisruptor , ItemAddReason.AdminCommand);
138139

139140
player.AddItem(ItemType.SCP1853);
140141
player.AddItem(ItemType.SCP268);
@@ -186,10 +187,10 @@ public static void OnTeamRespawn(SpawnableWaveBase spawnableWaveBase, List<Refer
186187
{
187188
player.SendBroadcast(Plugin.Instance.TranslateConfig.SCP073AbelSpawnBroadcast, 6);
188189

189-
player.ClearInventory();
190+
player.ClearInventory(false);
190191
for (int i = 0; i < 8; i++)
191192
{
192-
player.AddItem(ItemType.Jailbird);
193+
player.AddItem(ItemType.Jailbird , ItemAddReason.AdminCommand);
193194
}
194195

195196
Timing.RunCoroutine(XHelper.PositionCheckerCoroutine(player).CancelWith(player.GameObject));

HelpSense/Helper/SCP/SCPHelper.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using PlayerRoles;
1+
using InventorySystem.Items;
2+
using PlayerRoles;
23
using PluginAPI.Core;
34
using System.Collections.Generic;
45
using UnityEngine;
@@ -202,7 +203,7 @@ public void AddItems(Player Player, List<ItemType> Items)
202203
{
203204
foreach (ItemType Item in Items)
204205
{
205-
Player.AddItem(Item);
206+
Player.AddItem(Item , ItemAddReason.AdminCommand);
206207
}
207208
}
208209
}

HelpSense/Helper/SpecialRole/SpecialRoleHelper.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public static IEnumerator<float> SpecialRoleInfoHandle()
2121
string SCP1093SpecialIntroduction = config.SCP1093SpecialIntroduction;
2222
string SCP191SpecialIntroduction = config.SCP191SpecialIntroduction;
2323
string SCP2936SpecialIntroduction = config.SCP2936SpecialIntroduction;
24+
string SCP023SpecialIntroduction = config.SCP023SpecialIntroduction;
2425
string SCP073AbelSpecialIntroduction = config.SCP073AbelSpecialIntroduction;
2526
string SCP073CainSpecialIntroduction = config.SCP073CainSpecialIntroduction;
2627
string SkynetSpecialIntroduction = config.SkynetSpecialIntroduction;
@@ -115,6 +116,11 @@ public static IEnumerator<float> SpecialRoleInfoHandle()
115116
Plugin.Instance.SCP191.Player.GetPlayerUi().CommonHint.ShowRoleHint(SCP191SpecialIntroduction, [.. config.SCP191SkillIntroduction], 1.25f);
116117
}
117118

119+
if (Plugin.Instance.SCP023 != null && Plugin.Instance.SCP023.Player != null)
120+
{
121+
Plugin.Instance.SCP023.Player.GetPlayerUi().CommonHint.ShowRoleHint(SCP023SpecialIntroduction, [.. config.SCP023SkillIntroduction], 1.25f);
122+
}
123+
118124
if (!Plugin.Instance.SkynetPlayers.IsEmpty())
119125
{
120126
foreach (Player Player in Plugin.Instance.SkynetPlayers)

HelpSense/Helper/XHelper.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -399,23 +399,6 @@ public static IEnumerator<float> PositionCheckerCoroutine(Player player)
399399
}
400400
}
401401

402-
public static IEnumerator<float> InAmmo()
403-
{
404-
while (true)
405-
{
406-
if (Round.IsRoundEnded) yield break;
407-
foreach (Player Player in PlayerList.Where(x => x.IsHuman))
408-
{
409-
Player.SetAmmo(ItemType.Ammo9x19, 180);
410-
Player.SetAmmo(ItemType.Ammo12gauge, 18);
411-
Player.SetAmmo(ItemType.Ammo44cal, 18);
412-
Player.SetAmmo(ItemType.Ammo762x39, 180);
413-
Player.SetAmmo(ItemType.Ammo556x45, 180);
414-
}
415-
yield return Timing.WaitForSeconds(3f);
416-
}
417-
}
418-
419402
public static bool IsSameTeam(this Player player1, Player player2)
420403
{
421404
if (player1.Team is Team.FoundationForces && player2.Team is Team.Scientists)

0 commit comments

Comments
 (0)