2022-03-14 14:36:19 +00:00
|
|
|
using HeavenStudio.Util;
|
2022-03-13 04:24:37 +00:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
2022-03-17 20:43:35 +00:00
|
|
|
using System;
|
2022-03-13 04:24:37 +00:00
|
|
|
using UnityEngine;
|
2022-03-15 00:54:54 +00:00
|
|
|
using UnityEngine.Rendering; //don't ask
|
2022-03-13 04:24:37 +00:00
|
|
|
|
2022-04-12 16:14:46 +00:00
|
|
|
namespace HeavenStudio.Games.Loaders
|
|
|
|
{
|
|
|
|
using static Minigames;
|
|
|
|
public static class NtrIdolLoader
|
|
|
|
{
|
2024-01-07 23:45:25 +00:00
|
|
|
public static Minigame AddGame(EventCaller eventCaller)
|
|
|
|
{
|
2023-04-02 02:28:23 +00:00
|
|
|
return new Minigame("fanClub", "Fan Club", "ff78ff", false, false, new List<GameAction>()
|
2022-04-12 16:14:46 +00:00
|
|
|
{
|
2022-08-20 23:03:51 +00:00
|
|
|
new GameAction("bop", "Bop")
|
2022-04-12 16:14:46 +00:00
|
|
|
{
|
2024-01-07 23:45:25 +00:00
|
|
|
function = delegate { var e = eventCaller.currentEntity; FanClub.instance.Bop(e.beat, e.length, e["type"], e["type2"]); },
|
2023-03-07 17:22:32 +00:00
|
|
|
resizable = true,
|
2022-08-20 23:03:51 +00:00
|
|
|
parameters = new List<Param>()
|
|
|
|
{
|
2024-01-15 02:04:10 +00:00
|
|
|
new Param("type", FanClub.IdolBopType.Both, "Bop", "Set the character(s) to bop for the duration of this event."),
|
|
|
|
new Param("type2", FanClub.IdolBopType.None, "Bop", "Set the character(s) to automatically bop until another Bop event is reached."),
|
2022-08-20 23:03:51 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
new GameAction("yeah, yeah, yeah", "Yeah, Yeah, Yeah!")
|
|
|
|
{
|
2024-01-07 23:45:25 +00:00
|
|
|
function = delegate { var e = eventCaller.currentEntity; FanClub.instance.CallHai(e.beat, e["toggle"], e["toggle2"]); },
|
2022-08-20 23:03:51 +00:00
|
|
|
defaultLength = 8,
|
|
|
|
parameters = new List<Param>()
|
2022-06-12 19:32:00 +00:00
|
|
|
{
|
2024-01-15 02:04:10 +00:00
|
|
|
new Param("toggle", false, "Mute Arisa", "Toggle if Arisa's cue should be muted."),
|
|
|
|
new Param("toggle2", false, "Mute Monkey SFX", "Toggle if the monkey's (including the player's) sound effects should be muted.")
|
2022-06-12 19:32:00 +00:00
|
|
|
},
|
2023-01-12 01:42:12 +00:00
|
|
|
inactiveFunction = delegate { var e = eventCaller.currentEntity; FanClub.WarnHai(e.beat, e["toggle"]);},
|
2024-01-07 23:45:25 +00:00
|
|
|
preFunction = delegate { var e = eventCaller.currentEntity; FanClub.HaiSound(e.beat, e["toggle"], e["toggle2"]); }
|
2022-08-20 23:03:51 +00:00
|
|
|
},
|
|
|
|
new GameAction("I suppose", "I Suppose!")
|
|
|
|
{
|
2024-01-07 23:45:25 +00:00
|
|
|
function = delegate { var e = eventCaller.currentEntity; FanClub.instance.CallKamone(e.beat, e["toggle"], e["toggle2"], 0, e["type"], e["alt"]); },
|
|
|
|
defaultLength = 6,
|
2022-08-20 23:03:51 +00:00
|
|
|
parameters = new List<Param>()
|
2022-06-12 19:32:00 +00:00
|
|
|
{
|
|
|
|
new Param("type", FanClub.KamoneResponseType.Through, "Response type", "Type of response to use"),
|
2024-01-15 02:04:10 +00:00
|
|
|
new Param("toggle", false, "Mute Arisa", "Toggle if Arisa's cue should be muted."),
|
|
|
|
new Param("toggle2", false, "Mute Monkey SFX", "Toggle if the monkey's (including the player's) sound effects should be muted."),
|
|
|
|
new Param("alt", false, "Alternate cue", "Toggle if Arisa should use the \"Wonderful\" (iina) cue.")
|
2022-06-12 19:32:00 +00:00
|
|
|
},
|
2023-02-05 03:05:43 +00:00
|
|
|
inactiveFunction = delegate { var e = eventCaller.currentEntity; FanClub.WarnKamone(e.beat, e["toggle"], 0, e["type"], e["alt"]);},
|
2024-01-07 23:45:25 +00:00
|
|
|
preFunction = delegate { var e = eventCaller.currentEntity; FanClub.KamoneSound(e.beat, e["toggle"], e["toggle2"], 0, e["type"], e["alt"]); }
|
2022-08-20 23:03:51 +00:00
|
|
|
},
|
|
|
|
new GameAction("double clap", "Double Clap")
|
|
|
|
{
|
2024-01-07 23:45:25 +00:00
|
|
|
function = delegate { var e = eventCaller.currentEntity; FanClub.instance.CallBigReady(e.beat, e["toggle"]); },
|
2022-08-20 23:03:51 +00:00
|
|
|
defaultLength = 4,
|
|
|
|
parameters = new List<Param>()
|
2022-06-12 19:32:00 +00:00
|
|
|
{
|
2024-01-15 02:04:10 +00:00
|
|
|
new Param("toggle", false, "Disable Call", "Toggle if the monkey's \"Ooh!\" cue should play.")
|
2022-06-12 19:32:00 +00:00
|
|
|
},
|
2023-01-12 01:42:12 +00:00
|
|
|
inactiveFunction = delegate { var e = eventCaller.currentEntity; FanClub.WarnBigReady(e.beat, e["toggle"]); },
|
|
|
|
preFunction = delegate { var e = eventCaller.currentEntity; FanClub.BigReadySound(e.beat, e["toggle"]); }
|
2022-08-20 23:03:51 +00:00
|
|
|
},
|
2024-04-08 18:44:05 +00:00
|
|
|
new GameAction("play idol animation", "Idol Choreography")
|
2022-06-12 19:32:00 +00:00
|
|
|
{
|
2023-05-21 17:35:00 +00:00
|
|
|
function = delegate { var e = eventCaller.currentEntity; FanClub.instance.PlayAnim(e.beat, e.length, e["type"], e["who"]); },
|
2024-01-07 23:45:25 +00:00
|
|
|
resizable = true,
|
2022-08-20 23:03:51 +00:00
|
|
|
parameters = new List<Param>()
|
|
|
|
{
|
2024-01-15 02:04:10 +00:00
|
|
|
new Param("type", FanClub.IdolAnimations.Bop, "Animation", "Set the animation to play."),
|
|
|
|
new Param("who", FanClub.IdolType.All, "Target Idol", "Set the character to perform the above animation.")
|
2022-08-20 23:03:51 +00:00
|
|
|
}
|
|
|
|
},
|
2024-01-15 02:04:10 +00:00
|
|
|
new GameAction("play stage animation", "Stage Effects")
|
2022-08-20 23:03:51 +00:00
|
|
|
{
|
2024-01-07 23:45:25 +00:00
|
|
|
function = delegate { var e = eventCaller.currentEntity; FanClub.instance.PlayAnimStage(e.beat, e["type"]); },
|
|
|
|
resizable = true,
|
2022-08-20 23:03:51 +00:00
|
|
|
parameters = new List<Param>()
|
|
|
|
{
|
2024-01-15 02:04:10 +00:00
|
|
|
new Param("type", FanClub.StageAnimations.Flash, "Effect", "Set the effect to play.")
|
2022-08-20 23:03:51 +00:00
|
|
|
}
|
|
|
|
},
|
2024-01-15 02:04:10 +00:00
|
|
|
new GameAction("friend walk", "Backup Dancers")
|
2023-05-21 17:35:00 +00:00
|
|
|
{
|
|
|
|
function = delegate { var e = eventCaller.currentEntity; FanClub.instance.DancerTravel(e.beat, e.length, e["exit"], e["instant"]); },
|
|
|
|
defaultLength = 16f,
|
2024-01-07 23:45:25 +00:00
|
|
|
resizable = true,
|
2023-05-21 17:35:00 +00:00
|
|
|
parameters = new List<Param>()
|
|
|
|
{
|
2024-01-15 02:04:10 +00:00
|
|
|
new Param("exit", false, "Exit", "Toggle if the backup dancers should enter or exit the scene."),
|
|
|
|
new Param("instant", false, "Instant", "Toggle if the backup dancers should instantly finish their enter/exit."),
|
2023-05-21 17:35:00 +00:00
|
|
|
}
|
|
|
|
},
|
2022-08-20 23:03:51 +00:00
|
|
|
new GameAction("set performance type", "Coreography Type")
|
2022-04-28 21:56:00 +00:00
|
|
|
{
|
2022-06-12 19:32:00 +00:00
|
|
|
|
2022-08-21 23:46:45 +00:00
|
|
|
function = delegate { var e = eventCaller.currentEntity; FanClub.SetPerformanceType(e["type"]);},
|
2022-08-20 23:03:51 +00:00
|
|
|
defaultLength = 0.5f,
|
|
|
|
parameters = new List<Param>()
|
2022-06-12 19:32:00 +00:00
|
|
|
{
|
2024-01-15 02:04:10 +00:00
|
|
|
new Param("type", FanClub.IdolPerformanceType.Normal, "Performance Type", "Set the type animations for Arisa to use.")
|
2022-06-12 19:32:00 +00:00
|
|
|
},
|
2022-08-21 23:46:45 +00:00
|
|
|
inactiveFunction = delegate { var e = eventCaller.currentEntity; FanClub.SetPerformanceType(e["type"]); }
|
2022-08-20 23:03:51 +00:00
|
|
|
},
|
2023-05-21 17:35:00 +00:00
|
|
|
new GameAction("finish", "Applause")
|
|
|
|
{
|
2024-01-07 23:45:25 +00:00
|
|
|
function = delegate { var e = eventCaller.currentEntity; FanClub.instance.FinalCheer(e.beat); },
|
2023-05-21 17:35:00 +00:00
|
|
|
},
|
2022-06-12 19:32:00 +00:00
|
|
|
},
|
2024-01-07 23:45:25 +00:00
|
|
|
new List<string>() { "ntr", "normal" },
|
2022-06-12 19:32:00 +00:00
|
|
|
"ntridol", "jp",
|
2024-03-29 02:35:07 +00:00
|
|
|
new List<string>() { "jp" },
|
|
|
|
chronologicalSortKey: 4
|
2022-06-12 19:32:00 +00:00
|
|
|
);
|
2022-04-12 16:14:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-14 14:36:19 +00:00
|
|
|
namespace HeavenStudio.Games
|
2022-03-13 04:24:37 +00:00
|
|
|
{
|
2022-03-15 00:54:54 +00:00
|
|
|
using Scripts_FanClub;
|
2024-01-07 23:45:25 +00:00
|
|
|
|
2022-03-13 04:24:37 +00:00
|
|
|
public class FanClub : Minigame
|
|
|
|
{
|
2024-01-07 23:45:25 +00:00
|
|
|
public enum IdolBopType
|
|
|
|
{
|
2022-03-17 19:13:48 +00:00
|
|
|
Both,
|
|
|
|
Idol,
|
2023-03-07 17:22:32 +00:00
|
|
|
Spectators,
|
|
|
|
None
|
2022-03-17 19:13:48 +00:00
|
|
|
}
|
2024-01-07 23:45:25 +00:00
|
|
|
public enum IdolAnimations
|
|
|
|
{
|
2022-03-16 21:41:46 +00:00
|
|
|
Bop,
|
|
|
|
PeaceVocal,
|
|
|
|
Peace,
|
|
|
|
Clap,
|
|
|
|
Call,
|
|
|
|
Response,
|
|
|
|
Jump,
|
2022-04-28 20:01:07 +00:00
|
|
|
BigCall,
|
2022-03-27 04:11:32 +00:00
|
|
|
Squat,
|
2022-03-27 23:05:08 +00:00
|
|
|
Wink,
|
2022-06-04 03:15:56 +00:00
|
|
|
Dab,
|
|
|
|
None
|
2022-03-16 21:41:46 +00:00
|
|
|
}
|
2024-01-07 23:45:25 +00:00
|
|
|
public enum KamoneResponseType
|
|
|
|
{
|
2022-03-26 02:45:54 +00:00
|
|
|
Through,
|
|
|
|
Jump,
|
2022-04-27 22:02:53 +00:00
|
|
|
ThroughFast,
|
|
|
|
JumpFast,
|
2022-03-26 02:45:54 +00:00
|
|
|
}
|
2024-01-07 23:45:25 +00:00
|
|
|
public enum StageAnimations
|
|
|
|
{
|
2022-03-27 23:05:08 +00:00
|
|
|
Reset,
|
|
|
|
Flash,
|
2022-06-18 06:31:19 +00:00
|
|
|
Spot
|
2022-03-27 23:05:08 +00:00
|
|
|
}
|
2024-01-07 23:45:25 +00:00
|
|
|
public enum IdolPerformanceType
|
|
|
|
{
|
2022-04-28 21:56:00 +00:00
|
|
|
Normal,
|
|
|
|
Arrange,
|
|
|
|
// Tour(this one is fan made so ?)
|
|
|
|
}
|
2024-01-07 23:45:25 +00:00
|
|
|
public enum IdolType
|
|
|
|
{
|
2023-05-21 17:35:00 +00:00
|
|
|
All,
|
|
|
|
Idol,
|
|
|
|
LeftDancer,
|
|
|
|
RightDancer
|
|
|
|
}
|
2022-03-16 21:41:46 +00:00
|
|
|
|
2022-03-13 04:24:37 +00:00
|
|
|
// userdata here
|
2022-03-13 22:23:38 +00:00
|
|
|
[Header("Animators")]
|
2022-03-27 23:05:08 +00:00
|
|
|
//stage
|
2023-05-21 17:35:00 +00:00
|
|
|
[SerializeField] Animator StageAnimator;
|
2022-03-13 04:24:37 +00:00
|
|
|
|
2022-03-13 22:23:38 +00:00
|
|
|
[Header("Objects")]
|
2023-05-21 17:35:00 +00:00
|
|
|
// our girl
|
|
|
|
[SerializeField] GameObject Arisa;
|
|
|
|
[SerializeField] GameObject ArisaRootMotion;
|
|
|
|
[SerializeField] GameObject ArisaShadow;
|
|
|
|
|
|
|
|
// spectators
|
|
|
|
[SerializeField] GameObject spectator;
|
|
|
|
[SerializeField] GameObject spectatorAnchor;
|
|
|
|
|
|
|
|
// backup dancers
|
|
|
|
[SerializeField] NtrIdolAmie Blue;
|
|
|
|
[SerializeField] NtrIdolAmie Orange;
|
2022-03-13 04:24:37 +00:00
|
|
|
|
2022-06-18 06:31:19 +00:00
|
|
|
[Header("References")]
|
2023-05-21 17:35:00 +00:00
|
|
|
[SerializeField] Material spectatorMat;
|
2022-06-18 06:31:19 +00:00
|
|
|
|
2022-03-13 22:23:38 +00:00
|
|
|
// end userdata
|
2022-03-15 00:54:54 +00:00
|
|
|
|
2023-05-21 17:35:00 +00:00
|
|
|
public bool JudgementPaused { get => noJudgement; }
|
2024-01-07 23:45:25 +00:00
|
|
|
public bool JudgementInputPaused { get => noJudgementInput; set => noJudgementInput = value; }
|
2023-05-21 17:35:00 +00:00
|
|
|
|
2022-03-15 00:54:54 +00:00
|
|
|
//arisa's animation controller
|
2022-03-13 22:23:38 +00:00
|
|
|
private Animator idolAnimator;
|
2023-05-21 17:35:00 +00:00
|
|
|
|
|
|
|
// blue's animation controller
|
|
|
|
private Animator backupRAnimator;
|
|
|
|
|
|
|
|
// orange's animation controller
|
|
|
|
private Animator backupLAnimator;
|
2024-01-07 23:45:25 +00:00
|
|
|
|
2022-03-15 00:54:54 +00:00
|
|
|
//spectators
|
2023-05-21 17:35:00 +00:00
|
|
|
private NtrIdolFan Player;
|
2022-03-15 00:54:54 +00:00
|
|
|
private List<GameObject> Spectators;
|
|
|
|
|
|
|
|
//bop-type animations
|
2023-05-21 17:35:00 +00:00
|
|
|
private GameEvent noBop = new GameEvent();
|
|
|
|
private GameEvent noResponse = new GameEvent();
|
|
|
|
private GameEvent noCall = new GameEvent();
|
|
|
|
private GameEvent noSpecBop = new GameEvent();
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
private double idolJumpStartTime = double.MinValue;
|
2024-01-07 23:45:25 +00:00
|
|
|
private static int performanceType = (int)IdolPerformanceType.Normal;
|
2022-03-17 19:13:48 +00:00
|
|
|
private bool responseToggle = false;
|
2023-06-10 19:13:29 +00:00
|
|
|
private static double wantHais = double.MinValue;
|
|
|
|
private static double wantKamone = double.MinValue;
|
2024-01-07 23:45:25 +00:00
|
|
|
private static int wantKamoneType = (int)KamoneResponseType.Through;
|
2023-02-05 03:05:43 +00:00
|
|
|
private static bool wantKamoneAlt = false;
|
2023-06-10 19:13:29 +00:00
|
|
|
private static double wantBigReady = double.MinValue;
|
2024-04-07 21:25:54 +00:00
|
|
|
//private bool hasJumped = false; Unused value - Marc
|
2023-05-21 17:35:00 +00:00
|
|
|
private bool noJudgement = false;
|
|
|
|
private bool noJudgementInput = false;
|
2022-03-17 19:13:48 +00:00
|
|
|
|
2022-03-15 00:54:54 +00:00
|
|
|
//game scene
|
2022-03-13 04:24:37 +00:00
|
|
|
public static FanClub instance;
|
|
|
|
|
2023-10-29 19:44:47 +00:00
|
|
|
public static PlayerInput.InputAction InputAction_TouchRelease =
|
|
|
|
new("NtrIdolTouchRelease", new int[] { IAEmptyCat, IAReleaseCat, IAEmptyCat },
|
|
|
|
IA_Empty, IA_TouchBasicRelease, IA_Empty);
|
|
|
|
|
2022-03-26 02:45:54 +00:00
|
|
|
const int FAN_COUNT = 12;
|
2022-08-17 18:27:44 +00:00
|
|
|
const float RADIUS = 1.5f;
|
2022-03-13 04:24:37 +00:00
|
|
|
private void Awake()
|
|
|
|
{
|
|
|
|
instance = this;
|
2023-12-05 22:38:52 +00:00
|
|
|
SetupBopRegion("fanClub", "bop", "type2", false);
|
|
|
|
AddBopRegionEventsInt("fanClub", "finish", 3);
|
2022-03-15 00:54:54 +00:00
|
|
|
Spectators = new List<GameObject>();
|
2022-03-13 22:23:38 +00:00
|
|
|
idolAnimator = Arisa.GetComponent<Animator>();
|
2023-05-21 17:35:00 +00:00
|
|
|
backupRAnimator = Blue.GetComponent<Animator>();
|
|
|
|
backupLAnimator = Orange.GetComponent<Animator>();
|
2022-03-15 00:54:54 +00:00
|
|
|
|
|
|
|
// procedurally spawning the spectators
|
|
|
|
// from middle of viewport:
|
|
|
|
|
|
|
|
// |========A========|
|
|
|
|
// f==f==f==0==p==f==f
|
2022-03-17 19:13:48 +00:00
|
|
|
// f==f==f==0==0==f==f==f
|
2022-03-15 00:54:54 +00:00
|
|
|
|
2022-03-17 19:13:48 +00:00
|
|
|
//spawn 12, the 4th is our player (idx 3)
|
2022-03-15 00:54:54 +00:00
|
|
|
Vector3 origin = spectatorAnchor.transform.localPosition;
|
|
|
|
int sortOrigin = spectatorAnchor.GetComponent<SortingGroup>().sortingOrder;
|
2024-03-30 02:52:14 +00:00
|
|
|
int row = 1;
|
2022-03-15 00:54:54 +00:00
|
|
|
Vector3 spawnPos = new Vector3(origin.x, origin.y, origin.z);
|
|
|
|
spawnPos.x -= RADIUS * 2 * 3;
|
|
|
|
for (int i = 0; i < FAN_COUNT; i++)
|
|
|
|
{
|
|
|
|
GameObject mobj = Instantiate(spectator, spectatorAnchor.transform.parent);
|
2022-03-26 02:08:46 +00:00
|
|
|
NtrIdolFan fan = mobj.GetComponent<NtrIdolFan>();
|
2022-03-15 00:54:54 +00:00
|
|
|
mobj.transform.localPosition = new Vector3(spawnPos.x, spawnPos.y, spawnPos.z);
|
2024-03-30 02:52:14 +00:00
|
|
|
fan.SetRow(row, sortOrigin);
|
|
|
|
// mobj.GetComponent<SortingGroup>().sortingOrder = i + sortOrigin;
|
2022-03-15 00:54:54 +00:00
|
|
|
if (i == 3)
|
2022-03-15 22:43:13 +00:00
|
|
|
{
|
2022-03-26 02:08:46 +00:00
|
|
|
Player = fan;
|
2022-03-15 22:43:13 +00:00
|
|
|
Player.player = true;
|
|
|
|
}
|
2022-03-15 00:54:54 +00:00
|
|
|
Spectators.Add(mobj);
|
|
|
|
|
|
|
|
//prepare spawn point of next spectator
|
|
|
|
spawnPos.x += RADIUS * 2;
|
|
|
|
if (i == 2)
|
|
|
|
spawnPos.x += RADIUS * 2;
|
|
|
|
if (i == 8)
|
|
|
|
spawnPos.x += RADIUS * 4;
|
|
|
|
if (i == 5)
|
|
|
|
{
|
|
|
|
spawnPos = new Vector3(origin.x, origin.y, origin.z);
|
|
|
|
spawnPos.x -= RADIUS * 2 * 4 - RADIUS;
|
|
|
|
spawnPos.y -= RADIUS;
|
2024-03-30 02:52:14 +00:00
|
|
|
row++;
|
2022-03-15 00:54:54 +00:00
|
|
|
}
|
|
|
|
}
|
2022-04-28 21:56:00 +00:00
|
|
|
|
2024-01-07 23:45:25 +00:00
|
|
|
if (performanceType != (int)IdolPerformanceType.Normal)
|
2022-04-28 21:56:00 +00:00
|
|
|
{
|
|
|
|
idolAnimator.Play("NoPose" + GetPerformanceSuffix(), -1, 0);
|
|
|
|
}
|
2022-06-18 06:31:19 +00:00
|
|
|
|
|
|
|
ToSpot();
|
2023-05-21 17:35:00 +00:00
|
|
|
noJudgement = false;
|
|
|
|
noJudgementInput = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
private void Start()
|
|
|
|
{
|
|
|
|
Blue.Init();
|
|
|
|
Orange.Init();
|
|
|
|
|
|
|
|
var amieWalkEvts = EventCaller.GetAllInGameManagerList("fanClub", new string[] { "friend walk" });
|
|
|
|
foreach (var e in amieWalkEvts)
|
|
|
|
{
|
2024-01-19 04:52:38 +00:00
|
|
|
if (e.beat <= conductor.songPositionInBeatsAsDouble)
|
2023-05-21 17:35:00 +00:00
|
|
|
{
|
|
|
|
DancerTravel(e.beat, e.length, e["exit"], e["instant"]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-07 23:45:25 +00:00
|
|
|
FanClub.SetPerformanceType((int)IdolPerformanceType.Normal);
|
2023-05-21 17:35:00 +00:00
|
|
|
var choreoTypeEvts = EventCaller.GetAllInGameManagerList("fanClub", new string[] { "set performance type" });
|
|
|
|
foreach (var e in choreoTypeEvts)
|
|
|
|
{
|
2024-01-19 04:52:38 +00:00
|
|
|
if (e.beat <= conductor.songPositionInBeatsAsDouble)
|
2023-05-21 17:35:00 +00:00
|
|
|
{
|
|
|
|
FanClub.SetPerformanceType(e["type"]);
|
|
|
|
}
|
|
|
|
}
|
2022-04-28 21:56:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static string GetPerformanceSuffix()
|
|
|
|
{
|
|
|
|
switch (performanceType)
|
|
|
|
{
|
2024-01-07 23:45:25 +00:00
|
|
|
case (int)IdolPerformanceType.Arrange:
|
2022-04-28 21:56:00 +00:00
|
|
|
return "Arrange";
|
|
|
|
default:
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
}
|
2024-01-07 23:45:25 +00:00
|
|
|
|
|
|
|
public static void SetPerformanceType(int type = (int)IdolPerformanceType.Normal)
|
2022-04-28 21:56:00 +00:00
|
|
|
{
|
|
|
|
performanceType = type;
|
|
|
|
if (GameManager.instance.currentGame == "fanClub")
|
|
|
|
{
|
|
|
|
FanClub.instance.idolAnimator.Play("NoPose" + GetPerformanceSuffix(), -1, 0);
|
|
|
|
}
|
2022-03-13 22:23:38 +00:00
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
public override void OnGameSwitch(double beat)
|
2022-03-17 20:43:35 +00:00
|
|
|
{
|
2023-06-10 19:13:29 +00:00
|
|
|
if (wantHais != double.MinValue)
|
2022-03-17 20:43:35 +00:00
|
|
|
{
|
|
|
|
ContinueHais(wantHais);
|
2023-06-10 19:13:29 +00:00
|
|
|
wantHais = double.MinValue;
|
2022-03-17 20:43:35 +00:00
|
|
|
}
|
2023-06-10 19:13:29 +00:00
|
|
|
if (wantKamone != double.MinValue)
|
2022-03-17 20:43:35 +00:00
|
|
|
{
|
2023-02-05 03:05:43 +00:00
|
|
|
ContinueKamone(wantKamone, 0, wantKamoneType, wantKamoneAlt);
|
2023-06-10 19:13:29 +00:00
|
|
|
wantKamone = double.MinValue;
|
2022-03-17 20:43:35 +00:00
|
|
|
}
|
2023-06-10 19:13:29 +00:00
|
|
|
if (wantBigReady != double.MinValue)
|
2022-03-17 20:43:35 +00:00
|
|
|
{
|
|
|
|
ContinueBigReady(wantBigReady);
|
2023-06-10 19:13:29 +00:00
|
|
|
wantBigReady = double.MinValue;
|
2022-03-17 20:43:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-23 16:19:39 +00:00
|
|
|
public override void OnBeatPulse(double beat)
|
2022-03-13 04:24:37 +00:00
|
|
|
{
|
2023-12-05 22:38:52 +00:00
|
|
|
int whoBops = BeatIsInBopRegionInt(beat);
|
|
|
|
bool goBopIdol = whoBops == (int)IdolBopType.Both || whoBops == (int)IdolBopType.Idol;
|
|
|
|
bool goBopSpec = whoBops == (int)IdolBopType.Both || whoBops == (int)IdolBopType.Spectators;
|
2023-11-23 16:19:39 +00:00
|
|
|
if (goBopIdol)
|
2022-03-13 22:23:38 +00:00
|
|
|
{
|
2024-01-19 04:52:38 +00:00
|
|
|
if (!(conductor.songPositionInBeatsAsDouble >= noBop.startBeat && conductor.songPositionInBeatsAsDouble < noBop.startBeat + noBop.length))
|
2022-03-15 00:54:54 +00:00
|
|
|
{
|
2023-11-23 16:19:39 +00:00
|
|
|
idolAnimator.Play("IdolBeat" + GetPerformanceSuffix(), 0, 0);
|
|
|
|
Blue.PlayAnimState("Beat");
|
|
|
|
Orange.PlayAnimState("Beat");
|
2022-03-15 00:54:54 +00:00
|
|
|
}
|
2022-03-17 19:13:48 +00:00
|
|
|
}
|
2023-11-23 16:19:39 +00:00
|
|
|
if (goBopSpec)
|
2022-03-17 19:13:48 +00:00
|
|
|
{
|
2024-01-19 04:52:38 +00:00
|
|
|
if (!(conductor.songPositionInBeatsAsDouble >= noSpecBop.startBeat && conductor.songPositionInBeatsAsDouble < noSpecBop.startBeat + noSpecBop.length))
|
2023-11-23 16:19:39 +00:00
|
|
|
BopAll();
|
2022-03-13 22:23:38 +00:00
|
|
|
}
|
2023-11-23 16:19:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private void Update()
|
|
|
|
{
|
2022-03-22 19:23:55 +00:00
|
|
|
//idol jumping physics
|
2024-01-19 04:52:38 +00:00
|
|
|
float jumpPos = conductor.GetPositionFromBeat(idolJumpStartTime, 1f);
|
2022-03-25 22:59:18 +00:00
|
|
|
float IDOL_SHADOW_SCALE = 1.18f;
|
2024-04-07 04:54:06 +00:00
|
|
|
if (conductor.unswungSongPositionInBeatsAsDouble >= idolJumpStartTime && conductor.unswungSongPositionInBeatsAsDouble < idolJumpStartTime + 1f)
|
2022-03-22 19:23:55 +00:00
|
|
|
{
|
2024-04-07 21:25:54 +00:00
|
|
|
//hasJumped = true; Unused value - Marc
|
2022-03-22 19:23:55 +00:00
|
|
|
float yMul = jumpPos * 2f - 1f;
|
2024-01-07 23:45:25 +00:00
|
|
|
float yWeight = -(yMul * yMul) + 1f;
|
2022-04-30 04:36:47 +00:00
|
|
|
ArisaRootMotion.transform.localPosition = new Vector3(0, 2f * yWeight + 0.25f);
|
2024-01-07 23:45:25 +00:00
|
|
|
ArisaShadow.transform.localScale = new Vector3((1f - yWeight * 0.8f) * IDOL_SHADOW_SCALE, (1f - yWeight * 0.8f) * IDOL_SHADOW_SCALE, 1f);
|
2022-03-22 19:23:55 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2023-06-10 19:13:29 +00:00
|
|
|
idolJumpStartTime = double.MinValue;
|
2022-03-25 22:59:18 +00:00
|
|
|
ArisaRootMotion.transform.localPosition = new Vector3(0, 0);
|
2022-03-22 19:23:55 +00:00
|
|
|
ArisaShadow.transform.localScale = new Vector3(IDOL_SHADOW_SCALE, IDOL_SHADOW_SCALE, 1f);
|
|
|
|
}
|
2022-03-13 22:23:38 +00:00
|
|
|
}
|
|
|
|
|
2024-01-07 23:45:25 +00:00
|
|
|
public void Bop(double beat, float length, int target = (int)IdolBopType.Both, int targetAuto = (int)IdolBopType.Both)
|
2022-03-13 22:23:38 +00:00
|
|
|
{
|
2023-03-07 17:22:32 +00:00
|
|
|
for (int i = 0; i < length; i++)
|
2022-03-17 19:13:48 +00:00
|
|
|
{
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(instance, new List<BeatAction.Action>()
|
2023-03-07 17:22:32 +00:00
|
|
|
{
|
|
|
|
new BeatAction.Action(beat + i, delegate { BopSingle(target); })
|
|
|
|
});
|
2022-03-17 19:13:48 +00:00
|
|
|
}
|
2022-03-13 22:23:38 +00:00
|
|
|
}
|
|
|
|
|
2023-03-07 17:22:32 +00:00
|
|
|
void BopSingle(int target)
|
2022-03-15 00:54:54 +00:00
|
|
|
{
|
2023-03-07 17:22:32 +00:00
|
|
|
switch (target)
|
|
|
|
{
|
|
|
|
case (int)IdolBopType.Idol:
|
|
|
|
idolAnimator.Play("IdolBeat" + GetPerformanceSuffix(), 0, 0);
|
2023-05-21 17:35:00 +00:00
|
|
|
Blue.PlayAnimState("Beat");
|
|
|
|
Orange.PlayAnimState("Beat");
|
2023-03-07 17:22:32 +00:00
|
|
|
break;
|
|
|
|
case (int)IdolBopType.Spectators:
|
|
|
|
BopAll();
|
|
|
|
break;
|
|
|
|
case (int)IdolBopType.Both:
|
|
|
|
idolAnimator.Play("IdolBeat" + GetPerformanceSuffix(), 0, 0);
|
2023-05-21 17:35:00 +00:00
|
|
|
Blue.PlayAnimState("Beat");
|
|
|
|
Orange.PlayAnimState("Beat");
|
2023-03-07 17:22:32 +00:00
|
|
|
BopAll();
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2022-03-15 00:54:54 +00:00
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
private void DisableBop(double beat, float length)
|
2022-03-17 19:13:48 +00:00
|
|
|
{
|
|
|
|
noBop.length = length;
|
|
|
|
noBop.startBeat = beat;
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
private void DisableResponse(double beat, float length)
|
2022-03-21 15:29:24 +00:00
|
|
|
{
|
|
|
|
noResponse.length = length;
|
|
|
|
noResponse.startBeat = beat;
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
private void DisableCall(double beat, float length)
|
2022-06-04 03:15:56 +00:00
|
|
|
{
|
|
|
|
noCall.length = length;
|
|
|
|
noCall.startBeat = beat;
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
private void DisableSpecBop(double beat, float length)
|
2022-03-17 19:13:48 +00:00
|
|
|
{
|
2024-01-19 04:52:38 +00:00
|
|
|
double bt = conductor.songPositionInBeatsAsDouble;
|
2022-03-21 15:23:42 +00:00
|
|
|
if (bt >= noSpecBop.startBeat && bt < noSpecBop.startBeat + noSpecBop.length)
|
|
|
|
{
|
2023-06-10 19:13:29 +00:00
|
|
|
double thisStToNextSt = beat - noSpecBop.startBeat;
|
|
|
|
double newLen = thisStToNextSt + length;
|
2022-03-26 02:45:54 +00:00
|
|
|
if (newLen > noSpecBop.length)
|
2023-06-10 19:13:29 +00:00
|
|
|
noSpecBop.length = (float)thisStToNextSt + length;
|
2022-03-21 15:23:42 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
noSpecBop.length = length;
|
|
|
|
noSpecBop.startBeat = beat;
|
|
|
|
}
|
2022-03-17 19:13:48 +00:00
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
public void PlayAnim(double beat, float length, int type, int who)
|
2022-03-16 21:41:46 +00:00
|
|
|
{
|
2023-06-10 19:13:29 +00:00
|
|
|
idolJumpStartTime = double.MinValue;
|
2022-04-28 20:01:07 +00:00
|
|
|
DisableResponse(beat, length + 0.5f);
|
|
|
|
DisableBop(beat, length + 0.5f);
|
2022-06-04 03:15:56 +00:00
|
|
|
DisableCall(beat, length + 0.5f);
|
2022-03-17 19:13:48 +00:00
|
|
|
|
2023-05-21 17:35:00 +00:00
|
|
|
if (who is (int)IdolType.All or (int)IdolType.LeftDancer)
|
|
|
|
Orange.PlayAnim(beat, length, type);
|
|
|
|
if (who is (int)IdolType.All or (int)IdolType.RightDancer)
|
|
|
|
Blue.PlayAnim(beat, length, type);
|
|
|
|
|
|
|
|
if (who is (int)IdolType.All or (int)IdolType.Idol)
|
2022-03-16 21:41:46 +00:00
|
|
|
{
|
2023-05-21 17:35:00 +00:00
|
|
|
switch (type)
|
|
|
|
{
|
|
|
|
case (int)IdolAnimations.Bop:
|
|
|
|
idolAnimator.Play("IdolBeat" + GetPerformanceSuffix(), -1, 0);
|
|
|
|
break;
|
|
|
|
case (int)IdolAnimations.PeaceVocal:
|
|
|
|
idolAnimator.Play("IdolPeace" + GetPerformanceSuffix(), -1, 0);
|
|
|
|
break;
|
|
|
|
case (int)IdolAnimations.Peace:
|
|
|
|
idolAnimator.Play("IdolPeaceNoSync" + GetPerformanceSuffix(), -1, 0);
|
|
|
|
break;
|
|
|
|
case (int)IdolAnimations.Clap:
|
|
|
|
idolAnimator.Play("IdolCrap" + GetPerformanceSuffix(), -1, 0);
|
|
|
|
break;
|
|
|
|
case (int)IdolAnimations.Call:
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(instance, new List<BeatAction.Action>()
|
2022-03-16 21:41:46 +00:00
|
|
|
{
|
2022-04-30 04:36:47 +00:00
|
|
|
new BeatAction.Action(beat, delegate { Arisa.GetComponent<Animator>().Play("IdolCall0" + GetPerformanceSuffix(), -1, 0); }),
|
|
|
|
new BeatAction.Action(beat + 0.75f, delegate { Arisa.GetComponent<Animator>().Play("IdolCall1" + GetPerformanceSuffix(), -1, 0); }),
|
2022-03-16 21:41:46 +00:00
|
|
|
});
|
2023-05-21 17:35:00 +00:00
|
|
|
break;
|
|
|
|
case (int)IdolAnimations.Response:
|
|
|
|
idolAnimator.Play("IdolResponse" + GetPerformanceSuffix(), -1, 0);
|
|
|
|
break;
|
|
|
|
case (int)IdolAnimations.Jump:
|
|
|
|
DoIdolJump(beat, length);
|
|
|
|
break;
|
|
|
|
case (int)IdolAnimations.BigCall:
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(instance, new List<BeatAction.Action>()
|
2022-04-28 20:01:07 +00:00
|
|
|
{
|
2022-05-02 15:45:48 +00:00
|
|
|
new BeatAction.Action(beat, delegate { Arisa.GetComponent<Animator>().Play("IdolBigCall0" + GetPerformanceSuffix(), -1, 0); }),
|
|
|
|
new BeatAction.Action(beat + length, delegate { Arisa.GetComponent<Animator>().Play("IdolBigCall1" + GetPerformanceSuffix(), -1, 0); }),
|
2022-04-28 20:01:07 +00:00
|
|
|
});
|
2023-05-21 17:35:00 +00:00
|
|
|
break;
|
|
|
|
case (int)IdolAnimations.Squat:
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(instance, new List<BeatAction.Action>()
|
2022-03-27 04:11:32 +00:00
|
|
|
{
|
2022-05-02 15:45:48 +00:00
|
|
|
new BeatAction.Action(beat, delegate { Arisa.GetComponent<Animator>().Play("IdolSquat0" + GetPerformanceSuffix(), -1, 0); }),
|
|
|
|
new BeatAction.Action(beat + length, delegate { Arisa.GetComponent<Animator>().Play("IdolSquat1" + GetPerformanceSuffix(), -1, 0); }),
|
2022-03-27 23:05:08 +00:00
|
|
|
});
|
2023-05-21 17:35:00 +00:00
|
|
|
break;
|
|
|
|
case (int)IdolAnimations.Wink:
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(instance, new List<BeatAction.Action>()
|
2022-03-27 23:05:08 +00:00
|
|
|
{
|
2022-05-02 17:43:47 +00:00
|
|
|
new BeatAction.Action(beat, delegate { Arisa.GetComponent<Animator>().Play("IdolWink0" + GetPerformanceSuffix(), -1, 0); }),
|
|
|
|
new BeatAction.Action(beat + length, delegate { Arisa.GetComponent<Animator>().Play("IdolWink1" + GetPerformanceSuffix(), -1, 0); }),
|
2022-03-27 04:11:32 +00:00
|
|
|
});
|
2023-05-21 17:35:00 +00:00
|
|
|
break;
|
|
|
|
case (int)IdolAnimations.Dab:
|
|
|
|
idolAnimator.Play("IdolDab" + GetPerformanceSuffix(), -1, 0);
|
2023-06-10 19:13:29 +00:00
|
|
|
SoundByte.PlayOneShotGame("fanClub/arisa_dab");
|
2023-05-21 17:35:00 +00:00
|
|
|
break;
|
|
|
|
default: break;
|
|
|
|
}
|
2022-03-16 21:41:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
public void PlayAnimStage(double beat, int type)
|
2022-03-27 23:05:08 +00:00
|
|
|
{
|
|
|
|
switch (type)
|
|
|
|
{
|
2024-01-07 23:45:25 +00:00
|
|
|
case (int)StageAnimations.Reset:
|
2022-03-27 23:05:08 +00:00
|
|
|
StageAnimator.Play("Bg", -1, 0);
|
2022-06-18 06:31:19 +00:00
|
|
|
ToSpot();
|
2022-03-27 23:05:08 +00:00
|
|
|
break;
|
2024-01-07 23:45:25 +00:00
|
|
|
case (int)StageAnimations.Flash:
|
2022-03-27 23:05:08 +00:00
|
|
|
StageAnimator.Play("Bg_Light", -1, 0);
|
2022-06-18 06:31:19 +00:00
|
|
|
ToSpot();
|
|
|
|
break;
|
2024-01-07 23:45:25 +00:00
|
|
|
case (int)StageAnimations.Spot:
|
2022-06-18 06:31:19 +00:00
|
|
|
StageAnimator.Play("Bg_Spot", -1, 0);
|
|
|
|
ToSpot(false);
|
2022-03-27 23:05:08 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-18 06:31:19 +00:00
|
|
|
public void ToSpot(bool unspot = true)
|
|
|
|
{
|
|
|
|
Arisa.GetComponent<NtrIdolAri>().ToSpot(unspot);
|
2023-05-21 17:35:00 +00:00
|
|
|
Blue.ToSpot(unspot);
|
|
|
|
Orange.ToSpot(unspot);
|
2022-06-18 06:31:19 +00:00
|
|
|
if (unspot)
|
|
|
|
spectatorMat.SetColor("_Color", new Color(1, 1, 1, 1));
|
|
|
|
else
|
2024-01-07 23:45:25 +00:00
|
|
|
spectatorMat.SetColor("_Color", new Color(117 / 255f, 177 / 255f, 209 / 255f, 1));
|
2022-06-18 06:31:19 +00:00
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
private void DoIdolJump(double beat, float length = 3f)
|
2022-03-16 21:41:46 +00:00
|
|
|
{
|
2022-03-26 02:45:54 +00:00
|
|
|
DisableBop(beat, length);
|
|
|
|
DisableResponse(beat, length);
|
2024-04-07 04:54:06 +00:00
|
|
|
idolJumpStartTime = conductor.GetUnSwungBeat(beat);
|
2022-03-22 19:23:55 +00:00
|
|
|
|
|
|
|
//play anim
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(instance, new List<BeatAction.Action>()
|
2022-03-26 02:45:54 +00:00
|
|
|
{
|
2022-04-30 04:36:47 +00:00
|
|
|
new BeatAction.Action(beat, delegate { Arisa.GetComponent<Animator>().Play("IdolJump" + GetPerformanceSuffix(), -1, 0); }),
|
2022-05-02 00:08:48 +00:00
|
|
|
new BeatAction.Action(beat + 1f, delegate { Arisa.GetComponent<Animator>().Play("IdolLand" + GetPerformanceSuffix(), -1, 0); }),
|
2022-03-26 02:45:54 +00:00
|
|
|
});
|
2022-03-16 21:41:46 +00:00
|
|
|
}
|
|
|
|
|
2022-03-17 19:13:48 +00:00
|
|
|
private void DoIdolClaps()
|
2022-03-13 22:23:38 +00:00
|
|
|
{
|
2022-03-17 19:13:48 +00:00
|
|
|
if (!responseToggle)
|
2022-03-16 21:41:46 +00:00
|
|
|
{
|
2024-01-19 04:52:38 +00:00
|
|
|
if (!(conductor.songPositionInBeatsAsDouble >= noResponse.startBeat && conductor.songPositionInBeatsAsDouble < noResponse.startBeat + noResponse.length))
|
2022-03-21 15:29:24 +00:00
|
|
|
{
|
2022-04-28 21:56:00 +00:00
|
|
|
idolAnimator.Play("IdolCrap" + GetPerformanceSuffix(), -1, 0);
|
2023-05-21 17:35:00 +00:00
|
|
|
Blue.PlayAnimState("Crap");
|
|
|
|
Orange.PlayAnimState("Crap");
|
2022-03-21 15:29:24 +00:00
|
|
|
}
|
2022-03-16 21:41:46 +00:00
|
|
|
}
|
2022-03-17 19:13:48 +00:00
|
|
|
}
|
|
|
|
|
2022-06-04 03:15:56 +00:00
|
|
|
private void DoIdolPeace(bool sync = true)
|
|
|
|
{
|
2024-01-19 04:52:38 +00:00
|
|
|
if (!(conductor.songPositionInBeatsAsDouble >= noCall.startBeat && conductor.songPositionInBeatsAsDouble < noCall.startBeat + noCall.length))
|
2022-06-04 03:15:56 +00:00
|
|
|
{
|
|
|
|
if (sync)
|
|
|
|
idolAnimator.Play("IdolPeace" + GetPerformanceSuffix(), -1, 0);
|
|
|
|
else
|
|
|
|
idolAnimator.Play("IdolPeaceNoSync" + GetPerformanceSuffix(), -1, 0);
|
2023-05-21 17:35:00 +00:00
|
|
|
Blue.PlayAnimState("Peace");
|
|
|
|
Orange.PlayAnimState("Peace");
|
2022-06-04 03:15:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-17 19:13:48 +00:00
|
|
|
private void DoIdolResponse()
|
|
|
|
{
|
|
|
|
if (responseToggle)
|
|
|
|
{
|
2024-01-19 04:52:38 +00:00
|
|
|
if (!(conductor.songPositionInBeatsAsDouble >= noResponse.startBeat && conductor.songPositionInBeatsAsDouble < noResponse.startBeat + noResponse.length))
|
2022-04-30 04:36:47 +00:00
|
|
|
idolAnimator.Play("IdolResponse" + GetPerformanceSuffix(), -1, 0);
|
2022-03-17 19:13:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-04 03:15:56 +00:00
|
|
|
private void DoIdolCall(int part = 0, bool big = false)
|
|
|
|
{
|
2024-01-19 04:52:38 +00:00
|
|
|
if (!(conductor.songPositionInBeatsAsDouble >= noCall.startBeat && conductor.songPositionInBeatsAsDouble < noCall.startBeat + noCall.length))
|
2022-06-04 03:15:56 +00:00
|
|
|
{
|
|
|
|
if (big)
|
|
|
|
{
|
|
|
|
idolAnimator.Play("IdolBigCall" + part + GetPerformanceSuffix(), -1, 0);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
idolAnimator.Play("IdolCall" + part + GetPerformanceSuffix(), -1, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-17 19:13:48 +00:00
|
|
|
const float HAIS_LENGTH = 4.5f;
|
2023-10-17 22:53:47 +00:00
|
|
|
public void CallHai(double beat, bool noSound = false, bool noResponse = false, int type = 0)
|
2022-03-17 19:13:48 +00:00
|
|
|
{
|
|
|
|
responseToggle = false;
|
|
|
|
DisableBop(beat, 8f);
|
2022-03-16 21:41:46 +00:00
|
|
|
|
2024-01-07 23:45:25 +00:00
|
|
|
Prepare(beat + 3f);
|
|
|
|
Prepare(beat + 4f);
|
|
|
|
Prepare(beat + 5f);
|
|
|
|
Prepare(beat + 6f);
|
2022-03-15 22:43:13 +00:00
|
|
|
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(instance, new List<BeatAction.Action>()
|
2022-03-13 22:23:38 +00:00
|
|
|
{
|
2022-06-04 03:15:56 +00:00
|
|
|
new BeatAction.Action(beat, delegate { DoIdolPeace();}),
|
|
|
|
new BeatAction.Action(beat + 1f, delegate { DoIdolPeace();}),
|
|
|
|
new BeatAction.Action(beat + 2f, delegate { DoIdolPeace();}),
|
2022-03-26 02:45:54 +00:00
|
|
|
new BeatAction.Action(beat + 2.5f, delegate { DisableSpecBop(beat + 2.5f, 5f);}),
|
2022-06-04 03:15:56 +00:00
|
|
|
new BeatAction.Action(beat + 3f, delegate { DoIdolPeace(false); PlayPrepare(); }),
|
2022-03-17 19:13:48 +00:00
|
|
|
|
|
|
|
new BeatAction.Action(beat + 4f, delegate { PlayOneClap(beat + 4f); DoIdolClaps();}),
|
|
|
|
new BeatAction.Action(beat + 5f, delegate { PlayOneClap(beat + 5f); DoIdolClaps();}),
|
|
|
|
new BeatAction.Action(beat + 6f, delegate { PlayOneClap(beat + 6f); DoIdolClaps();}),
|
|
|
|
new BeatAction.Action(beat + 7f, delegate { PlayOneClap(beat + 7f); DoIdolClaps();}),
|
2022-03-15 22:43:13 +00:00
|
|
|
});
|
2022-03-15 00:54:54 +00:00
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
public static void WarnHai(double beat, bool noSound = false, int type = 0)
|
2022-03-15 22:43:13 +00:00
|
|
|
{
|
2022-03-17 20:43:35 +00:00
|
|
|
wantHais = beat;
|
2023-01-12 01:42:12 +00:00
|
|
|
}
|
|
|
|
|
2024-01-07 23:45:25 +00:00
|
|
|
public static void HaiSound(double beat, bool noSound = false, bool noResponse = false, int type = 0)
|
2023-01-12 01:42:12 +00:00
|
|
|
{
|
2024-01-07 23:45:25 +00:00
|
|
|
if (!noResponse) PlaySoundSequence("fanClub", "crowd_hai", beat + 4f);
|
2022-03-17 20:43:35 +00:00
|
|
|
if (noSound) return;
|
2023-01-12 01:42:12 +00:00
|
|
|
PlaySoundSequence("fanClub", "arisa_hai", beat);
|
2022-03-15 22:43:13 +00:00
|
|
|
}
|
|
|
|
|
2023-01-12 01:42:12 +00:00
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
public void ContinueHais(double beat, int type = 0)
|
2022-03-17 20:43:35 +00:00
|
|
|
{
|
2023-10-17 22:53:47 +00:00
|
|
|
CallHai(beat, true, true, type);
|
2022-03-17 20:43:35 +00:00
|
|
|
}
|
|
|
|
|
2022-03-17 19:13:48 +00:00
|
|
|
const float CALL_LENGTH = 2.5f;
|
2024-01-07 23:45:25 +00:00
|
|
|
public void CallKamone(double beat, bool noSound = false, bool noResponse = false, int type = 0, int responseType = (int)KamoneResponseType.Through, bool alt = false)
|
2022-03-15 00:54:54 +00:00
|
|
|
{
|
2024-01-07 23:45:25 +00:00
|
|
|
bool doJump = (responseType == (int)KamoneResponseType.Jump || responseType == (int)KamoneResponseType.JumpFast);
|
|
|
|
bool isBig = (responseType == (int)KamoneResponseType.ThroughFast || responseType == (int)KamoneResponseType.JumpFast);
|
2022-04-27 22:02:53 +00:00
|
|
|
DisableResponse(beat, 2f);
|
2022-03-17 20:43:35 +00:00
|
|
|
|
2022-03-17 19:13:48 +00:00
|
|
|
responseToggle = true;
|
2022-04-27 22:02:53 +00:00
|
|
|
DisableBop(beat, (doJump) ? 6.25f : 5.25f);
|
2022-03-17 19:13:48 +00:00
|
|
|
DisableSpecBop(beat + 0.5f, 6f);
|
|
|
|
|
2022-06-04 03:15:56 +00:00
|
|
|
Prepare(beat + 1f, 3);
|
2022-03-17 19:13:48 +00:00
|
|
|
Prepare(beat + 2.5f);
|
|
|
|
Prepare(beat + 3f, 2);
|
|
|
|
Prepare(beat + 4f, 1);
|
2022-03-15 00:54:54 +00:00
|
|
|
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(instance, new List<BeatAction.Action>()
|
2022-03-15 00:54:54 +00:00
|
|
|
{
|
2023-05-21 17:35:00 +00:00
|
|
|
new BeatAction.Action(beat, delegate { DoIdolCall(0, isBig); Blue.PlayAnimState("Beat"); Orange.PlayAnimState("Beat"); }),
|
2022-06-04 03:15:56 +00:00
|
|
|
new BeatAction.Action(beat + (isBig ? 1f : 0.75f), delegate { DoIdolCall(1, isBig); }),
|
2023-05-21 17:35:00 +00:00
|
|
|
new BeatAction.Action(beat + 1f, delegate { PlayPrepare(); Blue.PlayAnimState("Beat"); Orange.PlayAnimState("Beat"); }),
|
2022-03-17 19:13:48 +00:00
|
|
|
|
2023-05-21 17:35:00 +00:00
|
|
|
new BeatAction.Action(beat + 2f, delegate { PlayLongClap(beat + 2f); DoIdolResponse(); Blue.PlayAnimState("Beat"); Orange.PlayAnimState("Beat"); }),
|
|
|
|
new BeatAction.Action(beat + 3f, delegate { DoIdolResponse(); Blue.PlayAnimState("Beat"); Orange.PlayAnimState("Beat"); }),
|
2022-03-17 19:13:48 +00:00
|
|
|
new BeatAction.Action(beat + 3.5f, delegate { PlayOneClap(beat + 3.5f); }),
|
2023-05-21 17:35:00 +00:00
|
|
|
new BeatAction.Action(beat + 4f, delegate { PlayChargeClap(beat + 4f); DoIdolResponse(); Blue.PlayAnimState("Beat"); Orange.PlayAnimState("Beat"); }),
|
2022-03-16 21:41:46 +00:00
|
|
|
new BeatAction.Action(beat + 5f, delegate { PlayJump(beat + 5f);
|
2024-01-07 23:45:25 +00:00
|
|
|
if (doJump)
|
2022-03-16 21:41:46 +00:00
|
|
|
{
|
|
|
|
DoIdolJump(beat + 5f);
|
2023-05-21 17:35:00 +00:00
|
|
|
Blue.DoIdolJump(beat + 5f);
|
|
|
|
Orange.DoIdolJump(beat + 5f);
|
2022-03-16 21:41:46 +00:00
|
|
|
}
|
2022-03-17 19:13:48 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
DoIdolResponse();
|
2024-01-07 23:45:25 +00:00
|
|
|
Blue.PlayAnimState("Beat"); Orange.PlayAnimState("Beat");
|
2022-03-17 19:13:48 +00:00
|
|
|
}
|
2022-03-16 21:41:46 +00:00
|
|
|
}),
|
2022-03-15 22:43:13 +00:00
|
|
|
});
|
2022-03-15 00:54:54 +00:00
|
|
|
}
|
|
|
|
|
2024-01-07 23:45:25 +00:00
|
|
|
public static void WarnKamone(double beat, bool noSound = false, int type = 0, int responseType = (int)KamoneResponseType.Through, bool alt = false)
|
2022-03-15 22:43:13 +00:00
|
|
|
{
|
2022-03-17 20:43:35 +00:00
|
|
|
wantKamone = beat;
|
2022-03-26 02:45:54 +00:00
|
|
|
wantKamoneType = responseType;
|
2023-02-05 03:05:43 +00:00
|
|
|
wantKamoneAlt = alt;
|
2023-01-12 01:42:12 +00:00
|
|
|
}
|
|
|
|
|
2024-01-07 23:45:25 +00:00
|
|
|
public static void KamoneSound(double beat, bool noSound = false, bool noResponse = false, int type = 0, int responseType = (int)KamoneResponseType.Through, bool alt = false)
|
2023-01-12 01:42:12 +00:00
|
|
|
{
|
2024-01-07 23:45:25 +00:00
|
|
|
if (!noResponse) PlaySoundSequence("fanClub", alt ? "crowd_iina" : "crowd_kamone", beat + 2f);
|
2022-03-17 20:43:35 +00:00
|
|
|
if (noSound) return;
|
2024-01-07 23:45:25 +00:00
|
|
|
if (responseType == (int)KamoneResponseType.ThroughFast || responseType == (int)KamoneResponseType.JumpFast)
|
2022-04-27 22:02:53 +00:00
|
|
|
{
|
2023-02-05 03:05:43 +00:00
|
|
|
PlaySoundSequence("fanClub", alt ? "arisa_iina_fast" : "arisa_kamone_fast", beat);
|
2022-04-27 22:02:53 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2023-02-05 03:05:43 +00:00
|
|
|
PlaySoundSequence("fanClub", alt ? "arisa_iina" : "arisa_kamone", beat);
|
2022-04-27 22:02:53 +00:00
|
|
|
}
|
2022-03-15 22:43:13 +00:00
|
|
|
}
|
|
|
|
|
2024-01-07 23:45:25 +00:00
|
|
|
public void ContinueKamone(double beat, int type = 0, int responseType = (int)KamoneResponseType.Through, bool alt = false)
|
2022-03-17 20:43:35 +00:00
|
|
|
{
|
2023-10-17 22:53:47 +00:00
|
|
|
CallKamone(beat, true, true, type, responseType, alt);
|
2022-03-17 20:43:35 +00:00
|
|
|
}
|
|
|
|
|
2022-03-17 19:13:48 +00:00
|
|
|
const float BIGCALL_LENGTH = 2.75f;
|
2023-06-10 19:13:29 +00:00
|
|
|
public void CallBigReady(double beat, bool noSound = false)
|
2022-03-15 22:43:13 +00:00
|
|
|
{
|
2022-04-28 20:01:07 +00:00
|
|
|
Prepare(beat + 1.5f);
|
|
|
|
Prepare(beat + 2f);
|
2024-01-07 23:45:25 +00:00
|
|
|
|
2022-03-17 19:13:48 +00:00
|
|
|
DisableSpecBop(beat, 3.75f);
|
|
|
|
|
|
|
|
PlayAnimationAll("FanBigReady", onlyOverrideBop: true);
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(this, new List<BeatAction.Action>()
|
2022-03-16 21:41:46 +00:00
|
|
|
{
|
2022-03-17 19:13:48 +00:00
|
|
|
new BeatAction.Action(beat + 1.5f, delegate { PlayAnimationAll("FanBigReady", onlyOverrideBop: true); }),
|
|
|
|
new BeatAction.Action(beat + 2f, delegate { PlayAnimationAll("FanBigReady", onlyOverrideBop: true); }),
|
2022-03-16 21:41:46 +00:00
|
|
|
new BeatAction.Action(beat + 2.5f, delegate { PlayOneClap(beat + 2.5f);}),
|
|
|
|
new BeatAction.Action(beat + 3f, delegate { PlayOneClap(beat + 3f);}),
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
public static void WarnBigReady(double beat, bool noSound = false)
|
2022-03-16 21:41:46 +00:00
|
|
|
{
|
2022-03-17 20:43:35 +00:00
|
|
|
wantBigReady = beat;
|
2023-01-12 01:42:12 +00:00
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
public static void BigReadySound(double beat, bool noSound = false)
|
2023-01-12 01:42:12 +00:00
|
|
|
{
|
2022-03-17 20:43:35 +00:00
|
|
|
if (noSound) return;
|
2023-01-12 01:42:12 +00:00
|
|
|
PlaySoundSequence("fanClub", "crowd_big_ready", beat);
|
2022-03-16 21:41:46 +00:00
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
public void ContinueBigReady(double beat)
|
2022-03-17 20:43:35 +00:00
|
|
|
{
|
|
|
|
CallBigReady(beat, true);
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
public void Prepare(double beat, int type = 0)
|
2022-03-16 21:41:46 +00:00
|
|
|
{
|
|
|
|
Player.AddHit(beat, type);
|
2022-03-15 22:43:13 +00:00
|
|
|
}
|
|
|
|
|
2022-03-17 19:13:48 +00:00
|
|
|
private void PlayAnimationAll(string anim, bool noPlayer = false, bool doForced = false, bool onlyOverrideBop = false)
|
2022-03-15 00:54:54 +00:00
|
|
|
{
|
|
|
|
for (int i = 0; i < Spectators.Count; i++)
|
|
|
|
{
|
|
|
|
if (i == 3 && noPlayer)
|
|
|
|
continue;
|
2024-01-07 23:45:25 +00:00
|
|
|
|
2022-03-15 00:54:54 +00:00
|
|
|
if (!Spectators[i].GetComponent<Animator>().IsAnimationNotPlaying() && !doForced)
|
2022-03-17 19:13:48 +00:00
|
|
|
{
|
|
|
|
if (onlyOverrideBop)
|
|
|
|
{
|
|
|
|
string clipName = Spectators[i].GetComponent<Animator>().GetCurrentAnimatorClipInfo(0)[0].clip.name;
|
|
|
|
if (clipName == "FanBeat" || clipName == "NoPose")
|
2022-06-04 03:15:56 +00:00
|
|
|
Spectators[i].GetComponent<Animator>().Play(anim, -1, 0);
|
2022-03-17 19:13:48 +00:00
|
|
|
}
|
2022-03-15 00:54:54 +00:00
|
|
|
continue;
|
2022-03-17 19:13:48 +00:00
|
|
|
}
|
2022-06-04 03:15:56 +00:00
|
|
|
Spectators[i].GetComponent<Animator>().Play(anim, -1, 0);
|
2022-03-15 00:54:54 +00:00
|
|
|
}
|
2022-03-13 04:24:37 +00:00
|
|
|
}
|
2022-03-15 22:43:13 +00:00
|
|
|
|
|
|
|
private void BopAll(bool noPlayer = false, bool doForced = false)
|
|
|
|
{
|
|
|
|
for (int i = 0; i < Spectators.Count; i++)
|
|
|
|
{
|
|
|
|
if (i == 3 && noPlayer)
|
|
|
|
continue;
|
2024-01-07 23:45:25 +00:00
|
|
|
|
2022-03-17 19:13:48 +00:00
|
|
|
string clipName = Spectators[i].GetComponent<Animator>().GetCurrentAnimatorClipInfo(0)[0].clip.name;
|
2022-03-15 22:43:13 +00:00
|
|
|
if (!Spectators[i].GetComponent<Animator>().IsAnimationNotPlaying() && !doForced)
|
2022-03-17 19:13:48 +00:00
|
|
|
{
|
|
|
|
if (clipName == "FanBeat" || clipName == "NoPose")
|
|
|
|
Spectators[i].GetComponent<NtrIdolFan>().Bop();
|
2022-03-15 22:43:13 +00:00
|
|
|
continue;
|
2022-03-17 19:13:48 +00:00
|
|
|
}
|
2022-03-15 22:43:13 +00:00
|
|
|
Spectators[i].GetComponent<NtrIdolFan>().Bop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-17 19:13:48 +00:00
|
|
|
private void PlayPrepare()
|
|
|
|
{
|
|
|
|
for (int i = 0; i < Spectators.Count; i++)
|
|
|
|
{
|
|
|
|
if (Spectators[i].GetComponent<NtrIdolFan>().IsJumping())
|
|
|
|
continue;
|
2022-08-19 21:08:58 +00:00
|
|
|
Spectators[i].GetComponent<Animator>().Play("FanPrepare", -1, 0);
|
2022-03-17 19:13:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
private void PlayOneClap(double beat, int who = -1)
|
2022-03-15 22:43:13 +00:00
|
|
|
{
|
2024-01-07 23:45:25 +00:00
|
|
|
if (who != -1)
|
2022-03-15 22:43:13 +00:00
|
|
|
{
|
2023-05-21 17:35:00 +00:00
|
|
|
if (who == 3)
|
|
|
|
{
|
2024-01-19 04:52:38 +00:00
|
|
|
if (gameManager.autoplay)
|
2023-05-21 17:35:00 +00:00
|
|
|
{
|
|
|
|
Player.ClapStart(true, false, 0.1f);
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
// Jukebox.PlayOneShotGame("fanClub/play_clap", volume: 0.08f);
|
2023-06-10 19:13:29 +00:00
|
|
|
SoundByte.PlayOneShotGame("fanClub/crap_impact", pitch: UnityEngine.Random.Range(0.95f, 1.05f), volume: 0.1f);
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(Spectators[who].GetComponent<NtrIdolFan>(), new List<BeatAction.Action>()
|
2023-05-21 17:35:00 +00:00
|
|
|
{
|
|
|
|
new BeatAction.Action(beat, delegate { Spectators[who].GetComponent<Animator>().Play("FanClap", -1, 0); }),
|
|
|
|
new BeatAction.Action(beat + 0.1f, delegate { Spectators[who].GetComponent<Animator>().Play("FanFree", -1, 0); }),
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(this, new List<BeatAction.Action>()
|
2023-05-21 17:35:00 +00:00
|
|
|
{
|
|
|
|
new BeatAction.Action(beat, delegate { PlayAnimationAll("FanClap", true, true);}),
|
|
|
|
new BeatAction.Action(beat + 0.1f, delegate { PlayAnimationAll("FanFree", true, true);}),
|
|
|
|
});
|
|
|
|
}
|
2022-03-15 22:43:13 +00:00
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
private void PlayLongClap(double beat)
|
2022-03-15 22:43:13 +00:00
|
|
|
{
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(this, new List<BeatAction.Action>()
|
2022-03-15 22:43:13 +00:00
|
|
|
{
|
|
|
|
new BeatAction.Action(beat, delegate { PlayAnimationAll("FanClap", true, true);}),
|
2022-08-19 21:08:58 +00:00
|
|
|
new BeatAction.Action(beat + 1f, delegate { PlayAnimationAll("FanFree", true, true);}),
|
2022-03-15 22:43:13 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
private void PlayChargeClap(double beat)
|
2022-03-15 22:43:13 +00:00
|
|
|
{
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(this, new List<BeatAction.Action>()
|
2022-03-15 22:43:13 +00:00
|
|
|
{
|
|
|
|
new BeatAction.Action(beat, delegate { PlayAnimationAll("FanClap", true, true);}),
|
|
|
|
new BeatAction.Action(beat + 0.1f, delegate { PlayAnimationAll("FanClapCharge", true, true);}),
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
private void StartJump(int idx, double beat)
|
2022-03-15 22:43:13 +00:00
|
|
|
{
|
|
|
|
Spectators[idx].GetComponent<NtrIdolFan>().jumpStartTime = beat;
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(Spectators[idx].GetComponent<NtrIdolFan>(), new List<BeatAction.Action>()
|
2022-03-15 22:43:13 +00:00
|
|
|
{
|
|
|
|
new BeatAction.Action(beat, delegate { Spectators[idx].GetComponent<Animator>().Play("FanJump", -1, 0);}),
|
|
|
|
new BeatAction.Action(beat + 1f, delegate { Spectators[idx].GetComponent<Animator>().Play("FanPrepare", -1, 0);}),
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
private void PlayJump(double beat)
|
2022-03-15 22:43:13 +00:00
|
|
|
{
|
|
|
|
for (int i = 0; i < Spectators.Count; i++)
|
|
|
|
{
|
|
|
|
if (i == 3)
|
|
|
|
continue;
|
2024-01-07 23:45:25 +00:00
|
|
|
|
2022-03-15 22:43:13 +00:00
|
|
|
StartJump(i, beat);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public void AngerOnMiss()
|
|
|
|
{
|
|
|
|
for (int i = 0; i <= 5; i++)
|
|
|
|
{
|
|
|
|
if (i == 3)
|
|
|
|
continue;
|
|
|
|
Spectators[i].GetComponent<NtrIdolFan>().MakeAngry(i > 3);
|
|
|
|
}
|
|
|
|
}
|
2023-05-21 17:35:00 +00:00
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
public void DancerTravel(double beat, float length, bool exit, bool instant)
|
2023-05-21 17:35:00 +00:00
|
|
|
{
|
|
|
|
if (instant)
|
|
|
|
{
|
|
|
|
Blue.FinishEntrance(exit);
|
|
|
|
Orange.FinishEntrance(exit);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
Blue.StartEntrance(beat, length, exit);
|
|
|
|
Orange.StartEntrance(beat, length, exit);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
public void FinalCheer(double beat)
|
2023-05-21 17:35:00 +00:00
|
|
|
{
|
|
|
|
if (noJudgement) return;
|
|
|
|
noJudgement = true;
|
|
|
|
noJudgementInput = false;
|
|
|
|
|
|
|
|
// recreation of sub61
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(this, new List<BeatAction.Action>()
|
2023-05-21 17:35:00 +00:00
|
|
|
{
|
|
|
|
new BeatAction.Action(beat, delegate { StartClapLoop(beat, 1);}),
|
2024-01-07 23:45:25 +00:00
|
|
|
|
2023-05-21 17:35:00 +00:00
|
|
|
new BeatAction.Action(beat + (2f/3f), delegate { StartClapLoop(beat + (2f/3f), 0);}),
|
|
|
|
new BeatAction.Action(beat + (2f/3f), delegate { StartClapLoop(beat + (2f/3f), 3);}),
|
|
|
|
|
|
|
|
new BeatAction.Action(beat + (2f/3f) + 0.25f, delegate { StartClapLoop(beat + (2f/3f) + 0.25f, 6);}),
|
|
|
|
new BeatAction.Action(beat + (2f/3f) + 0.25f, delegate { StartClapLoop(beat + (2f/3f) + 0.25f, 8);}),
|
|
|
|
|
|
|
|
new BeatAction.Action(beat + (2f/3f) + 0.5f, delegate { StartClapLoop(beat + (2f/3f) + 0.5f, 7);}),
|
|
|
|
new BeatAction.Action(beat + (2f/3f) + 0.5f, delegate { StartClapLoop(beat + (2f/3f) + 0.5f, 4);}),
|
|
|
|
|
|
|
|
new BeatAction.Action(beat + 1.5f, delegate { StartClapLoop(beat + 1.5f, 2);}),
|
|
|
|
new BeatAction.Action(beat + 1.5f, delegate { StartClapLoop(beat + 1.5f, 11);}),
|
|
|
|
|
|
|
|
new BeatAction.Action(beat + 1.5f + (1f/3f), delegate { StartClapLoop(beat + 1.5f + (1f/3f), 5);}),
|
|
|
|
new BeatAction.Action(beat + 1.5f + (1f/3f), delegate { StartClapLoop(beat + 1.5f + (1f/3f), 10);}),
|
|
|
|
|
|
|
|
new BeatAction.Action(beat + 2f + (1f/3f), delegate { StartClapLoop(beat + 2f + (1f/3f), 9);}),
|
|
|
|
|
|
|
|
// 0x113
|
|
|
|
new BeatAction.Action(beat + 6f , delegate { CheckApplause();}),
|
|
|
|
});
|
|
|
|
|
|
|
|
MultiSound.Play(new MultiSound.Sound[] {
|
|
|
|
new MultiSound.Sound("fanClub/play_jump", beat, pitch: 1f, volume: 0.6f),
|
|
|
|
new MultiSound.Sound("fanClub/play_jump", beat + (2f/3f), pitch: 0.98f, volume: 0.5f),
|
|
|
|
new MultiSound.Sound("fanClub/play_jump", beat + (2f/3f) + 0.25f, pitch: UnityEngine.Random.Range(0.9f, 1.05f), volume: 0.6f),
|
|
|
|
new MultiSound.Sound("fanClub/play_jump", beat + (2f/3f) + 0.5f, pitch: UnityEngine.Random.Range(0.9f, 1.05f), volume: 0.6f),
|
|
|
|
new MultiSound.Sound("fanClub/play_jump", beat + 1.5f, pitch: UnityEngine.Random.Range(0.9f, 1.05f), volume: 0.6f),
|
|
|
|
new MultiSound.Sound("fanClub/play_jump", beat + 1.5f + (1f/3f), pitch: UnityEngine.Random.Range(0.9f, 1.05f), volume: 0.6f),
|
|
|
|
new MultiSound.Sound("fanClub/play_jump", beat + 2f + (1f/3f), pitch: UnityEngine.Random.Range(0.9f, 1.05f), volume: 0.6f),
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-10 19:13:29 +00:00
|
|
|
void StartClapLoop(double beat, int who)
|
2023-05-21 17:35:00 +00:00
|
|
|
{
|
2023-09-11 22:28:04 +00:00
|
|
|
BeatAction.New(Spectators[who].GetComponent<NtrIdolFan>(), new List<BeatAction.Action>()
|
2023-05-21 17:35:00 +00:00
|
|
|
{
|
|
|
|
new BeatAction.Action(beat, delegate { PlayOneClap(beat, who); }),
|
|
|
|
new BeatAction.Action(beat + 0.5f, delegate { StartClapLoop(beat + 0.5f, who); }),
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void CheckApplause()
|
|
|
|
{
|
|
|
|
if (!noJudgementInput)
|
|
|
|
{
|
|
|
|
AngerOnMiss();
|
|
|
|
// fuck you
|
|
|
|
FanClub.instance.ScoreMiss(69);
|
|
|
|
}
|
|
|
|
}
|
2022-03-13 04:24:37 +00:00
|
|
|
}
|
2023-10-24 00:22:53 +00:00
|
|
|
}
|