mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-10 21:40:19 +00:00
fix probe light
This commit is contained in:
parent
edac51824e
commit
ab2c33d628
@ -10,10 +10,10 @@ namespace QSB.ProbeSync
|
|||||||
public AnimationCurve _fadeInCurve;
|
public AnimationCurve _fadeInCurve;
|
||||||
public AnimationCurve _fadeOutCurve;
|
public AnimationCurve _fadeOutCurve;
|
||||||
public OWEmissiveRenderer _emissiveRenderer;
|
public OWEmissiveRenderer _emissiveRenderer;
|
||||||
|
public float _originalRange;
|
||||||
|
|
||||||
private QSBProbe _probe;
|
private QSBProbe _probe;
|
||||||
private OWLight2 _light;
|
private OWLight2 _light;
|
||||||
private float _originalRange;
|
|
||||||
private float _fadeFraction;
|
private float _fadeFraction;
|
||||||
private float _targetFade;
|
private float _targetFade;
|
||||||
private float _startFade;
|
private float _startFade;
|
||||||
@ -42,7 +42,7 @@ namespace QSB.ProbeSync
|
|||||||
}
|
}
|
||||||
|
|
||||||
_light.GetLight().enabled = false;
|
_light.GetLight().enabled = false;
|
||||||
_originalRange = _light.range;
|
//_originalRange = _light.range;
|
||||||
enabled = false;
|
enabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,11 +8,11 @@ namespace QSB.ProbeSync
|
|||||||
{
|
{
|
||||||
public ProbeCamera.ID _id;
|
public ProbeCamera.ID _id;
|
||||||
public float _fadeInLength = 1f;
|
public float _fadeInLength = 1f;
|
||||||
|
public float _intensity;
|
||||||
|
|
||||||
private QSBProbe _probe;
|
private QSBProbe _probe;
|
||||||
private OWLight2 _light;
|
private OWLight2 _light;
|
||||||
private bool _inFlight;
|
private bool _inFlight;
|
||||||
private float _intensity;
|
|
||||||
private float _timer;
|
private float _timer;
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
@ -24,7 +24,7 @@ namespace QSB.ProbeSync
|
|||||||
}
|
}
|
||||||
|
|
||||||
_light = GetComponent<OWLight2>();
|
_light = GetComponent<OWLight2>();
|
||||||
_intensity = _light.GetLight().intensity;
|
//_intensity = _light.GetLight().intensity;
|
||||||
_light.GetLight().enabled = false;
|
_light.GetLight().enabled = false;
|
||||||
enabled = false;
|
enabled = false;
|
||||||
_probe.OnLaunchProbe += OnLaunch;
|
_probe.OnLaunchProbe += OnLaunch;
|
||||||
|
@ -65,7 +65,6 @@ namespace QSB.Tools
|
|||||||
Object.Destroy(probeDetector.GetComponent<ProbeFluidDetector>());
|
Object.Destroy(probeDetector.GetComponent<ProbeFluidDetector>());
|
||||||
Object.Destroy(probeDetector.GetComponent<AlignmentForceDetector>());
|
Object.Destroy(probeDetector.GetComponent<AlignmentForceDetector>());
|
||||||
|
|
||||||
|
|
||||||
// CameraPivot
|
// CameraPivot
|
||||||
var cameraPivot = newProbe.Find("CameraPivot");
|
var cameraPivot = newProbe.Find("CameraPivot");
|
||||||
Object.Destroy(cameraPivot.GetComponent<ProbeHorizonTracker>());
|
Object.Destroy(cameraPivot.GetComponent<ProbeHorizonTracker>());
|
||||||
@ -91,6 +90,7 @@ namespace QSB.Tools
|
|||||||
var newForwardSpotlight = forwardCamera.gameObject.AddComponent<QSBProbeSpotlight>();
|
var newForwardSpotlight = forwardCamera.gameObject.AddComponent<QSBProbeSpotlight>();
|
||||||
newForwardSpotlight._id = oldForwardSpotlight.GetValue<ProbeCamera.ID>("_id");
|
newForwardSpotlight._id = oldForwardSpotlight.GetValue<ProbeCamera.ID>("_id");
|
||||||
newForwardSpotlight._fadeInLength = oldForwardSpotlight.GetValue<float>("_fadeInLength");
|
newForwardSpotlight._fadeInLength = oldForwardSpotlight.GetValue<float>("_fadeInLength");
|
||||||
|
newForwardSpotlight._intensity = oldForwardSpotlight.GetValue<float>("_intensity");
|
||||||
Object.Destroy(oldForwardSpotlight);
|
Object.Destroy(oldForwardSpotlight);
|
||||||
|
|
||||||
// CameraPivot/RotatingCameraPivot/RotatingCamera
|
// CameraPivot/RotatingCameraPivot/RotatingCamera
|
||||||
@ -123,6 +123,7 @@ namespace QSB.Tools
|
|||||||
newAmbLantern._fadeInCurve = oldAmbLantern.GetValue<AnimationCurve>("_fadeInCurve");
|
newAmbLantern._fadeInCurve = oldAmbLantern.GetValue<AnimationCurve>("_fadeInCurve");
|
||||||
newAmbLantern._fadeOutCurve = oldAmbLantern.GetValue<AnimationCurve>("_fadeOutCurve");
|
newAmbLantern._fadeOutCurve = oldAmbLantern.GetValue<AnimationCurve>("_fadeOutCurve");
|
||||||
newAmbLantern._emissiveRenderer = oldAmbLantern.GetValue<OWEmissiveRenderer>("_emissiveRenderer");
|
newAmbLantern._emissiveRenderer = oldAmbLantern.GetValue<OWEmissiveRenderer>("_emissiveRenderer");
|
||||||
|
newAmbLantern._originalRange = oldAmbLantern.GetValue<float>("_originalRange");
|
||||||
Object.Destroy(oldAmbLantern);
|
Object.Destroy(oldAmbLantern);
|
||||||
|
|
||||||
// Lantern
|
// Lantern
|
||||||
@ -133,6 +134,7 @@ namespace QSB.Tools
|
|||||||
newLantern._fadeInCurve = oldLantern.GetValue<AnimationCurve>("_fadeInCurve");
|
newLantern._fadeInCurve = oldLantern.GetValue<AnimationCurve>("_fadeInCurve");
|
||||||
newLantern._fadeOutCurve = oldLantern.GetValue<AnimationCurve>("_fadeOutCurve");
|
newLantern._fadeOutCurve = oldLantern.GetValue<AnimationCurve>("_fadeOutCurve");
|
||||||
newLantern._emissiveRenderer = oldLantern.GetValue<OWEmissiveRenderer>("_emissiveRenderer");
|
newLantern._emissiveRenderer = oldLantern.GetValue<OWEmissiveRenderer>("_emissiveRenderer");
|
||||||
|
newLantern._originalRange = oldLantern.GetValue<float>("_originalRange");
|
||||||
Object.Destroy(oldLantern);
|
Object.Destroy(oldLantern);
|
||||||
|
|
||||||
// RearCamera
|
// RearCamera
|
||||||
@ -147,6 +149,7 @@ namespace QSB.Tools
|
|||||||
var newRearSpotlight = rearCamera.gameObject.AddComponent<QSBProbeSpotlight>();
|
var newRearSpotlight = rearCamera.gameObject.AddComponent<QSBProbeSpotlight>();
|
||||||
newRearSpotlight._id = oldRearSpotlight.GetValue<ProbeCamera.ID>("_id");
|
newRearSpotlight._id = oldRearSpotlight.GetValue<ProbeCamera.ID>("_id");
|
||||||
newRearSpotlight._fadeInLength = oldRearSpotlight.GetValue<float>("_fadeInLength");
|
newRearSpotlight._fadeInLength = oldRearSpotlight.GetValue<float>("_fadeInLength");
|
||||||
|
newRearSpotlight._intensity = oldRearSpotlight.GetValue<float>("_intensity");
|
||||||
Object.Destroy(oldRearSpotlight);
|
Object.Destroy(oldRearSpotlight);
|
||||||
|
|
||||||
// PlaneOffsetMarker_Probe
|
// PlaneOffsetMarker_Probe
|
||||||
|
Loading…
x
Reference in New Issue
Block a user