mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 14:41:42 +00:00
Patch by Zack Middleton (#4920)
This commit is contained in:
parent
34e0a6c6f6
commit
b1f861b8da
1 changed files with 7 additions and 2 deletions
|
@ -982,6 +982,7 @@ static void CG_LightningBolt( centity_t *cent, vec3_t origin ) {
|
|||
refEntity_t beam;
|
||||
vec3_t forward;
|
||||
vec3_t muzzlePoint, endPoint;
|
||||
int anim;
|
||||
|
||||
if (cent->currentState.weapon != WP_LIGHTNING) {
|
||||
return;
|
||||
|
@ -1021,8 +1022,12 @@ static void CG_LightningBolt( centity_t *cent, vec3_t origin ) {
|
|||
VectorCopy(cent->lerpOrigin, muzzlePoint );
|
||||
}
|
||||
|
||||
// FIXME: crouch
|
||||
muzzlePoint[2] += DEFAULT_VIEWHEIGHT;
|
||||
anim = cent->currentState.legsAnim & ~ANIM_TOGGLEBIT;
|
||||
if ( anim == LEGS_WALKCR || anim == LEGS_IDLECR ) {
|
||||
muzzlePoint[2] += CROUCH_VIEWHEIGHT;
|
||||
} else {
|
||||
muzzlePoint[2] += DEFAULT_VIEWHEIGHT;
|
||||
}
|
||||
|
||||
VectorMA( muzzlePoint, 14, forward, muzzlePoint );
|
||||
|
||||
|
|
Loading…
Reference in a new issue