diff --git a/code/cgame/cg_ents.c b/code/cgame/cg_ents.c index 356196e8..90cd1ae0 100644 --- a/code/cgame/cg_ents.c +++ b/code/cgame/cg_ents.c @@ -352,6 +352,7 @@ static void CG_Item( centity_t *cent ) { #ifdef MISSIONPACK if ( item->giType == IT_WEAPON && wi && wi->barrelModel ) { refEntity_t barrel; + vec3_t angles; memset( &barrel, 0, sizeof( barrel ) ); @@ -361,9 +362,13 @@ static void CG_Item( centity_t *cent ) { barrel.shadowPlane = ent.shadowPlane; barrel.renderfx = ent.renderfx; + angles[YAW] = 0; + angles[PITCH] = 0; + angles[ROLL] = 0; + AnglesToAxis( angles, barrel.axis ); + CG_PositionRotatedEntityOnTag( &barrel, &ent, wi->weaponModel, "tag_barrel" ); - AxisCopy( ent.axis, barrel.axis ); barrel.nonNormalizedAxes = ent.nonNormalizedAxes; trap_R_AddRefEntityToScene( &barrel );