Page MenuHomeFeedback Tracker

Feature Request - Add CfgAmmo property `explodeParentWhenTriggered` to compliment `deleteParentWhenTriggered`
Feedback, NormalPublic

Description

Ticket created at the request of @dedmen

I'm looking into making artillery/mortar shells that airburst using submunitions for the fragments/shrapnel and the triggerDistance param to have them deploy a little before the round reaches the ground.

There's another parameter, deleteParentWhenTriggered that can be 0 or 1.

When set to 1 the parent is silently deleted, without any visuals or sound, when the submunitions deploy. If set to 0 the parent continues on to explode on the ground.

Both of these options look very weird with airbursting mortar shells.

I'd love it if there was an option like explodeParentWhenTriggered to have the parent shell detonate in the air when the submunitions deploy. This would allow a more realistic effect, as seen this this screenshot, compared to how it looks in my testing video.

Would this be possible to have this added?

https://i.gyazo.com/7ef4a6dbf509f846ea460c2c62ec4c3f.png

https://youtu.be/vuo1Z3CIDhc?feature=shared&t=55

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 11 x64
Category
Feature Request
Steps To Reproduce
  1. Create the ammo and magazine and give them to the weapon. Be sure to use deleteParentWhenTriggered = 0; in the ammo.
class CfgAmmo {
    class Sh_82mm_AMOS;

    class Sh_82mm_AMOS_Airburst : Sh_82mm_AMOS {
        deleteParentWhenTriggered = 0;
        triggerDistance = 50;
        submunitionDirectionType = "SubmunitionModelDirection";
        submunitionInitSpeed = 1200;
        submunitionParentSpeedCoef = 1;
        submunitionAmmo[] = {
            "B_9x21_Ball",0.4,
            "B_45ACP_Ball",0.8
        };
        submunitionConeType[] = {"poissondisc", 150};
        submunitionConeAngle = 359;
        CraterEffects="";
    };
};

class CfgMagazines {
    class 8Rnd_82mm_Mo_shells;

    class 8Rnd_82mm_Mo_shells_Airburst: 8Rnd_82mm_Mo_shells {
        displayName = "82mm HE Airburst Round";
        displayNameShort = "";
        descriptionShort = "Used in Mk6 Mortar";
        ammo = "Sh_82mm_AMOS_Airburst";
    };
};


class CfgWeapons {
    class CannonCore;

    class mortar_82mm : CannonCore {
        magazines[]= {
            "8Rnd_82mm_Mo_shells",
            "8Rnd_82mm_Mo_shells_Airburst",
            "8Rnd_82mm_Mo_Flare_white",
            "8Rnd_82mm_Mo_Smoke_white",
            "8Rnd_82mm_Mo_guided",
            "8Rnd_82mm_Mo_LG"
        };
    };
};
  1. Fire the weapon, observe that after submunition deplotment the parent projectile continues on to impact the ground.
  1. Change the ammo to use deleteParentWhenTriggered = 1;
  1. Fire the weapon, observe the parent projectile disappearing in the air with no audio/visual effects.

Event Timeline

Drofseh created this task.Wed, Mar 26, 2:47 AM
TRAGER added a subscriber: TRAGER.Wed, Mar 26, 11:47 AM
dedmen changed the task status from New to Feedback.Thu, Mar 27, 10:40 AM

"deleteParentWhenTriggered" has a default value of true
"explodeParentWhenTriggered" has a default value of false

If both are enabled, delete will take priority. So to use this, you need to turn off delete.

152755, 2.20 update and probably profiling v27. I also tested it (Thanks for providing the config).