Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion KruacentExiled/CustomRoles/CR/Human/Alzheimer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,25 @@ private void CreateSpawnHint(Player player)

ISCPPreferences trueSCP = Spawn.GetSCP(Player.Get(randomscp));



List<ISCPPreferences> allOtherRole;

int numberscp = Player.Enumerable.Count(p => SCPTeam.IsSCP(p.ReferenceHub));
if (numberscp == 0) return;

if (numberscp <= 1)
{
allOtherRole = Spawn.allRoles.Where(s => s != trueSCP && !s.IsSupport).ToList();
}
else
{
allOtherRole = Spawn.allRoles.Where(s => s != trueSCP).ToList();

}
KELog.Debug(trueSCP.SCPId);

List<ISCPPreferences> allOtherRole = Spawn.allRoles.Where(s => s != trueSCP).ToList();


ISCPPreferences fakeSCP1 = allOtherRole.PullRandomItem();
KELog.Debug(fakeSCP1.SCPId);
Expand Down
2 changes: 1 addition & 1 deletion KruacentExiled/MainPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ internal class MainPlugin : Plugin<Config>

private KEPlugin[] plugins;
public override string Author => "Patrique & OmerGS";
public override Version Version { get; } = new Version(2, 0, 0);
public override Version Version { get; } = new Version(2, 0, 1);

public static MainPlugin Instance { get; private set; }

Expand Down
15 changes: 15 additions & 0 deletions KruacentExiled/Map/Others/BlackoutNDoor/Handlers/Handler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,21 @@ private void LaunchEvent()
EventHandle.OnPreEvent(preEv);


if(preEv.IsAllowed)
{
if (Warhead.IsInProgress)
{
preEv.IsAllowed = false;
}


if (zone == ZoneType.LightContainment && Exiled.API.Features.Map.DecontaminationState == DecontaminationState.Countdown)
{
preEv.IsAllowed = false;
}
}


if (preEv.IsAllowed && Zones.Contains(zone.GetZone()))
{

Expand Down
Loading