Skip to content

Commit

Permalink
added Death through Scp035 Message
Browse files Browse the repository at this point in the history
  • Loading branch information
GrafDimenzio committed Dec 18, 2020
1 parent c586e38 commit 92d0e65
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
3 changes: 3 additions & 0 deletions Scp035/EventHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ private void Death(Synapse.Api.Events.SynapseEventArguments.PlayerDeathEventArgs
{
if (ev.Victim.RoleID == 35)
Map.Get.AnnounceScpDeath("0 3 5");

if (ev.Victim != ev.Killer && ev.Killer?.RoleID == 35)
ev.Victim.OpenReportWindow(PluginClass.GetTranslation("killedby035"));
}

private void Use(Synapse.Api.Events.SynapseEventArguments.PlayerItemInteractEventArgs ev)
Expand Down
5 changes: 3 additions & 2 deletions Scp035/PluginClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Scp035
SynapseMajor = SynapseController.SynapseMajor,
SynapseMinor = SynapseController.SynapseMinor,
SynapsePatch = SynapseController.SynapsePatch,
Version = "v.1.0.1"
Version = "v.1.0.2"
)]
public class PluginClass : AbstractPlugin
{
Expand Down Expand Up @@ -42,7 +42,8 @@ public override void Load()
{"survived035" , "This was Scp035 but you have survived it" },
{"035interact","You can't use a Scp-035 Item for any interaction with it!" },
{"pickup035","<b>You have picked up <color=red>Scp-035</color>.</b>" },
{"spawn035","<b>You are <color=red>SCP-035</color></b>" }
{"spawn035","<b>You are <color=red>SCP-035</color></b>" },
{"killedby035","<b>You was killed by <color=red>SCP</color>-035</b>" }
};
Translation.CreateTranslations(translation);
trans = Translation;
Expand Down
16 changes: 8 additions & 8 deletions Scp035/Scp035.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@
<HintPath>..\packages\Lib.Harmony.2.0.4\lib\net472\0Harmony.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\Assembly-CSharp.dll</HintPath>
<HintPath>..\packages\SynapseSL.2.3.0\lib\net472\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\Assembly-CSharp-firstpass.dll</HintPath>
<HintPath>..\packages\SynapseSL.2.3.0\lib\net472\Assembly-CSharp-firstpass.dll</HintPath>
</Reference>
<Reference Include="LiteDB, Version=5.0.9.0, Culture=neutral, PublicKeyToken=4ee40123013c9f27, processorArchitecture=MSIL">
<HintPath>..\packages\LiteDB.5.0.9\lib\net45\LiteDB.dll</HintPath>
</Reference>
<Reference Include="Mirror, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\Mirror.dll</HintPath>
<HintPath>..\packages\SynapseSL.2.3.0\lib\net472\Mirror.dll</HintPath>
</Reference>
<Reference Include="Synapse, Version=2.2.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\Synapse.dll</HintPath>
<Reference Include="Synapse, Version=2.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SynapseSL.2.3.0\lib\net472\Synapse.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -59,13 +59,13 @@
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\UnityEngine.dll</HintPath>
<HintPath>..\packages\SynapseSL.2.3.0\lib\net472\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\UnityEngine.CoreModule.dll</HintPath>
<HintPath>..\packages\SynapseSL.2.3.0\lib\net472\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.PhysicsModule, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SynapseSL.2.2.0\lib\net472\UnityEngine.PhysicsModule.dll</HintPath>
<HintPath>..\packages\SynapseSL.2.3.0\lib\net472\UnityEngine.PhysicsModule.dll</HintPath>
</Reference>
<Reference Include="YamlDotNet, Version=8.0.0.0, Culture=neutral, PublicKeyToken=ec19458f3c15af5e, processorArchitecture=MSIL">
<HintPath>..\packages\YamlDotNet.8.1.2\lib\net45\YamlDotNet.dll</HintPath>
Expand Down
2 changes: 1 addition & 1 deletion Scp035/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<packages>
<package id="Lib.Harmony" version="2.0.4" targetFramework="net472" />
<package id="LiteDB" version="5.0.9" targetFramework="net472" />
<package id="SynapseSL" version="2.2.0" targetFramework="net472" />
<package id="SynapseSL" version="2.3.0" targetFramework="net472" />
<package id="YamlDotNet" version="8.1.2" targetFramework="net472" />
</packages>

0 comments on commit 92d0e65

Please sign in to comment.