mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-11-19 13:16:56 +00:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
8f67f0e2ee
4 files changed
+6
-3
No files matched your search
@@ -1006,6 +1006,9 @@ public class Main : BasePlugin
|
||||
try { SubmergedCompatibility.Initialize(); }
|
||||
catch (Exception e) { Utils.ThrowException(e); }
|
||||
|
||||
try { LevelImposterCompatibility.Init(); }
|
||||
catch (Exception e) { Utils.ThrowException(e); }
|
||||
|
||||
try { HandleRoleColorFiles(); }
|
||||
catch (Exception e) { Utils.ThrowException(e); }
|
||||
|
||||
|
||||
@@ -194,7 +194,7 @@ public class RemoveDisableDevicesPatch
|
||||
{
|
||||
public static void Postfix()
|
||||
{
|
||||
if (Main.LIMap) DisableDevice.AddCustomDevicesPos();
|
||||
if (Main.LIMap) LateTask.New(() => DisableDevice.AddCustomDevicesPos(), 10f, "DisableDevice");
|
||||
|
||||
bool rogueForce = Rogue.On && Main.PlayerStates.Values.Any(x => x.Role is Rogue { DisableDevices: true });
|
||||
if (!Options.DisableDevices.GetBool() && !rogueForce) return;
|
||||
|
||||
File renamed without changes.
@@ -303,7 +303,7 @@ internal class AntiAdminer : RoleBase
|
||||
{
|
||||
foreach (var (key, position) in DisableDevice.DevicePos)
|
||||
{
|
||||
if (!key.StartsWith("LIVital") && !key.StartsWith("LIAdmin") && !key.StartsWith("LICamera")) continue;
|
||||
if (!key.StartsWith("LI")) continue;
|
||||
|
||||
if (FastVector2.DistanceWithinRange(playerPos, position, usableDistance))
|
||||
{
|
||||
@@ -317,7 +317,7 @@ internal class AntiAdminer : RoleBase
|
||||
admin = true;
|
||||
AddDeviceUse(playerId, Device.Admin);
|
||||
}
|
||||
else if (key.StartsWith("LICamera"))
|
||||
else if (key.StartsWith("LICamera") || key.StartsWith("LIBinocular"))
|
||||
{
|
||||
camera = true;
|
||||
AddDeviceUse(playerId, Device.Camera);
|
||||
|
||||
Reference in new issue
Block a user