Compare commits

...

7 Commits

Author SHA1 Message Date
Renovate Bot
ac35d6fb69 Update dependency coverlet.collector to 6.0.4 2025-05-30 12:11:24 +00:00
962ab6d0a6 Update SCPTeamHint/SCPTeamHint.csproj 2025-05-30 14:01:49 +02:00
HoherGeist
927358ea12 Merge branch 'master' of https://git.ipost.rocks/code002lover/SecretPluginLaboratories 2025-05-30 13:52:25 +02:00
Renovate Bot
c66c2ec6f2 Update dependency csharpier to 1.0.2 2025-05-30 13:51:07 +02:00
Renovate Bot
7ce80d7eaf Update dependency Microsoft.NET.Test.Sdk to 17.14.0 2025-05-30 13:50:56 +02:00
HoherGeist
ece549e7a1 Added more SCP info 2025-05-30 13:43:16 +02:00
Renovate Bot
12a5bbe5d8 Update dependency NUnit3TestAdapter to v5 2025-05-30 00:09:00 +00:00
4 changed files with 45 additions and 18 deletions

View File

@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"csharpier": {
"version": "1.0.1",
"version": "1.0.2",
"commands": [
"csharpier"
],

View File

@ -9,11 +9,11 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.2"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0"/>
<PackageReference Include="coverlet.collector" Version="6.0.4"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0"/>
<PackageReference Include="NUnit" Version="4.3.2" />
<PackageReference Include="NUnit.Analyzers" Version="4.4.0"/>
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0"/>
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0"/>
</ItemGroup>
<ItemGroup>

View File

@ -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.Utilities;
using LabApi.Events.Arguments.PlayerEvents;
@ -7,8 +11,10 @@ using LabApi.Features;
using LabApi.Features.Console;
using LabApi.Features.Wrappers;
using PlayerRoles;
using PlayerRoles.PlayableScps.Scp079;
using PlayerRoles.PlayableScps.Scp079.GUI;
using PlayerRoles.PlayableScps.Scp096;
using Timer = System.Timers.Timer;
using PlayerRoles.PlayableScps.Scp3114;
namespace SCPTeamHint
{
@ -46,18 +52,39 @@ namespace SCPTeamHint
foreach (var player in Player.List)
{
if (!player.IsSCP) continue;
var text = $"{player.RoleBase.RoleName} | {player.HumeShield} | {player.Health} | {player.Zone}";
if (player.RoleBase is Scp096Role scp)
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> ";
switch (player.RoleBase)
{
text += "\n";
case Scp096Role scp:
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);
}
@ -83,7 +110,7 @@ namespace SCPTeamHint
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);

View File

@ -24,19 +24,19 @@
<HintPath>..\dependencies\0Harmony.dll</HintPath>
</Reference>
<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 Include="HintServiceMeow">
<HintPath>..\dependencies\HintServiceMeow-LabAPI.dll</HintPath>
</Reference>
<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 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 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>
</ItemGroup>