Allow wall running and some other moves while in first person

Hopefully this won't break anything!
This commit is contained in:
Simon 2023-11-19 09:28:12 +00:00
parent 11f6204ba5
commit bb8c3bfa77

View file

@ -1487,7 +1487,7 @@ static qboolean PM_CheckJump( void )
//&& !PM_InKnockDown( pm->ps )//not in a knockdown
&& pm->ps->forceRageRecoveryTime < pm->cmd.serverTime //not in a force Rage recovery period
&& pm->gent && WP_ForcePowerAvailable( pm->gent, FP_LEVITATION, 0 ) //have enough force power to jump
&& ((pm->ps->clientNum&&!PM_ControlledByPlayer())||((pm->ps->clientNum < MAX_CLIENTS||PM_ControlledByPlayer()) && cg.renderingThirdPerson && !cg.zoomMode && !(pm->gent->flags&FL_LOCK_PLAYER_WEAPONS) )) )// yes this locked weapons check also includes force powers, if we need a separate check later I'll make one
&& ((pm->ps->clientNum&&!PM_ControlledByPlayer())||((pm->ps->clientNum < MAX_CLIENTS||PM_ControlledByPlayer()) /*&& cg.renderingThirdPerson*/ && !cg.zoomMode && !(pm->gent->flags & FL_LOCK_PLAYER_WEAPONS))))// yes this locked weapons check also includes force powers, if we need a separate check later I'll make one
{
if ( pm->gent->NPC && pm->gent->NPC->rank != RANK_CREWMAN && pm->gent->NPC->rank <= RANK_LT_JG )
{//reborn who are not acrobats can't do any of these acrobatics