Fix Fail Bug?
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.3 KiB |
@@ -69,8 +69,8 @@ LetGoCommand=blend,'BlendMode_Add';
|
||||
HeldCommand=blend,'BlendMode_Add';diffuse,1.0,1.0,0.3,0.875;zoom,1;linear,0.06;zoom,1.1;linear,0.06;diffusealpha,0
|
||||
|
||||
[HoldGhostArrow]
|
||||
HoldingOnCommand=visible,true
|
||||
HoldingOffCommand=visible,false
|
||||
HoldingOnCommand=blend,'BlendMode_Add';pulse;effectmagnitude,1,1.125,1;effectperiod,0.05;effectclock,'beatnooffset';visible,true
|
||||
HoldingOffCommand=blend,'BlendMode_Add';stopeffect;visible,false
|
||||
|
||||
[ReceptorArrow]
|
||||
W3Command=stoptweening;zoom,0.85;linear,0.12;zoom,1
|
||||
|
||||
@@ -17,22 +17,32 @@ function SetFail()
|
||||
local sFail = "";
|
||||
|
||||
if GetGamePref("DefaultFail") then
|
||||
sFail = string.format("fail%s", string.lower( GetGamePref("DefaultFail") ));
|
||||
sFail = string.format("Fail%s", GetGamePref("DefaultFail"));
|
||||
else
|
||||
sFail = "failoff";
|
||||
sFail = "FailOff";
|
||||
end
|
||||
|
||||
sFail = sFail .. ",failimmediate,suddendeath";
|
||||
SCREENMAN:SystemMessage( 'NEW FAIL IS: ' .. tostring(sFail) );
|
||||
|
||||
GAMESTATE:SetSongOptions( "ModsLevel_Song", sFail );
|
||||
sFail = tostring(sFail);
|
||||
-- SCREENMAN:SystemMessage( 'NEW FAIL IS: ' .. tostring(sFail) );
|
||||
|
||||
for pn in ivalues(GAMESTATE:GetHumanPlayers()) do
|
||||
-- GAMESTATE:ApplyGameCommand( "stagemod,FailImmediateContinue", pn );
|
||||
-- GAMESTATE:GetPlayerState(pn):SetPlayerOptions( "ModsLevel_Song", 'mod,FailImmediateContinue' );
|
||||
MESSAGEMAN:Broadcast( "PlayerOptionsChanged", {PlayerNumber = pn} );
|
||||
end
|
||||
|
||||
-- GAMESTATE:SetSongOptions( "ModsLevel_Preferred", 'mod,FailImmediateContinue' );
|
||||
-- GAMESTATE:SetSongOptions( "ModsLevel_Stage", 'mod,FailImmediateContinue' );
|
||||
-- GAMESTATE:SetSongOptions( "ModsLevel_Song",'mod,FailImmediateContinue' );
|
||||
GAMESTATE:ApplyGameCommand( "mod," .. sFail);
|
||||
-- GAMESTATE:ApplyGameCommand( "stagemod,FailImmediateContinue");
|
||||
MESSAGEMAN:Broadcast( "SongOptionsChanged" );
|
||||
end
|
||||
|
||||
function ScreenSelectMusic:setupmusicstagemods()
|
||||
Trace( "setupmusicstagemods" )
|
||||
local pm = GAMESTATE:GetPlayMode()
|
||||
|
||||
|
||||
if pm == "PlayMode_Battle" or pm == "PlayMode_Rave" then
|
||||
local so = GAMESTATE:GetDefaultSongOptions();
|
||||
GAMESTATE:SetSongOptions( "ModsLevel_Stage", so );
|
||||
@@ -55,8 +65,6 @@ function ScreenSelectMusic:setupmusicstagemods()
|
||||
so = THEME:GetMetric("SongManager","ExtraStageStageModifiers");
|
||||
end
|
||||
|
||||
so = so .. "," .. sFail;
|
||||
|
||||
local difficulty = steps:GetDifficulty()
|
||||
local Reverse = PlayerNumber:Reverse()
|
||||
|
||||
|
||||
@@ -2085,7 +2085,7 @@ ForceTimer=true
|
||||
TimerMetricsGroup="MenuTimerNoSound"
|
||||
TimerSeconds=5
|
||||
#
|
||||
# ScreenOnCommand=%SetFail()
|
||||
ScreenBeginCommand=%SetFail
|
||||
#
|
||||
[ScreenOptions]
|
||||
Fallback="ScreenWithMenuElements"
|
||||
|
||||
Reference in New Issue
Block a user