Compare commits
7 Commits
c7dd716c0b
...
e07c22b7e3
Author | SHA1 | Date | |
---|---|---|---|
|
e07c22b7e3 | ||
962ab6d0a6 | |||
|
927358ea12 | ||
|
c66c2ec6f2 | ||
|
7ce80d7eaf | ||
|
ece549e7a1 | ||
|
12a5bbe5d8 |
@ -3,7 +3,7 @@
|
|||||||
"isRoot": true,
|
"isRoot": true,
|
||||||
"tools": {
|
"tools": {
|
||||||
"csharpier": {
|
"csharpier": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"commands": [
|
"commands": [
|
||||||
"csharpier"
|
"csharpier"
|
||||||
],
|
],
|
||||||
|
@ -10,10 +10,10 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="coverlet.collector" Version="6.0.2"/>
|
<PackageReference Include="coverlet.collector" Version="6.0.2"/>
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0"/>
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0"/>
|
||||||
<PackageReference Include="NUnit" Version="4.3.2" />
|
<PackageReference Include="NUnit" Version="4.3.2" />
|
||||||
<PackageReference Include="NUnit.Analyzers" Version="4.4.0"/>
|
<PackageReference Include="NUnit.Analyzers" Version="4.8.1"/>
|
||||||
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0"/>
|
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
using HintServiceMeow.Core.Enum;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Timers;
|
||||||
|
using HintServiceMeow.Core.Enum;
|
||||||
using HintServiceMeow.Core.Models.Hints;
|
using HintServiceMeow.Core.Models.Hints;
|
||||||
using HintServiceMeow.Core.Utilities;
|
using HintServiceMeow.Core.Utilities;
|
||||||
using LabApi.Events.Arguments.PlayerEvents;
|
using LabApi.Events.Arguments.PlayerEvents;
|
||||||
@ -7,8 +11,10 @@ using LabApi.Features;
|
|||||||
using LabApi.Features.Console;
|
using LabApi.Features.Console;
|
||||||
using LabApi.Features.Wrappers;
|
using LabApi.Features.Wrappers;
|
||||||
using PlayerRoles;
|
using PlayerRoles;
|
||||||
|
using PlayerRoles.PlayableScps.Scp079;
|
||||||
|
using PlayerRoles.PlayableScps.Scp079.GUI;
|
||||||
using PlayerRoles.PlayableScps.Scp096;
|
using PlayerRoles.PlayableScps.Scp096;
|
||||||
using Timer = System.Timers.Timer;
|
using PlayerRoles.PlayableScps.Scp3114;
|
||||||
|
|
||||||
namespace SCPTeamHint
|
namespace SCPTeamHint
|
||||||
{
|
{
|
||||||
@ -47,15 +53,36 @@ namespace SCPTeamHint
|
|||||||
{
|
{
|
||||||
if (!player.IsSCP) continue;
|
if (!player.IsSCP) continue;
|
||||||
|
|
||||||
var text = $"{player.RoleBase.RoleName} | {player.HumeShield} | {player.Health} | {player.Zone}";
|
var text = $" <size=25><color=red>{player.RoleBase.RoleName}</color> | <color=#6761cd>{player.HumeShield}</color> | <color=#da0101>{player.Health}</color> | <color=grey>{player.Zone}</color></size> ";
|
||||||
|
|
||||||
if (player.RoleBase is Scp096Role scp)
|
switch (player.RoleBase)
|
||||||
{
|
{
|
||||||
|
case Scp096Role scp:
|
||||||
text += "\n";
|
text += "\n";
|
||||||
|
|
||||||
scp.SubroutineModule.TryGetSubroutine(out Scp096TargetsTracker tracker);
|
scp.SubroutineModule.TryGetSubroutine(out Scp096TargetsTracker tracker);
|
||||||
|
|
||||||
text += $"Targets: {tracker.Targets.Count}";
|
text += $"Targets: {tracker.Targets.Count}";
|
||||||
|
break;
|
||||||
|
case Scp3114Role scp3114:
|
||||||
|
{
|
||||||
|
text += "\n";
|
||||||
|
|
||||||
|
var stolenRole = scp3114.CurIdentity.StolenRole;
|
||||||
|
|
||||||
|
text += $" {stolenRole}";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case Scp079Role scp079:
|
||||||
|
text =
|
||||||
|
$" <size=25><color=red>{player.RoleBase.RoleName}</color> | <color=grey>{scp079.CurrentCamera.Room.Zone}</color></size> ";
|
||||||
|
text += "\n";
|
||||||
|
|
||||||
|
scp079.SubroutineModule.TryGetSubroutine(out Scp079AuxManager auxManager);
|
||||||
|
scp079.SubroutineModule.TryGetSubroutine(out Scp079TierManager tierManager);
|
||||||
|
|
||||||
|
text += $" <color=grey>AUX: {auxManager.CurrentAuxFloored} / {auxManager.MaxAux} Level: {tierManager.AccessTierLevel}</color>";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
hintTexts.Add(text);
|
hintTexts.Add(text);
|
||||||
@ -83,7 +110,7 @@ namespace SCPTeamHint
|
|||||||
|
|
||||||
var hint = new Hint
|
var hint = new Hint
|
||||||
{
|
{
|
||||||
Text = "Apfelsaft", Alignment = HintAlignment.Left, YCoordinate = 300, Hide = true
|
Text = "Apfelsaft", Alignment = HintAlignment.Left, YCoordinate = 100, Hide = true
|
||||||
};
|
};
|
||||||
|
|
||||||
var playerDisplay = PlayerDisplay.Get(ev.Player);
|
var playerDisplay = PlayerDisplay.Get(ev.Player);
|
||||||
|
@ -24,19 +24,19 @@
|
|||||||
<HintPath>..\dependencies\0Harmony.dll</HintPath>
|
<HintPath>..\dependencies\0Harmony.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Assembly-CSharp">
|
<Reference Include="Assembly-CSharp">
|
||||||
<HintPath>..\..\.local\share\Steam\steamapps\common\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed\Assembly-CSharp.dll</HintPath>
|
<HintPath>..\dependencies\Assembly-CSharp.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="HintServiceMeow">
|
<Reference Include="HintServiceMeow">
|
||||||
<HintPath>..\dependencies\HintServiceMeow-LabAPI.dll</HintPath>
|
<HintPath>..\dependencies\HintServiceMeow-LabAPI.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Mirror">
|
<Reference Include="Mirror">
|
||||||
<HintPath>..\..\.local\share\Steam\steamapps\common\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed\Mirror.dll</HintPath>
|
<HintPath>..\dependencies\Mirror.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Pooling">
|
<Reference Include="Pooling">
|
||||||
<HintPath>..\..\.local\share\Steam\steamapps\common\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed\Pooling.dll</HintPath>
|
<HintPath>..\dependencies\Pooling.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine.CoreModule">
|
<Reference Include="UnityEngine.CoreModule">
|
||||||
<HintPath>..\..\.local\share\Steam\steamapps\common\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
|
<HintPath>..\dependencies\UnityEngine.CoreModule.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user