using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using GameNetcodeStuff; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(/*Could not decode attribute arguments.*/)] [assembly: TargetFramework(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")] [assembly: AssemblyCompany("EyesScripts")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("EyesScripts")] [assembly: AssemblyTitle("EyesScripts")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace HotelScripts; public class EyeContactHitter : MonoBehaviour { public Transform obj; public AudioSource hitSoundEffect; public int damage = 10; public float damageInterval = 0.5f; public bool giveFearLevel = true; public float viewAngle = 45f; public int maxRange = 30; private float nextHit; private void Update() { //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00a2: Unknown result type (might be due to invalid IL or missing references) PlayerControllerB localPlayerController = GameNetworkManager.Instance.localPlayerController; if (!((Object)(object)localPlayerController == (Object)null) && !localPlayerController.isPlayerDead && !((Object)(object)obj == (Object)null) && !(Time.realtimeSinceStartup < nextHit) && localPlayerController.HasLineOfSightToPosition(obj.position, viewAngle, maxRange, -1f, -1)) { nextHit = Time.realtimeSinceStartup + damageInterval; localPlayerController.DamagePlayer(damage, true, true, (CauseOfDeath)0, 0, false, default(Vector3)); if ((Object)(object)hitSoundEffect != (Object)null && !hitSoundEffect.isPlaying) { hitSoundEffect.Play(); } if (giveFearLevel) { localPlayerController.JumpToFearLevel(1f, true); } } } } public class SlowTrigger : MonoBehaviour { public float slowMultiplier = 2f; private Collider collider; private bool isPlayerInside = false; private void Start() { collider = ((Component)this).GetComponent(); } private void Update() { //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_004a: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)collider == (Object)null) { return; } PlayerControllerB val = GameNetworkManager.Instance?.localPlayerController; if (!((Object)(object)val == (Object)null)) { Bounds bounds = collider.bounds; bool flag = ((Bounds)(ref bounds)).Contains(((Component)val).transform.position); if (flag && !isPlayerInside) { isPlayerInside = true; ApplySlow(val); } else if (!flag && isPlayerInside) { isPlayerInside = false; RemoveSlow(val); } } } private void ApplySlow(PlayerControllerB player) { player.isMovementHindered++; player.hinderedMultiplier *= slowMultiplier; } private void RemoveSlow(PlayerControllerB player) { player.isMovementHindered = Mathf.Max(0, player.isMovementHindered - 1); player.hinderedMultiplier /= slowMultiplier; } private void OnDisable() { if (isPlayerInside) { isPlayerInside = false; PlayerControllerB val = GameNetworkManager.Instance?.localPlayerController; if (!((Object)(object)val == (Object)null)) { RemoveSlow(val); } } } }