Added missed saber blocking check

might explain why some people find JKA a bit easy if it is auto-blocking in 1st person
This commit is contained in:
Simon 2023-04-02 19:41:50 +01:00
parent 8b23e255d8
commit d43de53e8a

View file

@ -7498,10 +7498,18 @@ void WP_SaberStartMissileBlockCheck( gentity_t *self, usercmd_t *ucmd )
return; return;
} }
if ( !g_saberAutoBlocking->integer && self->client->ps.saberBlockingTime<level.time ) if (cg_thirdPerson.integer) {
{ if (!self->s.number && !g_saberAutoBlocking->integer &&
self->client->ps.saberBlockingTime < level.time) {
return; return;
} }
} else // first person
{
if (!self->s.number && !g_saberAutoDeflect1stPerson->integer &&
self->client->ps.saberBlockingTime < level.time) {
return;
}
}
} }
if ( (self->client->ps.saber[0].saberFlags&SFL_NOT_ACTIVE_BLOCKING) ) if ( (self->client->ps.saber[0].saberFlags&SFL_NOT_ACTIVE_BLOCKING) )