IR Strobe detaches after time interval
Arma 3 Version: 1.66 (stable)
CBA Version: 3.1.2 (stable)
ACE3 Version: 3.9.0 (stable)
Mods:
@CBA_A3@ace
Description: The time seems to be around 10 minutes. Bux said it might be the lifeTime of the strobe. But it still continues blinking after it detaches. I sure sounds to me like the batteries of the strobe ran out and it should stop blinking. But it continues blinking for atleast 5 minutes.
After it detaches
player getVariable ["ace_attach_attached",true]
returns [[<NULL-object>,"B_IR_Grenade"]]
Steps to reproduce:
- Attach vanilla Nato IR strobe
- Go afk for 10-20 minutes
- Move a few steps away and the IR strobe will be floating in the air behind you
Where did the issue occur?
- Dedicated
player getVariable ["ace_attach_attached",true]
returns [[<NULL-object>,"B_IR_Grenade"]]
After about 5 minutes.same thing happens even if you are not afk!
Working on fix. Have made it disappear on self attach. But it will get removed after 5 minutes. Working on same bug for vehicles.
Should it get removed or just refreshed?
#5233
Hm, one would need to research how long an IR grenade's battery life is
Just a quick look around Google and I can't find a ir grenade. But a small strobe like http://www.eod-gear.com/eod-ir-strobe-light/ Is one AA battery and with max setting it will blink for 4h and 30 minutes. But the grenade is bigger that this thing so say about 8h?
Agreed. As it's probably unlikely that a mission lasts 8h IR grenades probably should just get refreshed. Opinions?
What about just tweaking the timeToLive config?
yeah if we say refresh i say we just change the config.
I found this one that is closer to what is in game and has a battery life of up to 250hrs. https://tnvc.com/shop/guardian-dual-function-infrared-beacon/
Tried to set the B_IRStrobe to this below:
class CfgAmmo {
class IRStrobeBase;
class B_IRStrobe: IRStrobeBase {
timeToLive = 1e10;
};
};
The grenade still disappears and the B_IR_grenade dosent have a timetoLive (never had) and This config changes the values so it works. But dosent fix the issue.
Will fix the PR so it will refresh instead of destroy.
Will make it refresh instead!
IR strobe has hardcoded time limit of 30 minutes in the engine. Which overrides whatever you set for timeToLive. To be exact not IR strobes in general but the "nvmarker" simulation
If they have such along battery life, you should be able to detach them and reuse them later.
Please mark as BI's fault, for the engine hardcoded lifetime. I'll see what I can do about that.
Or is the detaching/lifetime a seperate issue? it turns into nullObj so I'd say it was completely a engine thing? But 30 minutes hardcoded engine limit on the light will still be bad anyway, even if we fix the detach.
fat_lurch has somehow gotten his to last 5 hours. MS_IFF_Strobe
Well yeah. All you need is to keep a tracker running attaching a new one whenever the old one is swallowed by the engine.
Or dedmen fixes it in the game code instead.
Close?
Close once I managed to fix it, then recheck whether we need to do anything else.
Was a fix ever applied to the game engine or to ACE to stop this?