ACE3 icon indicating copy to clipboard operation
ACE3 copied to clipboard

Zeus artillery doesn't spawn shrapnels

Open gienkov opened this issue 11 years ago • 14 comments

ACE3 Version: 3.0.0

Mods:

  • @cba_a3
  • @ace3
  • @acre2

Placed ACE3 Modules:

  • None

Description: Spawning artillery strikes through Zeus will not cause explosions to spawn shrapnels Check out this video I made: https://youtu.be/aZpzg3qwk10

Steps to reproduce:

  • Call in Zeus artillery strike of any kind
  • Round explode but not shrapnels

Where did the issue occur? "Multiplayer"

RPT log file: Nothing worth looking into inside it.

gienkov avatar Apr 18 '15 16:04 gienkov

can't find the mortars in the configs so I guess it hasn't been worked on yet.

alganthe avatar Apr 18 '15 16:04 alganthe

That might be a limitation on how the projectiles are fired with zeus. They aren't actually fired (and therefore trigger the approriate fired eventhandler), but the projectiles are spawned via createVehicle. Don't think we can do anything about it, unless we rewrite zeus.

commy2 avatar Apr 18 '15 17:04 commy2

"unless we rewrite zeus." oh yes go forth and fix the broken PITA that zeus is. (i'll become your waifu if something so magic happens)

alganthe avatar Apr 18 '15 17:04 alganthe

I think zeus has more lines of code than ACE has though. (All the ui scripting hurts my brain)

commy2 avatar Apr 18 '15 17:04 commy2

You would have to overwrite the module (ModuleOrdnance_F) function (BIS_fnc_moduleProjectile) with your own one

As an aside, the zeus UI framework is actually really nicely designed even if entirely undocumented :stuck_out_tongue_closed_eyes: Was just complimenting Moricky on it the other week

kymckay avatar Apr 18 '15 17:04 kymckay

Sure.

After: deletd

commy2 avatar Apr 18 '15 17:04 commy2

Duplicates #342

jaynus avatar Apr 18 '15 21:04 jaynus

No @jaynus, its not a duplicate! Frag requires the config entries, but also that the ammo shells have an attached PFH. That's the difficult thing to do on Zeus spawned rounds.

nicolasbadano avatar Apr 18 '15 21:04 nicolasbadano

I'm not sure my work-around is relyable in MP. createVehicle is really shitty with CfgAmmo. I suspect that the round isn't created on remote machines when execRemoteFnc executes and therefore the projetile will be an null-object. Maybe also depends on the simulation class of the projeticle. Haven't looked to much into that.

commy2 avatar Apr 18 '15 22:04 commy2

createVehicle works fine with ammo, its the only way to spawn ammo. You don't need to remotely execute the frag function either, just use the ace_frag_fnc_addManualTrack function on the projectile. As long as the projectile is local to where you called it all is fine and the frag system handles the rest.

NouberNou avatar Apr 20 '15 06:04 NouberNou

Didn't know that.

_projectile = createvehicle [_ammo,_posAmmo,[],0,"none"]; [player, "", "", "", _ammo, "", _projectile] call ace_frag_fnc_fired;

Might solve the issue then. No idea how to overwrite BIS_fnc_moduleProjectile though.

commy2 avatar Apr 20 '15 06:04 commy2

I will take a look @commy2 We are already doing that for one module function anyway.

thojkooi avatar Apr 20 '15 07:04 thojkooi

You can no longer overwrite BIS functions with the latest version of arma. However you can just edit the module (ModuleOrdnance_F) in cfgVehicles to use your own function.

I had to do this for my own addon work recently.

kymckay avatar Apr 20 '15 17:04 kymckay

This is done in #784

thojkooi avatar Apr 20 '15 21:04 thojkooi