Add attack run time metric for Player.
This commit is contained in:
@@ -20,6 +20,7 @@ sm-ssc v1.2.1 | 2011011?
|
||||
[Wolfman2000]
|
||||
* [Player] Allow Combo Stopped message to be flexible via metrics. The
|
||||
default is 50, as it was before. [Wolfman2000]
|
||||
* [Player] Allow the default attack time to be changed. [Wolfman2000]
|
||||
|
||||
20110112
|
||||
--------
|
||||
|
||||
@@ -939,6 +939,7 @@ RollBodyIncrementsCombo=GetGamePrefB("UserPrefComboOnRolls")
|
||||
ScoreMissedHoldsAndRolls=ScoreMissedHoldsAndRolls()
|
||||
PercentUntilColorCombo=0.25
|
||||
ComboStoppedAt=50
|
||||
AttackRunTimeDefault=6
|
||||
|
||||
[PlayerShared]
|
||||
Fallback="Player"
|
||||
|
||||
+2
-2
@@ -139,6 +139,7 @@ ThemeMetric<bool> CHECKPOINTS_TAPS_SEPARATE_JUDGMENT ( "Player", "CheckpointsTap
|
||||
ThemeMetric<bool> SCORE_MISSED_HOLDS_AND_ROLLS ( "Player", "ScoreMissedHoldsAndRolls" ); // sm-ssc addition
|
||||
ThemeMetric<float> PERCENT_UNTIL_COLOR_COMBO ( "Player", "PercentUntilColorCombo" );
|
||||
ThemeMetric<int> COMBO_STOPPED_AT ( "Player", "ComboStoppedAt" );
|
||||
ThemeMetric<float> ATTACK_RUN_TIME_DEFAULT ( "Player", "AttackRunTimeDefault" );
|
||||
|
||||
float Player::GetWindowSeconds( TimingWindow tw )
|
||||
{
|
||||
@@ -642,8 +643,7 @@ void Player::Update( float fDeltaTime )
|
||||
{
|
||||
float fCurrentGameTime = STATSMAN->m_CurStageStats.m_fGameplaySeconds;
|
||||
|
||||
// Should we hardcode this, or make it a preference/theme metric? ~ Mike
|
||||
const float fAttackRunTime = 6.0f;
|
||||
const float fAttackRunTime = ATTACK_RUN_TIME_DEFAULT;
|
||||
|
||||
// Don't start until 1 seconds into game, minimum
|
||||
if( fCurrentGameTime > 1.0f )
|
||||
|
||||
Reference in New Issue
Block a user