Add nITG's new Move modifiers (#1411)
* Implemented NITG's MoveX/Y/Z modifiers Added modifiers: MoveX1-n: Moves a column in the x direction, 100% = move left one arrow size. MoveY1-n: Moves a column in the y direction MoveZ1-n: Moves a column in the z direction.
This commit is contained in:
@@ -675,6 +675,33 @@ float ArrowEffects::ReceptorGetRotationY( const PlayerState* pPlayerState )
|
||||
return fRotation;
|
||||
}
|
||||
|
||||
float ArrowEffects::GetMoveX(int iCol)
|
||||
{
|
||||
const float* fMoves = curr_options->m_fMovesX;
|
||||
float f = 0;
|
||||
if( fMoves[iCol] != 0 )
|
||||
f += ARROW_SIZE * fMoves[iCol];
|
||||
return f;
|
||||
}
|
||||
|
||||
float ArrowEffects::GetMoveY(int iCol)
|
||||
{
|
||||
const float* fMoves = curr_options->m_fMovesY;
|
||||
float f = 0;
|
||||
if( fMoves[iCol] != 0 )
|
||||
f += ARROW_SIZE * fMoves[iCol];
|
||||
return f;
|
||||
}
|
||||
|
||||
float ArrowEffects::GetMoveZ(int iCol)
|
||||
{
|
||||
const float* fMoves = curr_options->m_fMovesZ;
|
||||
float f = 0;
|
||||
if( fMoves[iCol] != 0 )
|
||||
f += ARROW_SIZE * fMoves[iCol];
|
||||
return f;
|
||||
}
|
||||
|
||||
#define CENTER_LINE_Y 160 // from fYOffset == 0
|
||||
#define FADE_DIST_Y 40
|
||||
|
||||
|
||||
Reference in New Issue
Block a user