Skip to content

Commit

Permalink
Update FreneticAntiCheat.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
FreneticFurry authored Nov 11, 2024
1 parent a41525c commit 412ad2e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions FreneticAntiCheat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using UnityEngine;
using VRC.SDKBase;
using TMPro;
using System;

[UdonBehaviourSyncMode(BehaviourSyncMode.None)]
public class FreneticAntiCheat : UdonSharpBehaviour
Expand Down Expand Up @@ -33,9 +34,13 @@ public class FreneticAntiCheat : UdonSharpBehaviour

[Header("Settings")]
public bool allowBhopping = true;
public bool allowLongArms, allowFlight, ragdollSupport, allowOVRAdvanced, allowColliderView, allowSpeedManipulation, allowBlockInvis, AllowPersonalMirrors_Cameras, noColliderBlackout, disableBounds, noPickupVerification, playerCollision = false;
public bool allowLongArms, allowFlight, ragdollSupport, allowOVRAdvanced, allowColliderView, allowSpeedManipulation, allowBlockInvis, AllowPersonalMirrors_Cameras, noColliderBlackout, disableBounds = false;
public bool printDetection = true;

[Header("Players")]
[Range(0, 100)] public float maximumPickupRange = 2.5f;
public bool noPickupVerification, playerCollision = false;

[HideInInspector] public int LongArmAttempts, FlightAttempts, OVR_GoGoLocoAttempts, ColliderViewAttempts, SpeedManipulationAttempts, SeatAttempts, RespawnAttempts, OutOfBoundsAttempts;

private float maxSpeed, jumpspeed = 3f, runspeed = 2f, ft, ic, ct;
Expand Down Expand Up @@ -372,7 +377,7 @@ public void CheckStuff()
if (pickup != null) pickup.pickupable = false;
}

foreach (Collider collider in Physics.OverlapSphere(localPlayer.GetTrackingData(VRCPlayerApi.TrackingDataType.Head).position, 2.5f))
foreach (Collider collider in Physics.OverlapSphere(localPlayer.GetTrackingData(VRCPlayerApi.TrackingDataType.Head).position, maximumPickupRange))
{
if (collider == null) continue;

Expand Down

0 comments on commit 412ad2e

Please sign in to comment.