restore some stuff I had nuked; whoops. sorry wolfman.

This commit is contained in:
AJ Kelly
2010-02-17 20:48:30 -06:00
parent 435ca51b43
commit f9bfc80fa9
2 changed files with 134 additions and 16 deletions
@@ -168,3 +168,120 @@ function ComboMaintain()
}; };
return Maintain[sGame] return Maintain[sGame]
end; end;
function ComboPerRow()
sGame = GAMESTATE:GetCurrentGame():GetName();
if sGame == "pump" then
return true;
elseif GAMESTATE:GetPlayMode() == "PlayMode_Oni" then
return true;
else return false;
end;
end;
function HitCombo()
sGame = GAMESTATE:GetCurrentGame():GetName();
local Combo = {
dance = 2,
pump = 4,
beat = 2,
kb7 = 2,
para = 2,
};
return Combo[sGame]
end;
function MissCombo()
sGame = GAMESTATE:GetCurrentGame():GetName();
local Combo = {
dance = 2,
pump = 4,
beat = 0,
kb7 = 0,
para = 0,
};
return Combo[sGame]
end;
function FailCombo() -- The combo that causes game failure.
sGame = GAMESTATE:GetCurrentGame():GetName();
local Combo = {
dance = 30, -- ITG/Pump Pro does it this way.
pump = 51,
beat = -1,
kb7 = -1,
para = -1,
};
return Combo[sGame]
end;
-- todo: use tables for some of these -aj
function HoldTiming()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then
return 0;
else return PREFSMAN:GetPreference("TimingWindowSecondsHold");
end;
end;
function HoldJudgmentFail()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then
return cmd();
else return cmd(finishtweening;shadowlength,0;diffusealpha,1;zoom,1;y,-10;linear,0.8;y,10;sleep,0.5;linear,0.1;zoomy,0.5;zoomx,2;diffusealpha,0);
end;
end;
function HoldJudgmentPass()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then
return cmd();
else return cmd(finishtweening;shadowlength,0;diffusealpha,1;zoom,1.25;linear,0.3;zoomx,1;zoomy,1;sleep,0.5;linear,0.1;zoomy,0.5;zoomx,2;diffusealpha,0);
end;
end;
function HoldHeadStep()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then
return false;
else return true;
end;
end;
function InitialHoldLife()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then
return 0.05;
else return 1;
end;
end;
function MaxHoldLife()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then
return 0.05;
else return 1;
end;
end;
function ImmediateHoldLetGo()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then
return false;
else return true;
end;
end;
function RollBodyIncrementsCombo()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then
return false;
else return true;
end;
end;
function CheckpointsTapsSeparateJudgment()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then
return false;
else return true;
end;
end;
function ScoreMissedHoldsAndRolls()
if GAMESTATE:GetCurrentGame():GetName() == "pump" then
return false;
else return true;
end;
end;
+15 -14
View File
@@ -167,7 +167,8 @@ MeterWidth=0.0
MeterHeight=0.0 MeterHeight=0.0
[Combo] [Combo]
ShowComboAt=2 ShowComboAt=HitCombo()
ShowMissesAt=MissCombo()
NumberMinZoom=0.8 NumberMinZoom=0.8
NumberMaxZoom=1 NumberMaxZoom=1
@@ -179,8 +180,8 @@ LabelOnCommand=x,6;y,22;shadowlength,1;horizalign,left;vertalign,bottom
[HoldJudgment] [HoldJudgment]
# !!! # # !!! #
HoldJudgmentLetGoCommand=shadowlength,0;diffusealpha,1;zoom,1;y,-10;linear,0.8;y,10;sleep,0.5;linear,0.1;zoomy,0.5;zoomx,2;diffusealpha,0 HoldJudgmentLetGoCommand=HoldJudgmentFail()
HoldJudgmentHeldCommand=shadowlength,0;diffusealpha,1;zoom,1.25;linear,0.3;zoomx,1;zoomy,1;sleep,0.5;linear,0.1;zoomy,0.5;zoomx,2;diffusealpha,0 HoldJudgmentHeldCommand=HoldJudgmentPass()
[HelpDisplay] [HelpDisplay]
TipShowTime=4 TipShowTime=4
@@ -274,7 +275,7 @@ BannerResetFadeCommand=diffusealpha,1
[Gameplay] [Gameplay]
# todo: make some of these play nice with other gametypes # todo: make some of these play nice with other gametypes
ComboIsPerRow=GAMESTATE:GetPlayMode() == "PlayMode_Oni" ComboIsPerRow=ComboPerRow()
MinScoreToContinueCombo=ComboContinue() MinScoreToContinueCombo=ComboContinue()
MinScoreToMaintainCombo=ComboMaintain() MinScoreToMaintainCombo=ComboMaintain()
ToastyTriggersAt=250 ToastyTriggersAt=250
@@ -720,16 +721,16 @@ TapJudgmentsUnderField=false
HoldJudgmentsUnderField=false HoldJudgmentsUnderField=false
ComboUnderField=true ComboUnderField=true
PenalizeTapScoreNone=false PenalizeTapScoreNone=false
JudgeHoldNotesOnSameRowTogether=false JudgeHoldNotesOnSameRowTogether=(GAMESTATE:GetCurrentGame():GetName() == "pump")
HoldCheckpoints=(GAMESTATE:GetCurrentGame():GetName() == "pump") HoldCheckpoints=(GAMESTATE:GetCurrentGame():GetName() == "pump")
ImmediateHoldLetGo=(GAMESTATE:GetCurrentGame():GetName() == "pump") and false or true ImmediateHoldLetGo=ImmediateHoldLetGo()
RequireStepOnHoldHeads=(GAMESTATE:GetCurrentGame():GetName() == "pump") and false or true RequireStepOnHoldHeads=HoldHeadStep()
CheckpointsUseTimeSignatures=false CheckpointsUseTimeSignatures=(GAMESTATE:GetCurrentGame():GetName() == "pump")
InitialHoldLife=1 InitialHoldLife=InitialHoldLife()
MaxHoldLife=1 MaxHoldLife=MaxHoldLife()
RollBodyIncrementsCombo=true RollBodyIncrementsCombo=RollBodyIncrementsCombo()
CheckpointsTapsSeparateJudgment=true CheckpointsTapsSeparateJudgment=CheckpointsTapsSeparateJudgment()
ScoreMissedHoldsAndRolls=(GAMESTATE:GetCurrentGame():GetName() == "pump") and false or true ScoreMissedHoldsAndRolls=ScoreMissedHoldsAndRolls()
[Profile] [Profile]
ShowCoinData=true ShowCoinData=true
@@ -2546,7 +2547,7 @@ PlayerInitCommand=y,SCREEN_CENTER_Y;zoom,(THEME:GetMetric("Common","ScreenHeight
StartGivesUp=true StartGivesUp=true
BackGivesUp=false BackGivesUp=false
# #
FailOnMissCombo=-1 FailOnMissCombo=FailCombo()
GivingUpGoesToPrevScreen=false GivingUpGoesToPrevScreen=false
GivingUpGoesToNextScreen=false GivingUpGoesToNextScreen=false
# #