diff --git a/Sources/epoch_server/init/server_init.sqf b/Sources/epoch_server/init/server_init.sqf index f20a0df5..a3c5bd04 100644 --- a/Sources/epoch_server/init/server_init.sqf +++ b/Sources/epoch_server/init/server_init.sqf @@ -52,9 +52,9 @@ if (isNil "_instanceID") exitWith{ "Epoch: InstanceID missing!" call _abortAndError; }; -_activeAddons = activatedAddons; -EPOCH_modCUPWeaponsEnabled = "caweapons" in _activeAddons; -EPOCH_modCUPVehiclesEnabled = "cawheeled" in _activeAddons; +EPOCH_modCUPWeaponsEnabled = (getNumber (configFile >> "CfgPatches" >> "CUP_WheeledVehicles_Core" >> "requiredVersion") > 0); +EPOCH_modCUPVehiclesEnabled = (getNumber (configFile >> "CfgPatches" >> "CUP_Weapons_WeaponsCore" >> "requiredVersion") > 0); + if (EPOCH_modCUPWeaponsEnabled) then { diag_log "Epoch: CUP Weapons detected"; };