Page MenuHomeFeedback Tracker

Mi-8 wreck object has no base script to mod it.
Assigned, UrgentPublic

Description

There's no Wreck_Mi8 base class in DayZ scripts.pbo. So, there's no mod compatibility when two mods want to do something with Mi-8 crash sites, they both have to declare a new 'class Wreck_Mi8', because there's nothing to inherit from and to override in vanilla scripts, and the mods become incompatible with each other.

Details

Severity
Trivial
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General
Steps To Reproduce

Create 2 mods with

class Wreck_Mi8 extends House
{
    override void OnDelete()
    {
        // do something
    }
}

Start the server.
Get "Multiple declaration of class Wreck_Mi8" compilation error.

Additional Information

I was going to use heli crash sites to create PvP zones around them in my mod PVEZ.
Wreck_UH1Y exists in scripts in 4_World, so I just create 'modded class Wreck_UH1Y' and do my stuff.
For Mi-8 crash sites I had to create new 'class Wreck_Mi8'. Was working fine, but there's another mod that also does the same trick with Wreck_Mi8 (CFDZPlugin mod), so server owners who use both PVEZ and CFDZPlugin got the "Multiple declaration of class Wreck_Mi8" error, so I had to remove my zones from Mi-8 wrecks.

Would be nice to have a Wreck_Mi8 class already declared in DayZ base scripts. It could be just an empty placeholder:

class Wreck_Mi8 extends House
{ }

so mods could extend it and stay compatible with each other.

Event Timeline

Ermiq created this task.Feb 17 2021, 4:54 PM
Ermiq edited Steps To Reproduce. (Show Details)
Ermiq edited Additional Information. (Show Details)
Geez changed the task status from New to Assigned.Feb 18 2021, 4:18 PM