From 1304577dacccc7302fe5e4120171082904f05432 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 15 Apr 2023 10:53:57 +0200 Subject: [PATCH] - Duke: do not call DukeActor's OnInitialize function for projectiles. This is performing some incompatible setup. --- wadsrc/static/zscript/games/duke/actors/projectiles.zs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wadsrc/static/zscript/games/duke/actors/projectiles.zs b/wadsrc/static/zscript/games/duke/actors/projectiles.zs index ef67fda1d..f50c50e60 100644 --- a/wadsrc/static/zscript/games/duke/actors/projectiles.zs +++ b/wadsrc/static/zscript/games/duke/actors/projectiles.zs @@ -43,6 +43,10 @@ class DukeProjectile : DukeActor property SpawnSound: SpawnSound; + override void Initialize() + { + // do not call the parent's function here. + } // this large batch of subsequently called virtuals is owed to the spaghetti-like implementation of the orignal moveprojectiles function. virtual bool premoveeffect()