Skip to content

Commit 92d0e65

Browse files
committed
added Death through Scp035 Message
1 parent c586e38 commit 92d0e65

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

Scp035/EventHandlers.cs

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ private void Death(Synapse.Api.Events.SynapseEventArguments.PlayerDeathEventArgs
2222
{
2323
if (ev.Victim.RoleID == 35)
2424
Map.Get.AnnounceScpDeath("0 3 5");
25+
26+
if (ev.Victim != ev.Killer && ev.Killer?.RoleID == 35)
27+
ev.Victim.OpenReportWindow(PluginClass.GetTranslation("killedby035"));
2528
}
2629

2730
private void Use(Synapse.Api.Events.SynapseEventArguments.PlayerItemInteractEventArgs ev)

Scp035/PluginClass.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Scp035
1212
SynapseMajor = SynapseController.SynapseMajor,
1313
SynapseMinor = SynapseController.SynapseMinor,
1414
SynapsePatch = SynapseController.SynapsePatch,
15-
Version = "v.1.0.1"
15+
Version = "v.1.0.2"
1616
)]
1717
public class PluginClass : AbstractPlugin
1818
{
@@ -42,7 +42,8 @@ public override void Load()
4242
{"survived035" , "This was Scp035 but you have survived it" },
4343
{"035interact","You can't use a Scp-035 Item for any interaction with it!" },
4444
{"pickup035","<b>You have picked up <color=red>Scp-035</color>.</b>" },
45-
{"spawn035","<b>You are <color=red>SCP-035</color></b>" }
45+
{"spawn035","<b>You are <color=red>SCP-035</color></b>" },
46+
{"killedby035","<b>You was killed by <color=red>SCP</color>-035</b>" }
4647
};
4748
Translation.CreateTranslations(translation);
4849
trans = Translation;

Scp035/Scp035.csproj

+8-8
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@
3535
<HintPath>..\packages\Lib.Harmony.2.0.4\lib\net472\0Harmony.dll</HintPath>
3636
</Reference>
3737
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
38-
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\Assembly-CSharp.dll</HintPath>
38+
<HintPath>..\packages\SynapseSL.2.3.0\lib\net472\Assembly-CSharp.dll</HintPath>
3939
</Reference>
4040
<Reference Include="Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
41-
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\Assembly-CSharp-firstpass.dll</HintPath>
41+
<HintPath>..\packages\SynapseSL.2.3.0\lib\net472\Assembly-CSharp-firstpass.dll</HintPath>
4242
</Reference>
4343
<Reference Include="LiteDB, Version=5.0.9.0, Culture=neutral, PublicKeyToken=4ee40123013c9f27, processorArchitecture=MSIL">
4444
<HintPath>..\packages\LiteDB.5.0.9\lib\net45\LiteDB.dll</HintPath>
4545
</Reference>
4646
<Reference Include="Mirror, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
47-
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\Mirror.dll</HintPath>
47+
<HintPath>..\packages\SynapseSL.2.3.0\lib\net472\Mirror.dll</HintPath>
4848
</Reference>
49-
<Reference Include="Synapse, Version=2.2.0.0, Culture=neutral, processorArchitecture=MSIL">
50-
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\Synapse.dll</HintPath>
49+
<Reference Include="Synapse, Version=2.3.0.0, Culture=neutral, processorArchitecture=MSIL">
50+
<HintPath>..\packages\SynapseSL.2.3.0\lib\net472\Synapse.dll</HintPath>
5151
</Reference>
5252
<Reference Include="System" />
5353
<Reference Include="System.Core" />
@@ -59,13 +59,13 @@
5959
<Reference Include="System.Net.Http" />
6060
<Reference Include="System.Xml" />
6161
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
62-
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\UnityEngine.dll</HintPath>
62+
<HintPath>..\packages\SynapseSL.2.3.0\lib\net472\UnityEngine.dll</HintPath>
6363
</Reference>
6464
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
65-
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\UnityEngine.CoreModule.dll</HintPath>
65+
<HintPath>..\packages\SynapseSL.2.3.0\lib\net472\UnityEngine.CoreModule.dll</HintPath>
6666
</Reference>
6767
<Reference Include="UnityEngine.PhysicsModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
68-
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\UnityEngine.PhysicsModule.dll</HintPath>
68+
<HintPath>..\packages\SynapseSL.2.3.0\lib\net472\UnityEngine.PhysicsModule.dll</HintPath>
6969
</Reference>
7070
<Reference Include="YamlDotNet, Version=8.0.0.0, Culture=neutral, PublicKeyToken=ec19458f3c15af5e, processorArchitecture=MSIL">
7171
<HintPath>..\packages\YamlDotNet.8.1.2\lib\net45\YamlDotNet.dll</HintPath>

Scp035/packages.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<packages>
33
<package id="Lib.Harmony" version="2.0.4" targetFramework="net472" />
44
<package id="LiteDB" version="5.0.9" targetFramework="net472" />
5-
<package id="SynapseSL" version="2.2.0" targetFramework="net472" />
5+
<package id="SynapseSL" version="2.3.0" targetFramework="net472" />
66
<package id="YamlDotNet" version="8.1.2" targetFramework="net472" />
77
</packages>

0 commit comments

Comments
 (0)