auQuiksilver / Apex-Framework

Apex Framework
MIT License
81 stars 46 forks source link

Groups cannot be locked even when allowed in parameters #30

Open thegamecracks opened 1 year ago

thegamecracks commented 1 year ago

Despite _groupLocking being set to 1 in parameters.sqf, player groups are being forcibly unlocked by the mission. This seems to be caused by a misinterpretation of QS_missionConfig_groupLocking, which was set to a boolean by parameters.sqf:

https://github.com/auQuiksilver/Apex-Framework/blob/a5b109f7215909548b885f131b6011b5b61a4133/%40Apex_cfg/parameters.sqf#L227

...but then compared to an integer in fn_clientCore.sqf, always returning false:

https://github.com/auQuiksilver/Apex-Framework/blob/a5b109f7215909548b885f131b6011b5b61a4133/Apex_framework.terrain/code/functions/fn_clientCore.sqf#L475

auQuiksilver commented 1 year ago

Great find!