From 884bbab2473cbab2309dc2c913abafdb9cd27cde Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Wed, 13 Jun 2018 12:18:02 +0200 Subject: [PATCH] Fix autoaim behavior on pulsegun beams. --- zscript/pulsegun.zsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zscript/pulsegun.zsc b/zscript/pulsegun.zsc index e1c7879..e3002cc 100644 --- a/zscript/pulsegun.zsc +++ b/zscript/pulsegun.zsc @@ -542,7 +542,7 @@ Class StarterBolt : PulseBolt A_SetPitch(target.BulletSlope()); frame++; if ( frame > 4 ) frame = 0; - CheckBeam(x); + CheckBeam((cos(angle)*cos(pitch),sin(angle)*cos(pitch),-sin(pitch))); } }