Initial upload. Not currently functional as a mod. Includes some slightly refactored source code as well as the original mission this was debuted in zipped up as reference + example of usage.

This commit is contained in:
Clarky committed 2026-08-08 17:42:15 +10:00
commit 75b737230e
32 files changed
+2049

No files matched your search

+62
View File
@@ -0,0 +1,62 @@
// Handler for running the VehicleLoaded function
[
"CLF_VehicleLoaded",
{
params ["_vehicle", "_player", "_depot"];
[_vehicle, _player, _depot] call CLF_fnc_vehicleLoad;
}
] call CBA_fnc_addEventHandler;
// Handler for running the VehicleUnloaded function
[
"CLF_VehicleUnloaded",
{
params ["_vehicle", "_player", "_depot"];
[_vehicle, _player, _depot] call CLF_fnc_vehicleUnload;
}
] call CBA_fnc_addEventHandler;
// Handler for confirming factory vehicle construction on the server
[
"CLF_ConfirmFactoryBuildServer",
{
params ["_hq", "_player", "_vehicleClass", "_vehiclePreviewLocation", "_rotation", "_vectorUp", "_cost", "_buildTime", "_specialisation", "_specialisationData"];
[_hq, _player, _vehicleClass, _vehiclePreviewLocation, _rotation, _vectorUp, _cost, _buildTime, _specialisation, _specialisationData] spawn CLF_fnc_factoryBuildConfirmServer;
}
] call CBA_fnc_addEventHandler;
// Handler for cancelling factory vehicle construction on the server
[
"CLF_CancelFactoryBuildServer",
{
params ["_hq", "_vehicle", "_cost", "_player"];
[_hq, _vehicle, _cost, _player ] call CLF_fnc_cancelFactoryBuildServer;
}
] call CBA_fnc_addEventHandler;
// Handler for running the function which consumes materiel at ab ase
[
"CLF_MaterielConsume",
{
params ["_hq", "_amount", "_player"];
[_hq, _amount, _player] call CLF_fnc_materielConsume;
}
] call CBA_fnc_addEventHandler;
// Handler for adding materiel back to a base
[
"CLF_MaterielAdd",
{
params ["_hq", "_amount", "_player"];
[_hq, _amount, _player ] call CLF_fnc_materielAdd;
}
] call CBA_fnc_addEventHandler;
// Handler for adding fortify budget
[
"CLF_FortifyBudgetAdd",
{
params ["_side", "_amount"];
[_side, _amount, true] call ace_fortify_fnc_updateBudget;
}
] call CBA_fnc_addEventHandler;