mirror of
https://github.com/DrBeef/JKXR.git
synced 2025-02-07 15:51:07 +00:00
Allow wall running and some other moves while in first person
Hopefully this won't break anything!
This commit is contained in:
parent
11f6204ba5
commit
bb8c3bfa77
1 changed files with 1 additions and 1 deletions
|
@ -1487,7 +1487,7 @@ static qboolean PM_CheckJump( void )
|
||||||
//&& !PM_InKnockDown( pm->ps )//not in a knockdown
|
//&& !PM_InKnockDown( pm->ps )//not in a knockdown
|
||||||
&& pm->ps->forceRageRecoveryTime < pm->cmd.serverTime //not in a force Rage recovery period
|
&& 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->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 )
|
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
|
{//reborn who are not acrobats can't do any of these acrobatics
|
||||||
|
|
Loading…
Reference in a new issue