public override void OnEnter() { base.OnEnter(); if (TTGL_SurvivorPlugin.rideMeExtendedInstalled) { TTGL_SurvivorPlugin.ExitSeat(base.gameObject); TTGL_SurvivorPlugin.ExpulseAnyRider(base.gameObject); } this.cinematicFrequence = Modules.Config.ttglShowCombiningAnimation; if (DisplayCinematic()) { base.PlayAnimation("FullBody, Override", "TTGLSurvivorCombine", "Combine.playbackRate", LagannCombine.baseDuration); AllowOutOfBound(true); this.SetAntiGravity(base.characterBody, true); this.previousPosition = base.characterMotor.Motor.transform.position; this.animationPosition = this.previousPosition + new Vector3(50000f, 0, 0f); this.SetPosition(base.gameObject, this.animationPosition); if (CameraRigController.IsObjectSpectatedByAnyCamera(base.gameObject)) { combineSoundRef = Util.PlaySound(LagannCombine.soundString, base.gameObject); } var childSelector = base.GetModelChildLocator(); if (childSelector) { this.specialMoveCameraSource = childSelector.FindChild("SpecialMoveCameraSource"); this.forcedCamera = specialMoveCameraSource.GetComponent <SkippableCamera>(); } UpdateCameraOverride(); if (NetworkServer.active) { base.characterBody.AddBuff(RoR2.RoR2Content.Buffs.HiddenInvincibility); } } else { Util.PlaySound(BaseBeginArrowBarrage.blinkSoundString, base.gameObject); } var spiralEnergyComponent = base.characterBody.GetComponent <SpiralEnergyComponent>(); this.energy = spiralEnergyComponent.NetworkEnergy; var ttglMusicRemote = base.characterBody.GetComponent <TTGLMusicRemote>(); ttglMusicRemote.PlayMusic(TTGLMusicController.MusicType.Combine); }
public static void ReadConfig() { useLegacyGigaDrillBreak = Modules.Config.GetSetConfig("Gurren Lagann", "Legacy Giga Drill Break", false, "Allows the old way to use giga drill break on Gurren Lagann's secondary").Value; lagannItemDisplayEnabled = Modules.Config.GetSetConfig("Item display", "Lagann", true, "Display Items on Lagann").Value; gurrenItemDisplayEnabled = Modules.Config.GetSetConfig("Item display", "Gurren", true, "Display Items on Gurren").Value; gurrenLaganItemDisplayEnabled = Modules.Config.GetSetConfig("Item display", "Gurren Lagann", true, "Display Items on Gurren Lagann").Value; spiralGaugeEnabled = Modules.Config.GetSetConfig("Spiral Gauge", "Enabled", true, "Display Spiral Gauge").Value; spiralGaugeAnchorMin = Modules.Config.GetSetConfig("Spiral Gauge", "AnchorMin", new Vector2(1, 0), "Spiral Gauge AnchorMin").Value; spiralGaugeAnchorMax = Modules.Config.GetSetConfig("Spiral Gauge", "AnchorMax", new Vector2(1, 0), "Spiral Gauge AnchorMax").Value; spiralGaugePivot = Modules.Config.GetSetConfig("Spiral Gauge", "Pivot", new Vector2(1, 0), "Spiral Gauge Pivot").Value; spiralGaugeSizeDelta = Modules.Config.GetSetConfig("Spiral Gauge", "SizeDelta", new Vector2(120, 120), "Spiral Gauge SizeDelta").Value; spiralGaugeAnchoredPosition = Modules.Config.GetSetConfig("Spiral Gauge", "AnchoredPosition", new Vector2(-20, 200), "Spiral Gauge AnchoredPosition").Value; spiralGaugeLocalScale = Modules.Config.GetSetConfig("Spiral Gauge", "LocalScale", new Vector3(2, 2, 2), "Spiral Gauge LocalScale").Value; eyecatchEnabled = Modules.Config.GetSetConfig("Character selection eye catch", "Enabled", true, "Plays the eye catch animation on character selection").Value; ttglMusicEnabled = Modules.Config.GetSetConfig("TTGLMusic", "Enabled", true, "Set to false to disable TTGL music").Value; ttglShowCombiningAnimation = Modules.Config.GetSetConfig("Gurren Lagann Combine Cinematic", "Frequency", FrequencyConfig.Always, "Set the frequency at which the cinematic plays").Value; woopsEnabled = Modules.Config.GetSetConfig("WoopsSkin", "Enabled", false, "Set to true to enable woops skin").Value; trackVRCameraToHeadPosition = Modules.Config.GetSetConfig("VR API", "Lagann - Track VR Camera to Simons head", true, "The VR camera will track to Simons head position").Value; }