mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
17 lines
No EOL
575 B
C#
17 lines
No EOL
575 B
C#
using ABI_RC.Core.Base;
|
|
using NAK.OriginShift;
|
|
using NAK.OriginShift.Hacks;
|
|
using UnityEngine;
|
|
|
|
namespace OriginShift.ModCompatibility;
|
|
|
|
public static class ThirdPersonCompatibility
|
|
{
|
|
internal static void Fix()
|
|
{
|
|
GameObject thirdPersonCameraObj = GameObject.Find("_PLAYERLOCAL/[CameraRigDesktop]/Camera/ThirdPersonCameraObj");
|
|
if (thirdPersonCameraObj == null) return;
|
|
OriginShiftMod.Logger.Msg("Found ThirdPerson, fixing compatibility...");
|
|
thirdPersonCameraObj.AddComponentIfMissing<OriginShiftOcclusionCullingDisabler>();
|
|
}
|
|
} |