Skip to content

Commit

Permalink
add external list for vehicle (repair, repaint, refuel)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbox1911 committed Jan 13, 2025
1 parent b227c85 commit ccc3344
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
16 changes: 14 additions & 2 deletions core.liberation/scripts/shared/classnames.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,25 @@ vehicle_rearm_sources = [

// Everything the AI vehicle should be able to repair from
vehicle_repair_sources = [
repair_offroad,
repair_sling_typename,
repair_truck_typename,
"B_APC_Tracked_01_CRV_F",
"C_Offroad_01_repair_F",
"B_G_Offroad_01_repair_F",
"Land_RepairDepot_01_civ_F"
];
] + vehicle_repair_sources_west;

// Everything the player can use as a Repair box
vehicle_repair_box = [
repairbox_typename
] + vehicle_repair_box_west;

// Everything the AI vehicle should be able to repaint from
vehicle_repaint_sources = [
repair_offroad,
"Land_RepairDepot_01_civ_F"
] + vehicle_repaint_sources_west;

// Everything the AI vehicle should be able to refuel from
vehicle_refuel_sources = [
Expand All @@ -406,7 +418,7 @@ vehicle_refuel_sources = [
opfor_fuel_container,
"Land_fs_feed_F",
"C_Van_01_fuel_F"
];
] + vehicle_refuel_sources_west;

// *** TRANSPORT CONFIG ***
box_transport_config = [];
Expand Down
10 changes: 7 additions & 3 deletions core.liberation/scripts/shared/default_classnames.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,13 @@ uavs_terminal_typename = "B_UavTerminal";
uavs_def = ["UAV_01_base_F","UAV_02_base_F","UAV_03_base_F","UAV_04_base_F","UAV_05_Base_F","UAV_06_base_F","UGV_01_base_F"];
uavs_west = [];
boats_west = [];
ai_resupply_sources = [];
ai_healing_sources = [];
vehicle_rearm_sources = [];
ai_healing_sources_west = [];
ai_resupply_sources_west = [];
vehicle_rearm_sources_west = [];
vehicle_repair_sources_west = [];
vehicle_repair_box_west = [];
vehicle_repaint_sources_west = [];
vehicle_refuel_sources_west = [];
vehicle_big_units = [];
GRLIB_respawn_marker = "respawn_west";
GRLIB_music_startup = "BackgroundTrack02_F"; //"LeadTrack01a_F" (This Is War)
Expand Down
8 changes: 4 additions & 4 deletions core.liberation/scripts/shared/functions/F_check_near.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (typeName _vehicle == "OBJECT" ) then {
_vehpos = getPosATL _vehicle;
};

if (isNil "_list") exitWith {_ret};
if (isNil "_list") exitWith { false };

switch ( _list ) do {
case "LHD" : { _classlist = [lhd] };
Expand All @@ -32,9 +32,9 @@ switch ( _list ) do {
case "REAMMO" : { _classlist = vehicle_rearm_sources };
case "REAMMO_AI" : { _classlist = ai_resupply_sources };
case "REPAIR_AI" : { _classlist = vehicle_repair_sources };
case "REPAIR" : { _classlist = [repair_offroad, "Land_RepairDepot_01_civ_F"] };
case "REPAIR_BOX" : { _classlist = [repairbox_typename] };
case "REPAINT" : { _classlist = [repair_offroad, "Land_RepairDepot_01_civ_F"] };
case "REPAIR" : { _classlist = vehicle_repair_sources };
case "REPAIR_BOX" : { _classlist = vehicle_repair_box };
case "REPAINT" : { _classlist = vehicle_repaint_sources };
case "WAREHOUSE" : { _classlist = [Warehouse_typename]; _use_fast = false };
case "TRANSPORT" : { _classlist = transport_vehicles; _use_fast = false };
default { _classlist = [] };
Expand Down

0 comments on commit ccc3344

Please sign in to comment.