From 0d8d4a2ad72e474df01744966a4ee7f8b904d690 Mon Sep 17 00:00:00 2001 From: Xaser Acheron Date: Wed, 12 Jan 2022 23:27:36 -0600 Subject: [PATCH] fix mbf21 A_FindTracer fov cone being twice as big as intended --- wadsrc/static/zscript/actors/mbf21.zs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/actors/mbf21.zs b/wadsrc/static/zscript/actors/mbf21.zs index ec5f7e4aa..a010f0e2c 100644 --- a/wadsrc/static/zscript/actors/mbf21.zs +++ b/wadsrc/static/zscript/actors/mbf21.zs @@ -198,7 +198,9 @@ extend class Actor // void A_FindTracer(double fov, int dist) { - if (!tracer) tracer = RoughMonsterSearch(dist, fov: fov); + // note: mbf21 fov is the angle of the entire cone, while + // zdoom fov is defined as 1/2 of the cone, so halve it. + if (!tracer) tracer = RoughMonsterSearch(dist, fov: fov/2); } //