mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-24 13:01:36 +00:00
Fix staff saber top blade not actually blocking shots
This commit is contained in:
parent
abedc8d96c
commit
34bb30d714
1 changed files with 11 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue