sing animation note parameter.
This commit is contained in:
Lasercar 2025-03-10 10:56:12 +10:00
parent edb270d15e
commit 27321ab073
2 changed files with 16 additions and 2 deletions
source/funkin
play/character
ui/debug/charting/util

View file

@ -515,16 +515,29 @@ class BaseCharacter extends Bopper
// If another script cancelled the event, don't do anything.
if (event.eventCanceled) return;
var playSingAnimation = true;
if (event.note.params?.length > 0)
{
for (param in event.note.params)
{
if (param.name == "playSingAnimation" && param.value != null)
{
playSingAnimation = cast(param.value, Bool);
break;
}
}
}
if (event.note.noteData.getMustHitNote() && characterType == BF)
{
// If the note is from the same strumline, play the sing animation.
this.playSingAnimation(event.note.noteData.getDirection(), false);
if (playSingAnimation) this.playSingAnimation(event.note.noteData.getDirection(), false);
holdTimer = 0;
}
else if (!event.note.noteData.getMustHitNote() && characterType == DAD)
{
// If the note is from the same strumline, play the sing animation.
this.playSingAnimation(event.note.noteData.getDirection(), false);
if (playSingAnimation) this.playSingAnimation(event.note.noteData.getDirection(), false);
holdTimer = 0;
}
else if (characterType == GF && event.note.noteData.getMustHitNote())

View file

@ -158,6 +158,7 @@ class ChartEditorDropdowns
// Base
"" => "Default",
"~CUSTOM~" => "Custom",
// It'd be great if the rest of these were scripted notes instead!
// Weeks 1-7
"mom" => "Mom Sings (Week 5)",
"ugh" => "Ugh (Week 7)",