moistbois / Moist-Liberation-APR

Fork of KP Liberation, tailored for a small server. Focused on a more realistic experience while still being enjoyable.
Other
5 stars 1 forks source link

Populate FFE spotter list in Init.sqf via enemy preset case. #2

Closed carlmylo closed 8 months ago

carlmylo commented 1 year ago

Current State:

Every campaign needs to have:

If this isn't done, FFE simply doesn't function.

Suggested change:

Ideally we would check the enemy preset case defined in KPLIB_preset_opfor and then pull from the arrays in KPLIB_o_militiaInfantry, KPLIB_o_militiaVehicles, KPLIB_o_armyVehicles, KPLIB_o_armyVehiclesLight, KPLIB_o_battleGrpVehicles, KPLIB_o_battleGrpVehiclesLight, KPLIB_o_troopTransports, KPLIB_o_helicopters. On top of this, we should also use the listed classes near the beginning of the file, which are:

Do note that the preset directories for the cases are defined differently now. Arsenals are in fn_initArsenal.sqf. Enemies are still defined in init_presets.sqf

We can perhaps look at the recent SAM site implementation located in SAM_turret_manager.sqf and fn_getOpforSpawnPointSAM.sqf.

This pulls from preset files, like this example in custom.sqf.

In doing this, we could automate FFE implementation and make it more compatible.

Challenges:

carlmylo commented 8 months ago

We are now moving to having init.sqf per mission making this unnecessary.