Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explosives - Add Tripwire Flare Air Variant #10423

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

Mike-MF
Copy link
Member

@Mike-MF Mike-MF commented Oct 15, 2024

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}.

@PabstMirror
Copy link
Contributor

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

@Mike-MF
Copy link
Member Author

Mike-MF commented Oct 16, 2024

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.

@Drofseh
Copy link
Contributor

Drofseh commented Oct 16, 2024

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.

@Mike-MF Mike-MF changed the title Explosives - Add air mode to tripflares Explosives - Add Tripwire Flare Air Variant Oct 16, 2024
@johnb432
Copy link
Contributor

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?

@Mike-MF
Copy link
Member Author

Mike-MF commented Oct 19, 2024

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.

@Drofseh
Copy link
Contributor

Drofseh commented Oct 19, 2024

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

@Mike-MF
Copy link
Member Author

Mike-MF commented Oct 19, 2024

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.

@rautamiekka
Copy link
Contributor

a feature virtually nobody uses.

"Famous last words", as they say.

@PabstMirror PabstMirror self-assigned this Oct 20, 2024
@PabstMirror
Copy link
Contributor

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

@Drofseh
Copy link
Contributor

Drofseh commented Oct 20, 2024

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.

@tuntematonjr
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants