Skip to content

Commit

Permalink
always allow kicks
Browse files Browse the repository at this point in the history
  • Loading branch information
TwelveEyes committed Jul 2, 2024
1 parent 63da281 commit f562dc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions code/game/bg_pmove.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11165,11 +11165,11 @@ qboolean PM_CheckAltKickAttack( void )
{
if ( (pm->cmd.buttons&BUTTON_ALT_ATTACK)
&& (!(pm->ps->pm_flags&PMF_ALT_ATTACK_HELD) ||PM_SaberInReturn(pm->ps->saberMove))
&& (!PM_FlippingAnim(pm->ps->legsAnim)/* ||pm->ps->legsAnimTimer<=250 */)
&& (!PM_FlippingAnim(pm->ps->legsAnim)||pm->ps->legsAnimTimer<=250)
&& (!PM_SaberThrowable()||(pm->cmd.buttons&BUTTON_WALKING))
// && pm->ps->SaberActive()
&& !(pm->ps->saber[0].saberFlags&SFL_NO_KICKS)//okay to do kicks with this saber
&& (!pm->ps->dualSabers || !(pm->ps->saber[1].saberFlags&SFL_NO_KICKS) )//okay to do kicks with this saber
// && !(pm->ps->saber[0].saberFlags&SFL_NO_KICKS)//okay to do kicks with this saber
// && (!pm->ps->dualSabers || !(pm->ps->saber[1].saberFlags&SFL_NO_KICKS) )//okay to do kicks with this saber
)
{
return qtrue;
Expand Down
6 changes: 3 additions & 3 deletions codemp/game/bg_saber.c
Original file line number Diff line number Diff line change
Expand Up @@ -2690,7 +2690,7 @@ qboolean PM_CanDoKata( void )

qboolean PM_CheckAltKickAttack( void )
{
if ( pm->ps->weapon == WP_SABER )
/* if ( pm->ps->weapon == WP_SABER )
{
saberInfo_t *saber = BG_MySaber( pm->ps->clientNum, 0 );
if ( saber
Expand All @@ -2704,10 +2704,10 @@ qboolean PM_CheckAltKickAttack( void )
{
return qfalse;
}
}
} */
if ( (pm->cmd.buttons&BUTTON_ALT_ATTACK)
//&& (!(pm->ps->pm_flags&PMF_ALT_ATTACK_HELD)||PM_SaberInReturn(pm->ps->saberMove))
&& (!BG_FlippingAnim(pm->ps->legsAnim)/* ||pm->ps->legsTimer<=250 */)
&& (!BG_FlippingAnim(pm->ps->legsAnim)||pm->ps->legsTimer<=250)
// && (pm->ps->fd.saberAnimLevel == SS_STAFF/*||!pm->ps->saber[0].throwable*/) && !pm->ps->saberHolstered
)
{
Expand Down

0 comments on commit f562dc6

Please sign in to comment.