mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 10:07:38 +02:00
Misc. Fixes and Additions (#440)
* Ringside fixes * Clappy Trio bop logic fix * Quiz show answer reaction fix * prequel background begone! * You can now hide the alien in spaceball * Fixed lightning toss jank * btsds recolor, need to add lights next * Btsds lights and recolor * fixed sweat particle rendering over reporter * Asset bundles accomodation
This commit is contained in:
@ -150,6 +150,7 @@ namespace HeavenStudio.Games
|
||||
private Sound kidsLaugh;
|
||||
private int currentPose;
|
||||
private EasingFunction.Ease lastEase;
|
||||
private GameObject currentNewspaper;
|
||||
|
||||
private int currentZoomIndex;
|
||||
|
||||
@ -186,8 +187,8 @@ namespace HeavenStudio.Games
|
||||
allCameraEvents = tempEvents;
|
||||
|
||||
UpdateCameraZoom();
|
||||
shouldNotInput = false;
|
||||
shouldBop = true;
|
||||
wrestlerAnim.Play("Idle", 0, 1);
|
||||
ReporterBlink();
|
||||
}
|
||||
|
||||
void Update()
|
||||
@ -198,7 +199,7 @@ namespace HeavenStudio.Games
|
||||
{
|
||||
if (cond.ReportBeat(ref bop.lastReportedBeat, bop.startBeat % 1))
|
||||
{
|
||||
if ((wrestlerAnim.IsPlayingAnimationName("Idle") || wrestlerAnim.IsPlayingAnimationName("BopPec") || wrestlerAnim.IsPlayingAnimationName("Bop")) && shouldBop)
|
||||
if (wrestlerAnim.IsAnimationNotPlaying() && shouldBop)
|
||||
{
|
||||
if (UnityEngine.Random.Range(1, 18) == 1)
|
||||
{
|
||||
@ -233,7 +234,6 @@ namespace HeavenStudio.Games
|
||||
new BeatAction.Action(cond.songPositionInBeats + 0.1f, delegate { wrestlerTransform.localScale = new Vector3(1f, 1f, 1f); }),
|
||||
});
|
||||
}
|
||||
ReporterBlink();
|
||||
}
|
||||
if (allCameraEvents.Count > 0)
|
||||
{
|
||||
@ -299,7 +299,7 @@ namespace HeavenStudio.Games
|
||||
{
|
||||
new BeatAction.Action(beat + i, delegate
|
||||
{
|
||||
if ((wrestlerAnim.IsPlayingAnimationName("Idle") || wrestlerAnim.IsPlayingAnimationName("BopPec") || wrestlerAnim.IsPlayingAnimationName("Bop")))
|
||||
if (wrestlerAnim.IsAnimationNotPlaying())
|
||||
{
|
||||
if (UnityEngine.Random.Range(1, 18) == 1)
|
||||
{
|
||||
@ -460,8 +460,8 @@ namespace HeavenStudio.Games
|
||||
new BeatAction.Action(beat, delegate {wrestlerAnim.DoScaledAnimationAsync("PreparePose", 0.25f); }),
|
||||
new BeatAction.Action(beat, delegate {shouldBop = false; }),
|
||||
new BeatAction.Action(beat + 1, delegate { PoseCheck(beat); }),
|
||||
new BeatAction.Action(beat + 3.99f, delegate { wrestlerAnim.Play("Idle", 0, 0); }),
|
||||
new BeatAction.Action(beat + 3.99f, delegate { reporterAnim.Play("IdleReporter", 0, 0); }),
|
||||
new BeatAction.Action(beat + 3.99f, delegate { wrestlerAnim.Play("Idle", 0, 1); }),
|
||||
new BeatAction.Action(beat + 3.99f, delegate { reporterAnim.DoUnscaledAnimation("IdleReporter"); }),
|
||||
new BeatAction.Action(beat + 3.99f, delegate { shouldNotInput = false; }),
|
||||
new BeatAction.Action(beat + 3.99f, delegate { shouldBop = true; }),
|
||||
});
|
||||
@ -475,14 +475,18 @@ namespace HeavenStudio.Games
|
||||
{
|
||||
keepZoomOut = true;
|
||||
blackVoid.color = Color.black;
|
||||
newspaper.SetActive(true);
|
||||
GameObject spawnedNewsPaper = Instantiate(newspaper, transform);
|
||||
spawnedNewsPaper.SetActive(true);
|
||||
currentNewspaper = spawnedNewsPaper;
|
||||
wrestlerNewspaperAnim = spawnedNewsPaper.transform.GetChild(1).GetComponent<Animator>();
|
||||
reporterNewspaperAnim = spawnedNewsPaper.transform.GetChild(2).GetComponent<Animator>();
|
||||
if (UnityEngine.Random.Range(1, 3) == 1)
|
||||
{
|
||||
newspaper.GetComponent<Animator>().Play("NewspaperEnter", 0, 0);
|
||||
spawnedNewsPaper.GetComponent<Animator>().Play("NewspaperEnter", 0, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
newspaper.GetComponent<Animator>().Play("NewspaperEnterRight", 0, 0);
|
||||
spawnedNewsPaper.GetComponent<Animator>().Play("NewspaperEnterRight", 0, 0);
|
||||
}
|
||||
if (!hitPose)
|
||||
{
|
||||
@ -500,7 +504,7 @@ namespace HeavenStudio.Games
|
||||
new BeatAction.Action(beat + 3f + newspaperBeats, delegate
|
||||
{
|
||||
blackVoid.color = new Color(1f, 1f, 1f, 0);
|
||||
newspaper.SetActive(false);
|
||||
Destroy(currentNewspaper); currentNewspaper = null;
|
||||
lastCamPos = new Vector3(0, 0, -10);
|
||||
Jukebox.KillLoop(kidsLaugh, 0.25f);
|
||||
keepZoomOut = false;
|
||||
@ -537,14 +541,18 @@ namespace HeavenStudio.Games
|
||||
new BeatAction.Action(beat + 3f, delegate
|
||||
{
|
||||
blackVoid.color = Color.black;
|
||||
newspaper.SetActive(true);
|
||||
GameObject spawnedNewsPaper = Instantiate(newspaper, transform);
|
||||
spawnedNewsPaper.SetActive(true);
|
||||
currentNewspaper = spawnedNewsPaper;
|
||||
wrestlerNewspaperAnim = spawnedNewsPaper.transform.GetChild(1).GetComponent<Animator>();
|
||||
reporterNewspaperAnim = spawnedNewsPaper.transform.GetChild(2).GetComponent<Animator>();
|
||||
if (UnityEngine.Random.Range(1, 3) == 1)
|
||||
{
|
||||
newspaper.GetComponent<Animator>().Play("NewspaperEnter", 0, 0);
|
||||
spawnedNewsPaper.GetComponent<Animator>().Play("NewspaperEnter", 0, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
newspaper.GetComponent<Animator>().Play("NewspaperEnterRight", 0, 0);
|
||||
spawnedNewsPaper.GetComponent<Animator>().Play("NewspaperEnterRight", 0, 0);
|
||||
}
|
||||
if (!hitPose)
|
||||
{
|
||||
@ -562,7 +570,7 @@ namespace HeavenStudio.Games
|
||||
new BeatAction.Action(beat + 3f + newspaperBeats, delegate
|
||||
{
|
||||
blackVoid.color = new Color(1f, 1f, 1f, 0);
|
||||
newspaper.SetActive(false);
|
||||
Destroy(currentNewspaper); currentNewspaper = null;
|
||||
Jukebox.KillLoop(kidsLaugh, 0.25f);
|
||||
})
|
||||
});
|
||||
@ -633,14 +641,12 @@ namespace HeavenStudio.Games
|
||||
|
||||
public void ReporterBlink()
|
||||
{
|
||||
int randomNumber = UnityEngine.Random.Range(1, 200);
|
||||
if (randomNumber == 1)
|
||||
if (reporterAnim.GetCurrentAnimatorStateInfo(0).IsName("IdleReporter"))
|
||||
{
|
||||
if (reporterAnim.IsPlayingAnimationName("IdleReporter"))
|
||||
{
|
||||
reporterAnim.DoScaledAnimationAsync("BlinkReporter", 0.5f);
|
||||
}
|
||||
reporterAnim.DoUnscaledAnimation("BlinkReporter");
|
||||
}
|
||||
float randomTime = UnityEngine.Random.Range(0.3f, 1.8f);
|
||||
Invoke("ReporterBlink", randomTime);
|
||||
}
|
||||
|
||||
public void JustQuestion(PlayerActionEvent caller, float state)
|
||||
@ -721,7 +727,24 @@ namespace HeavenStudio.Games
|
||||
}
|
||||
BeatAction.New(instance.gameObject, new List<BeatAction.Action>()
|
||||
{
|
||||
new BeatAction.Action(caller.startBeat + caller.timer + 0.9f, delegate { wrestlerAnim.Play("Idle", 0, 0); }),
|
||||
new BeatAction.Action(caller.startBeat + caller.timer + 1f, delegate
|
||||
{
|
||||
if (shouldBop)
|
||||
{
|
||||
if (UnityEngine.Random.Range(1, 18) == 1)
|
||||
{
|
||||
wrestlerAnim.DoScaledAnimationAsync("BopPec");
|
||||
}
|
||||
else
|
||||
{
|
||||
wrestlerAnim.DoScaledAnimationAsync("Bop");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
wrestlerAnim.Play("Idle", 0, 1);
|
||||
}
|
||||
}),
|
||||
});
|
||||
return;
|
||||
}
|
||||
@ -756,7 +779,24 @@ namespace HeavenStudio.Games
|
||||
}
|
||||
BeatAction.New(instance.gameObject, new List<BeatAction.Action>()
|
||||
{
|
||||
new BeatAction.Action(caller.startBeat + caller.timer + 0.9f, delegate { wrestlerAnim.Play("Idle", 0, 0); }),
|
||||
new BeatAction.Action(caller.startBeat + caller.timer + 1f, delegate
|
||||
{
|
||||
if (shouldBop)
|
||||
{
|
||||
if (UnityEngine.Random.Range(1, 18) == 1)
|
||||
{
|
||||
wrestlerAnim.DoScaledAnimationAsync("BopPec");
|
||||
}
|
||||
else
|
||||
{
|
||||
wrestlerAnim.DoScaledAnimationAsync("Bop");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
wrestlerAnim.Play("Idle", 0, 1);
|
||||
}
|
||||
}),
|
||||
});
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user