restore some stuff I had nuked; whoops. sorry wolfman.
This commit is contained in:
@@ -124,7 +124,7 @@ function pname(pn) return ToEnumShortString(pn); end;
|
|||||||
|
|
||||||
-- from http://ardoris.wordpress.com/2008/11/07/rounding-to-a-certain-number-of-decimal-places-in-lua/
|
-- from http://ardoris.wordpress.com/2008/11/07/rounding-to-a-certain-number-of-decimal-places-in-lua/
|
||||||
function round(what, precision)
|
function round(what, precision)
|
||||||
return math.floor(what*math.pow(10,precision)+0.5) / math.pow(10,precision)
|
return math.floor(what*math.pow(10,precision)+0.5) / math.pow(10,precision)
|
||||||
end
|
end
|
||||||
|
|
||||||
--[[ end helper functions ]]
|
--[[ end helper functions ]]
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user