Fix staff saber top blade not actually blocking shots

This commit is contained in:
Simon 2023-04-19 23:51:56 +01:00
parent abedc8d96c
commit 34bb30d714

View file

@ -8106,7 +8106,17 @@ void WP_SaberUpdate( gentity_t *self, usercmd_t *ucmd )
}
}
saberent->contents = CONTENTS_LIGHTSABER;
G_SetOrigin( saberent, saberOrg );
if (self->client->ps.clientNum == 0 &&
self->client->ps.saber[0].numBlades > 1)
{
vec3_t angles;
BG_CalculateVRSaberPosition(0, saberOrg, angles);
G_SetOrigin(saberent, saberOrg);
}
else
{
G_SetOrigin(saberent, saberOrg);
}
}
}
/*