Skip to content

Commit

Permalink
Update to EXILED 5.0.0 beta
Browse files Browse the repository at this point in the history
  • Loading branch information
PintTheDragon committed Feb 19, 2022
1 parent 0cb5a9a commit 641b540
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions SCPStats/AutoUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ namespace SCPStats
{
internal static class AutoUpdater
{
private const string Version = "1.5.1-4";
private const string Channel = "1";
private const string Version = "1.5.2";
private const string Channel = "2";

internal static async Task RunUpdater(int waitTime = 0)
{
Expand Down
6 changes: 3 additions & 3 deletions SCPStats/Hats/HatPlayerComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private IEnumerator<float> MoveHat()
var camera = player.CameraTransform;

var rotAngles = camera.rotation.eulerAngles;
if (player.Team == Team.SCP) rotAngles.x = 0;
if (player.Role.Team == Team.SCP) rotAngles.x = 0;

var rotation = Quaternion.Euler(rotAngles);

Expand Down Expand Up @@ -94,12 +94,12 @@ private IEnumerator<float> MoveHat()
{
MirrorExtensions.SendFakeSyncVar(player1, pickup.netIdentity, pickupType, "NetworkInfo", ownerPickupInfo);
}
else if (player1.Team == player.Team)
else if (player1.Role.Team == player.Role.Team)
{
MirrorExtensions.SendFakeSyncVar(player1, pickup.netIdentity, pickupType, "NetworkInfo", pickupInfo);
}
else
switch (player1.Role)
switch (player1.Role.Type)
{
case RoleType.Scp93953:
case RoleType.Scp93989:
Expand Down
4 changes: 2 additions & 2 deletions SCPStats/SCPStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private IEnumerator<float> EnableEvents()
Exiled.Events.Handlers.Player.PickingUpAmmo += EventHandler.OnPickupAmmo;
Exiled.Events.Handlers.Player.Verified += EventHandler.OnJoin;
Exiled.Events.Handlers.Player.Destroying += EventHandler.OnLeave;
Exiled.Events.Handlers.Player.ItemUsed += EventHandler.OnUse;
Exiled.Events.Handlers.Player.UsedItem += EventHandler.OnUse;
Exiled.Events.Handlers.Player.ThrowingItem += EventHandler.OnThrow;
Exiled.Events.Handlers.Server.ReloadedRA += EventHandler.OnRAReload;
Exiled.Events.Handlers.Server.ReloadedConfigs += LoadConfigs;
Expand Down Expand Up @@ -181,7 +181,7 @@ public override void OnDisabled()
Exiled.Events.Handlers.Player.PickingUpAmmo -= EventHandler.OnPickupAmmo;
Exiled.Events.Handlers.Player.Verified -= EventHandler.OnJoin;
Exiled.Events.Handlers.Player.Destroying -= EventHandler.OnLeave;
Exiled.Events.Handlers.Player.ItemUsed -= EventHandler.OnUse;
Exiled.Events.Handlers.Player.UsedItem -= EventHandler.OnUse;
Exiled.Events.Handlers.Player.ThrowingItem -= EventHandler.OnThrow;
Exiled.Events.Handlers.Server.ReloadedRA -= EventHandler.OnRAReload;
Exiled.Events.Handlers.Server.ReloadedConfigs -= LoadConfigs;
Expand Down
34 changes: 17 additions & 17 deletions SCPStats/SCPStats.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,40 +52,40 @@
<HintPath>..\packages\Costura.Fody.5.1.0\lib\netstandard1.0\Costura.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Exiled.API, Version=4.1.7.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\EXILED.4.1.7\lib\net472\Exiled.API.dll</HintPath>
<Reference Include="Exiled.API, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.API.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Exiled.Bootstrap, Version=4.1.7.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\EXILED.4.1.7\lib\net472\Exiled.Bootstrap.dll</HintPath>
<Reference Include="Exiled.Bootstrap, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.Bootstrap.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Exiled.CreditTags, Version=4.1.7.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\EXILED.4.1.7\lib\net472\Exiled.CreditTags.dll</HintPath>
<Reference Include="Exiled.CreditTags, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.CreditTags.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Exiled.CustomItems, Version=4.1.7.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\EXILED.4.1.7\lib\net472\Exiled.CustomItems.dll</HintPath>
<Reference Include="Exiled.CustomItems, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.CustomItems.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Exiled.CustomRoles, Version=4.1.7.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\EXILED.4.1.7\lib\net472\Exiled.CustomRoles.dll</HintPath>
<Reference Include="Exiled.CustomRoles, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.CustomRoles.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Exiled.Events, Version=4.1.7.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\EXILED.4.1.7\lib\net472\Exiled.Events.dll</HintPath>
<Reference Include="Exiled.Events, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.Events.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Exiled.Loader, Version=4.1.7.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\EXILED.4.1.7\lib\net472\Exiled.Loader.dll</HintPath>
<Reference Include="Exiled.Loader, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.Loader.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Exiled.Permissions, Version=4.1.7.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\EXILED.4.1.7\lib\net472\Exiled.Permissions.dll</HintPath>
<Reference Include="Exiled.Permissions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.Permissions.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Exiled.Updater, Version=3.1.1.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\EXILED.4.1.7\lib\net472\Exiled.Updater.dll</HintPath>
<HintPath>..\packages\EXILED.5.0.0-beta.1\lib\net472\Exiled.Updater.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.Win32.Primitives, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
Expand Down
2 changes: 1 addition & 1 deletion SCPStats/packages.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Costura.Fody" version="5.1.0" targetFramework="net472" developmentDependency="true" />
<package id="EXILED" version="4.1.7" targetFramework="net472" />
<package id="EXILED" version="5.0.0-beta.1" targetFramework="net472" />
<package id="Fody" version="6.5.0" targetFramework="net472" developmentDependency="true" />
<package id="Lib.Harmony" version="2.0.4" targetFramework="net472" />
<package id="Microsoft.Extensions.Logging.Abstractions" version="3.0.1" targetFramework="net472" />
Expand Down

0 comments on commit 641b540

Please sign in to comment.