From c269a58b2857b18e74201f64472700921e13cc73 Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Sun, 29 Sep 2019 12:39:20 +0200 Subject: [PATCH] Beta 3 Hotfix 1: - Corrected an oopsie in the Minigun's fire offset code (used viewheight instead of viewz, which is... bad). --- zscript/uminigun.zsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zscript/uminigun.zsc b/zscript/uminigun.zsc index 79f6fab..aad2c8f 100644 --- a/zscript/uminigun.zsc +++ b/zscript/uminigun.zsc @@ -59,7 +59,7 @@ Class UMinigun : UnrealWeapon if ( !alt ) MinigunLight(l).cnt--; Vector3 x, y, z, x2, y2, z2; [x, y, z] = dt_CoordUtil.GetAxes(pitch,angle,roll); - Vector3 origin = level.Vec3Offset(Vec2OffsetZ(0,0,player.viewheight),10*x+y*3-z*3); + Vector3 origin = level.Vec3Offset(Vec2OffsetZ(0,0,player.viewz),10*x+y*3-z*3); double a = FRandom[Minigun](0,360), s = FRandom[Minigun](0,alt?0.05:0.02); [x2, y2, z2] = dt_CoordUtil.GetAxes(BulletSlope(),angle,roll); Vector3 dir = (x2+y2*cos(a)*s+z2*sin(a)*s).unit();