Skip to content

Commit

Permalink
fix parry bonus
Browse files Browse the repository at this point in the history
  • Loading branch information
TwelveEyes committed Jul 2, 2024
1 parent 3c856a5 commit 81d3b6f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code/game/wp_saber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5195,7 +5195,7 @@ void WP_SaberDamageTrace( gentity_t *ent, int saberNum, int bladeNum )
entPowerLevel++;
}
//FIXME: what about second saber if dualSabers?
entPowerLevel += ent->client->ps.saber[saberNum].parryBonus;
entPowerLevel += ent->client->ps.SaberParryBonus();
}

if ( PM_SaberInAttack( hitOwner->client->ps.saberMove ) || PM_SaberInSpecialAttack( hitOwner->client->ps.torsoAnim ) )
Expand Down Expand Up @@ -5240,11 +5240,11 @@ void WP_SaberDamageTrace( gentity_t *ent, int saberNum, int bladeNum )
{
hitOwnerPowerLevel++;
}
hitOwnerPowerLevel += hitOwner->client->ps.saber[0].parryBonus;
if ( hitOwner->client->ps.dualSabers && Q_irand( 0, 1 ) )
hitOwnerPowerLevel += hitOwner->client->ps.SaberParryBonus();
/* if ( hitOwner->client->ps.dualSabers && Q_irand( 0, 1 ) )
{//FIXME: assumes both sabers are defending at same time...?
hitOwnerPowerLevel += 1 + hitOwner->client->ps.saber[1].parryBonus;
}
hitOwnerPowerLevel += 1 + hitOwner->client->ps.SaberParryBonus();
} */
}

if ( PM_SuperBreakLoseAnim( ent->client->ps.torsoAnim )
Expand Down

0 comments on commit 81d3b6f

Please sign in to comment.