Skip to content

Commit

Permalink
Merge branch 'main' into music-rework
Browse files Browse the repository at this point in the history
  • Loading branch information
OverlordZorn committed Nov 10, 2024
2 parents 17c6634 + c8441e5 commit d7675aa
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 9 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Merge Version Bump

on:
pull_request:
types:
- closed
# on:
# pull_request:
# types:
# - closed

permissions:
contents: write
Expand Down
22 changes: 22 additions & 0 deletions .hemtt/missions/CSC.Altis/init.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,28 @@ params [
], // Array of Backpacks to be filled into - Default: []
createHashMapFromArray [
["airdrop_pos_start", [10000,10000,1000]],
["box_empty", true],
["box_class", "ACE_medicalSupplyCrate_advanced"],
["airframe_class", "B_T_VTOL_01_vehicle_F"],
["normal_mode", "AIRDROP"],
["airdrop_targetMode", "TARGET"]



] // Hashmap of additional parameters that can be changed optionally
] call cvo_csc_fnc_register;
[
"ACE Medical Box 2", // Name
[
["ace_banana", 169],
["ace_suture", 169],
["ACE_painkillers", 169]
], // Array of Items to be filled into - Default: []
[
// ["somebackpackclassname", 420]
], // Array of Backpacks to be filled into - Default: []
createHashMapFromArray [
["airdrop_pos_start", [10000,10000,100]],
["box_empty", false],
["box_class", "ACE_medicalSupplyCrate_advanced"],
["airframe_class", "B_T_VTOL_01_vehicle_F"],
Expand Down
Binary file modified .hemtt/missions/CSC.Altis/mission.sqm
Binary file not shown.
4 changes: 3 additions & 1 deletion addons/csc/functions/fn_link.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ if (_target isEqualTo "404") exitWith {ZRN_LOG_MSG(No target provided);};

private _cat = [_catName] call FUNC(catalog);
if (_cat isEqualTo "404") exitWith {ZRN_LOG_MSG_1(Catalog not found,_catName);};
private _links = _cat get _entryName getOrDefault ["links", []];
private _links = _cat get _entryName getOrDefault ["links", [[],[]]];

ZRN_LOG_1(_links);


// Check if zeus is enabled for this catalog already - if not - create zeus action and attach it to zeus.
Expand Down
2 changes: 1 addition & 1 deletion addons/csc/functions/fn_register.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private _entry = _cat getOrDefault [_entryName, "404"];
if (_entry isEqualTo "404") then {

_entry = createHashMapFromArray [ ["entryName", _entryName] ];
_entry merge [(_cat get "Default Entry"), false];
_entry merge [+ (_cat get "Default Entry"), false];
};

_entry set ["items", _items];
Expand Down
2 changes: 1 addition & 1 deletion addons/csc/functions/internal/fn_createCrate.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private _box = createVehicle [_entry get "box_class", [0,0,0],[],2,"CAN_COLLIDE"

_box setVariable ["ace_cargo_customname", _entry get "name", true];

if (_entry get "empty_box") then {
if (_entry get "box_empty") then {
// Empties the inventory of the Box
clearBackpackCargoGlobal _box;
clearMagazineCargoGlobal _box;
Expand Down
3 changes: 3 additions & 0 deletions addons/csc/readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
> [!Caution]
> THIS NEEDS A FULL REWRITE
# Custom Supply Crates

System to add an ACE Interaction to an Object/Classname.
Expand Down
4 changes: 2 additions & 2 deletions addons/main/script_version.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define MAJOR 1
#define MINOR 3
#define PATCH 0
#define BUILD 121
#define PATCH 1
#define BUILD 122


// #define VERSION MACROS
Expand Down

0 comments on commit d7675aa

Please sign in to comment.