From 45cf6c5d7d8db3e49d107ded83e9893be51ada0f Mon Sep 17 00:00:00 2001 From: rlv003 <61962081+rlv003@users.noreply.github.com> Date: Wed, 28 Feb 2024 03:23:53 -0900 Subject: [PATCH] Fixed mi8 heli crash zone not being created --- 4_world/entities/building/wrecks/wreck_mi8.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/4_world/entities/building/wrecks/wreck_mi8.c b/4_world/entities/building/wrecks/wreck_mi8.c index a46a9d9..329ef2b 100644 --- a/4_world/entities/building/wrecks/wreck_mi8.c +++ b/4_world/entities/building/wrecks/wreck_mi8.c @@ -1,17 +1,11 @@ -/* - This modded Mi8 wreck class declaration causes conflicts with the CFDZPlugin mod, so it is disabled. - There is a task opened at https://feedback.bistudio.com/T156813 regarding this issue in February 2021. No solution from Bohemia so far. -*/ - -/* -class Wreck_Mi8 extends House { +modded class Wreck_Mi8_Crashed { protected autoptr PVEZ_Zone pvez_Zone; - void Wreck_Mi8() { + void Wreck_Mi8_Crashed() { GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(CreatePVEZZone, 500, false, this); } - + override void EEDelete(EntityAI parent) { // Remove zone if PVEZ zones manager is still alive if (g_Game && g_Game.pvez_Zones) { @@ -30,5 +24,4 @@ class Wreck_Mi8 extends House { g_Game.pvez_Config.HELICRASH_ZONES.ShowBorderOnMap, g_Game.pvez_Config.HELICRASH_ZONES.ShowNameOnMap); } -} -*/ \ No newline at end of file +} \ No newline at end of file