ACE3 icon indicating copy to clipboard operation
ACE3 copied to clipboard

Explosives - Add Tripwire Flare Air Variant

Open Mike-MF opened this issue 1 year ago • 11 comments

When merged this pull request will:

  • Adds a new tripflare item that fires into the sky instead of on the ground.
  • Adds setting for the tripflare colour (default is Red, which i think is what the original one did. Not sure, colourblind.)
  • Kept the old tripflare class for BWC, just no longer used here.

IMPORTANT

  • If the contribution affects the documentation, please include your changes in this pull request so the documentation will appear on the website.
  • Development Guidelines are read, understood and applied.
  • Title of this PR uses our standard template Component - Add|Fix|Improve|Change|Make|Remove {changes}.

Mike-MF avatar Oct 15 '24 17:10 Mike-MF

I'd prefer to just add a 2nd magazine instead of a setting

PabstMirror avatar Oct 16 '24 00:10 PabstMirror

I'd prefer to just add a 2nd magazine instead of a setting

That'd mean duplicated code as the effect only passes the position, so no way of detecting what kind of flare would have been activated. The setting is just the simpler solution here.

Mike-MF avatar Oct 16 '24 11:10 Mike-MF

By having a setting and changing it to air mode, all mission that have been previous made with ground flares now have air flares. I don't think that's desirable As a mission maker I might like to be able to give players a mix of ground and air flares, or places a mix in a defended area in the editor.

I don't see a lot of duplicate code being added to implement that. A couple of additions to CfgCloudlets.hpp and something like TripflareAirEffect.sqf that adds a little height to the initial Z position when calling the spawnFlare function.

Drofseh avatar Oct 16 '24 17:10 Drofseh

I'm not a huge fan of having the color be a setting. Is there no way we can have it passed as an argument or set as a config entry?

johnb432 avatar Oct 19 '24 10:10 johnb432

I'm not a huge fan of having the color be a setting. Is there no way we can have it passed as an argument or set as a config entry?

If we do this via config entry it'd mean I'd have to make 3 classes for it which I didn't want to do to begin with. I decided to put it into ACE for simplicity instead of having it in-house via the event.

Mike-MF avatar Oct 19 '24 16:10 Mike-MF

Classes for colours makes sense to me as well, just like the hand flares have a class for each colour

Drofseh avatar Oct 19 '24 22:10 Drofseh

I still don't have a way of knowing anything other than the position, and I'm not going to make 3 separate functions just to fire a different flare colour on a feature virtually nobody uses.

Mike-MF avatar Oct 19 '24 23:10 Mike-MF

a feature virtually nobody uses.

"Famous last words", as they say.

rautamiekka avatar Oct 19 '24 23:10 rautamiekka

I can take a look; pretty sure we can swap from the weird effect script thing to the explosion eh

PabstMirror avatar Oct 20 '24 00:10 PabstMirror

a feature virtually nobody uses.

"Famous last words", as they say.

I'm already thinking of having different colour flares for different lines of defence.

Drofseh avatar Oct 20 '24 00:10 Drofseh

We have inhouse mod that has 4 colors of air and ground trip flares. I could port it to ace, if that is wanted

tuntematonjr avatar Oct 20 '24 11:10 tuntematonjr