Added more SCP info
This commit is contained in:
parent
e81bf44299
commit
ece549e7a1
@ -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)
|
||||||
{
|
{
|
||||||
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);
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user