forked from teamnwah/openmw-tes3coop
Enum renaming
This commit is contained in:
parent
91e95e1404
commit
dfe912dcab
2 changed files with 17 additions and 22 deletions
|
@ -576,10 +576,10 @@ void CharacterController::update(float duration, Movement &movement)
|
|||
mAnimation->play(weapgroup, Priority_Weapon,
|
||||
MWRender::Animation::Group_UpperBody, false,
|
||||
weapSpeed, mAttackType+" start", mAttackType+" min attack", 0.0f, 0);
|
||||
mUpperBodyState = UpperCharState_ChopStartToMinAttack;
|
||||
mUpperBodyState = UpperCharState_StartToMinAttack;
|
||||
}
|
||||
}
|
||||
else if(mUpperBodyState == UpperCharState_ChopMinAttackToMaxAttack)
|
||||
else if(mUpperBodyState == UpperCharState_MinAttackToMaxAttack)
|
||||
{
|
||||
if(animPlaying)
|
||||
{
|
||||
|
@ -594,38 +594,38 @@ void CharacterController::update(float duration, Movement &movement)
|
|||
MWRender::Animation::Group_UpperBody, false,
|
||||
weapSpeed, mAttackType+" max attack", mAttackType+" min hit", 0, 0);
|
||||
}
|
||||
mUpperBodyState = UpperCharState_ChopMaxAttackToMinHit;
|
||||
mUpperBodyState = UpperCharState_MaxAttackToMinHit;
|
||||
}
|
||||
|
||||
if(mUpperBodyState == UpperCharState_EquipingWeap && !animPlaying) mUpperBodyState = UpperCharState_WeapEquiped;
|
||||
if(mUpperBodyState == UpperCharState_UnEquipingWeap && !animPlaying) mUpperBodyState = UpperCharState_Nothing;
|
||||
if(animPlaying)
|
||||
{
|
||||
if(mUpperBodyState == UpperCharState_ChopStartToMinAttack && complete == 1)
|
||||
if(mUpperBodyState == UpperCharState_StartToMinAttack && complete == 1)
|
||||
{
|
||||
mAnimation->disable(weapgroup);
|
||||
mAnimation->play(weapgroup, Priority_Weapon,
|
||||
MWRender::Animation::Group_UpperBody, false,
|
||||
weapSpeed, mAttackType+" min attack", mAttackType+" max attack",0, 0);
|
||||
mUpperBodyState = UpperCharState_ChopMinAttackToMaxAttack;
|
||||
mUpperBodyState = UpperCharState_MinAttackToMaxAttack;
|
||||
}
|
||||
else if(mUpperBodyState == UpperCharState_ChopMaxAttackToMinHit && complete == 1)
|
||||
else if(mUpperBodyState == UpperCharState_MaxAttackToMinHit && complete == 1)
|
||||
{
|
||||
mAnimation->disable(weapgroup);
|
||||
mAnimation->play(weapgroup, Priority_Weapon,
|
||||
MWRender::Animation::Group_UpperBody, false,
|
||||
weapSpeed, mAttackType+" min hit", mAttackType+" hit",0, 0);
|
||||
mUpperBodyState = UpperCharState_ChopMinHitToHit;
|
||||
mUpperBodyState = UpperCharState_MinHitToHit;
|
||||
}
|
||||
else if(mUpperBodyState == UpperCharState_ChopMinHitToHit && complete == 1)
|
||||
else if(mUpperBodyState == UpperCharState_MinHitToHit && complete == 1)
|
||||
{
|
||||
mAnimation->disable(weapgroup);
|
||||
mAnimation->play(weapgroup, Priority_Weapon,
|
||||
MWRender::Animation::Group_UpperBody, false,
|
||||
weapSpeed, mAttackType+" large follow start", mAttackType+" large follow stop",0, 0);
|
||||
mUpperBodyState = UpperCharState_ChopLargeFollowStartToLargeFollowStop;
|
||||
mUpperBodyState = UpperCharState_LargeFollowStartToLargeFollowStop;
|
||||
}
|
||||
else if(mUpperBodyState == UpperCharState_ChopLargeFollowStartToLargeFollowStop && complete == 1)
|
||||
else if(mUpperBodyState == UpperCharState_LargeFollowStartToLargeFollowStop && complete == 1)
|
||||
{
|
||||
mUpperBodyState = UpperCharState_WeapEquiped;
|
||||
}
|
||||
|
|
|
@ -100,18 +100,13 @@ enum UpperBodyCharacterState {
|
|||
UpperCharState_EquipingWeap,
|
||||
UpperCharState_UnEquipingWeap,
|
||||
UpperCharState_WeapEquiped,
|
||||
UpperCharState_Slashing,
|
||||
UpperCharState_ChopStartToMinAttack,
|
||||
UpperCharState_ChopMinAttackToMaxAttack,
|
||||
UpperCharState_ChopMaxAttackToMinHit,
|
||||
UpperCharState_ChopMinHitToHit,
|
||||
UpperCharState_ChopLargeFollowStartToLargeFollowStop,
|
||||
UpperCharState_ChopMediumFollowStartToMediumFollowStop,
|
||||
UpperCharState_ChopSmallFollowStartToSmallFollowStop,
|
||||
//UpperCharState_ChopReadyingMouseHold, //when you keep your mouse clicked to ready your weapon
|
||||
//UpperCharState_ChopReadyWaiting, //when your weapon is ready and you keep mouse hold
|
||||
UpperCharState_Choping,
|
||||
UpperCharState_Thrusting,
|
||||
UpperCharState_StartToMinAttack,
|
||||
UpperCharState_MinAttackToMaxAttack,
|
||||
UpperCharState_MaxAttackToMinHit,
|
||||
UpperCharState_MinHitToHit,
|
||||
UpperCharState_LargeFollowStartToLargeFollowStop,
|
||||
UpperCharState_MediumFollowStartToMediumFollowStop,
|
||||
UpperCharState_SmallFollowStartToSmallFollowStop,
|
||||
UpperCharState_EquipingSpell,
|
||||
UpperCharState_UnEquipingSpell
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue