|
|
|
@ -544,6 +544,7 @@ void Player::SetVelocity(vf2d vel){ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Player::SetAnimationBasedOnTargetingDirection(float targetDirection){ |
|
|
|
|
if(GetClass()==Class::RANGER){ |
|
|
|
|
if(targetDirection<=PI/4&&targetDirection>-PI/4){ |
|
|
|
|
UpdateAnimation(AnimationState::RANGER_SHOOT_E); |
|
|
|
|
} else
|
|
|
|
@ -556,4 +557,5 @@ void Player::SetAnimationBasedOnTargetingDirection(float targetDirection){ |
|
|
|
|
if(targetDirection>=-3*PI/4&&targetDirection<-PI/4){ |
|
|
|
|
UpdateAnimation(AnimationState::RANGER_SHOOT_N); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |