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

Attach - Improve IR Strobe blinking pattern and increase lifetime #8283

Merged
merged 3 commits into from
Jun 21, 2021

Conversation

mharis001
Copy link
Member

When merged this pull request will:

@mharis001 mharis001 added kind/enhancement Release Notes: **IMPROVED:** target/next-arma Requires something in arma dev branch labels Jun 18, 2021
@mharis001 mharis001 added this to the 3.14.0 milestone Jun 18, 2021
@mharis001 mharis001 requested a review from BaerMitUmlaut June 18, 2021 02:42
Co-authored-by: commy2 <commy-2@gmx.de>
@PabstMirror
Copy link
Contributor

Adding different strobes with custom patterns would be neat for IFF
also synchronized https://www.youtube.com/watch?v=bR_z-6m7g1Q
but I'm not sure how

@mharis001
Copy link
Member Author

We could provide a couple variants with different patterns. Simplest solution would be to add additional strobe items for each of the patterns but could also allow the user to select the pattern using actions. Not sure how to handle synchronized strobes or how feasible that is.

@BrettMayson
Copy link
Member

If we delete all the strobes that are wanted to be synchronized and recreate them all at once, would that do the trick?

@BaerMitUmlaut
Copy link
Member

Just attach local copies.

@TheCandianVendingMachine
Copy link
Contributor

TheCandianVendingMachine commented Jun 19, 2021

What about avoiding creating the strobe until CBA_missionTime % sync_time_start == 0?

@BaerMitUmlaut BaerMitUmlaut changed the title Improve IR Strobe blinking pattern and increase lifetime Attach - Improve IR Strobe blinking pattern and increase lifetime Jun 19, 2021
addons/attach/CfgVehicles.hpp Outdated Show resolved Hide resolved
addons/attach/CfgVehicles.hpp Outdated Show resolved Hide resolved
maxLifetime = 8 * 60 * 60;
blinkingPattern[] = {0.1, 0.9}; // 0.1 s on, 0.9 s off
blinkingStartsOn = 1;
blinkingPatternGuarantee = 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This property doesn't seem to work currently, you get no blinking at all if you use an on time less than a frame's duration (@dedmen?). But it doesn't hurt adding it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dunno, should be same as for that other blinking thing :D

@BaerMitUmlaut
Copy link
Member

We can do additional features like synched blinking later, I would prefer to get this merged for the next release. Unless @mharis001 is already working on that?

Co-authored-by: BaerMitUmlaut <BaerMitUmlaut@users.noreply.github.com>
@mharis001
Copy link
Member Author

I briefly experimented with adding strobes with different patterns but that can be done later. Let's get this merged for the next release.

@PabstMirror
Copy link
Contributor

Safe to merge now, but blinking won't take effect til 2.06?

@mharis001
Copy link
Member Author

Yes safe to merge now. These config entries will not be used until 2.06.

@PabstMirror PabstMirror merged commit cc0d242 into acemod:master Jun 21, 2021
@mharis001 mharis001 deleted the ir-strobe-improvements branch June 21, 2021 04:40
PabstMirror pushed a commit that referenced this pull request Jul 22, 2021
)

* Improve IR Strobe blinking pattern and increase lifetime

* Improve readability of maxLifetime entry

Co-authored-by: commy2 <commy-2@gmx.de>

* Apply suggestions from code review

Co-authored-by: BaerMitUmlaut <BaerMitUmlaut@users.noreply.github.com>

Co-authored-by: commy2 <commy-2@gmx.de>
Co-authored-by: BaerMitUmlaut <BaerMitUmlaut@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Release Notes: **IMPROVED:** target/next-arma Requires something in arma dev branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IR Strobe detaches after time interval
7 participants