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,9 +7498,17 @@ void WP_SaberStartMissileBlockCheck( gentity_t *self, usercmd_t *ucmd )
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;
}
} else // first person
{
return;
if (!self->s.number && !g_saberAutoDeflect1stPerson->integer &&
self->client->ps.saberBlockingTime < level.time) {
return;
}
}
}