Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rayzerbrain committed Aug 30, 2022
1 parent 33aa208 commit 35d14b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ShootingRange/API/SpectatorRange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
using Exiled.CustomItems.API.Features;

using Object = UnityEngine.Object;
using Exiled.API.Extensions;

namespace ShootingRange.API
{
public class SpectatorRange
{
private Vector3 _smallBound = new(-173.7f, 1003.4f, -45);
private Vector3 _bigBound = new(-143.7f, 1006.8f, -37.9f);
private Vector3 _bigBound = new(-143.7f, 1016.8f, -37.9f);
public Vector3 Spawn { get; } = new(-161.1f, 1004.9f, -42.1f);
public bool IsOpen => Round.IsStarted && Respawn.TimeUntilRespawn > 20;

Expand Down Expand Up @@ -70,6 +71,7 @@ public bool TryAdmit(Player player)
player.Position = Spawn;
player.Health = 100000;
player.Broadcast(PluginMain.Singleton.Config.RangeGreeting);
player.ChangeAppearance(RoleType.ChaosConscript);
});
return true;
}
Expand Down Expand Up @@ -101,7 +103,7 @@ public void SpawnTargets()
}
public void SpawnPrimitives()
{
const float thick = 0.1f;
const float thick = 0.3f;
const float frontHeight = 1.9f;
Color color = Color.clear;
Vector3 dif = _bigBound - _smallBound;
Expand Down

0 comments on commit 35d14b8

Please sign in to comment.