-
Notifications
You must be signed in to change notification settings - Fork 4
AI Logistics - Vehicles with route pickets #803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
06fcbfc
a9ceeb0
b06ae5a
9a07550
b7bf54d
cf64f03
06fd0fa
d6723e6
434c6b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| u\uksf\addons\ailogistics |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| // class Cfg3DEN { | ||
| // class Object { | ||
| // class AttributeCategories { | ||
| // class uksf_attributes { | ||
| // class Attributes { | ||
| // class GVAR(excluded) { | ||
| // property = QGVAR(excluded); | ||
| // control = "Checkbox"; | ||
| // displayName = QUOTE(Cleanup exclude); | ||
| // tooltip = QUOTE(Excludes object from cleanup); | ||
| // expression = QUOTE(_this setVariable [ARR_3(QQGVAR(excluded),_value,true)]); | ||
| // typeName = "BOOL"; | ||
| // defaultValue = "(false)"; | ||
| // condition = "1"; | ||
| // }; | ||
| // }; | ||
| // }; | ||
| // }; | ||
| // }; | ||
| // }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # AI Logistics | ||
|
|
||
| An AI system for emulating logistics |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #include "script_component.hpp" | ||
|
|
||
| if (!isServer) exitWith {}; | ||
|
|
||
| if (GVAR(groundVehiclePool) isEqualTo [] && {GVAR(airVehiclePool) isEqualTo [] && {GVAR(counterBatteryUnits) isEqualTo []}}) exitWith { | ||
| WARNING("No counter units defined"); | ||
| }; | ||
|
|
||
| ["UK3CB_BAF_Static_Mortar_Base", "Fired", {call FUNC(selectResponse)}, true, [], true] call CBA_fnc_addClassEventHandler; | ||
|
Comment on lines
+3
to
+9
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove unused code here |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #include "script_component.hpp" | ||
|
|
||
| ADDON = false; | ||
|
|
||
| #include "XEH_PREP.hpp" | ||
|
|
||
| // #include "initSettings.sqf" | ||
|
|
||
| GVAR(unitPoolString) = []; | ||
| GVAR(logisticVehiclePoolString) = []; | ||
| GVAR(routePickets) = false; | ||
| GVAR(picketLocations) = []; | ||
| GVAR(picketUnitPoolString) = []; | ||
| GVAR(picketGroupSize) = 0; | ||
| GVAR(logisticsObject) = ObjNull; | ||
| GVAR(logisticalVehicleNumber) = 0; | ||
|
Comment on lines
+9
to
+16
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If these variables are not used, remove them. Looks like everything is done via the module variables? |
||
|
|
||
| ADDON = true; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| // [ | ||
| // QGVAR(enabled), | ||
| // "CHECKBOX", | ||
| // ["Cleanup", "Enables cleanup of dead units/vehicles"], | ||
| // ["UKSF", QUOTE(COMPONENT_BEAUTIFIED)], | ||
| // false, | ||
| // 1, | ||
| // { | ||
| // params ["_value"]; | ||
|
|
||
| // if (isServer && _value) then { | ||
| // [{call FUNC(cleanupCheck)}, [], 0] call CBA_fnc_waitAndExecute; | ||
| // }; | ||
| // } | ||
| // ] call CBA_settings_fnc_init; | ||
|
|
||
| // [ | ||
| // QGVAR(delay), | ||
| // "SLIDER", | ||
| // ["Cleanup Delay", "Delay in seconds between death and cleanup"], | ||
| // ["UKSF", QUOTE(COMPONENT_BEAUTIFIED)], | ||
| // [5, 600, 300, 0], | ||
| // 1 | ||
| // ] call CBA_settings_fnc_init; |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why has this changed? This is designed to delete the vehicle given to the unit at spawn, to cover cases where the unit is no longer inside the vehicle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I first looked at it, I didn't remember assigning the vehicle with a setVar so thought it would return nothing. I've reverted it back.