gerard-sog / arma3-macvsog-columbia-scripts

Arma3 MACV-SOG Columbia - Scripts & Settings
https://discord.gg/dyeUNXHFqS
MIT License
4 stars 3 forks source link

Proof of concept - Battery simulation using on/off status of radio #170

Closed TDeakin1013 closed 3 weeks ago

TDeakin1013 commented 4 weeks ago

Proof of concept - Battery simulation using on/off status of radio. Can be used to better enforce comms windows and add another interesting angle to the RTO and Covey role.

gerard-sog commented 4 weeks ago

_isOn = ["ACRE_PRC77_ID_1", "getOnOffState"] call acre_sys_data_fnc_dataEvent; hint str _isOn;

can be used to determine when radio is ON or OFF.

20240820231626_1 20240820231604_1 20240820231608_1

gerard-sog commented 3 weeks ago

working on in : https://github.com/gerard-sog/arma3-macvsog-columbia-scripts/pull/174

gerard-sog commented 3 weeks ago

VERSION 1:

gerard-sog commented 3 weeks ago

Comment from @Kayoshu :

only one important is that you saved battery_remaining + id in missionNameSpace, I'd better go for saving it on the radio object itself (without id): if acre is like tfar, id can change when a player drop radio, and another one equips it, also I'm sure id will change if a player disconnect/reconnect this is a better test https://github.com/gerard-sog/arma3-macvsog-columbia-scripts/blob/battery-management/functions/battery/fn_updateBatteryLevel.sqf#L16 than https://github.com/gerard-sog/arma3-macvsog-columbia-scripts/blob/battery-management/functions/triangulate/fn_triangulate.sqf#L24