Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Added items #250

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions addons/items/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
z\acex\addons\items
10 changes: 10 additions & 0 deletions addons/items/CfgEventHandlers.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class Extended_PreStart_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_preStart));
};
};
class Extended_PreInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_preInit));
};
};
93 changes: 93 additions & 0 deletions addons/items/CfgMagazines.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
class CfgMagazines {
class OM_Magazine;
class Antibiotic : OM_Magazine {
scope = 2;
};
class Antimalaricum : OM_Magazine {
scope = 2;
};
class AntimalaricumVaccine : OM_Magazine {
scope = 2;
};
class Bandage : OM_Magazine {
scope = 2;
};
class Files : OM_Magazine {
scope = 2;
};
class Files_diary : Files {
scope = 2;
};
class Files_researchNotes : Files {
scope = 2;
};
class FilesSecret : Files {
scope = 2;
};
class DocumentsSecret : Files {
scope = 2;
};
class Wallet_ID : Files {
scope = 2;
};
class Keys : Files {
scope = 2;
};
class Csat_Id_01 : Files {
scope = 2;
};
class Csat_Id_02 : Files {
scope = 2;
};
class Csat_Id_03 : Files {
scope = 2;
};
class Csat_Id_04 : Files {
scope = 2;
};
class Csat_Id_05 : Files {
scope = 2;
};
class FileTopSecret : OM_Magazine {
scope = 2;
};
class FileNetworkStructure : OM_Magazine {
scope = 2;
};
class Laptop_Unfolded : OM_Magazine {
scope = 2;
};
class Laptop_Closed : OM_Magazine {
scope = 2;
};
class SatPhone : OM_Magazine {
scope = 2;
};
class MobilePhone : OM_Magazine {
scope = 2;
};
class SmartPhone : MobilePhone {
scope = 2;
};
class FlashDisk : MobilePhone {
scope = 2;
};
class ButaneCanister : OM_Magazine {
scope = 2;
};
class Money : OM_Magazine {
scope = 2;
};
class Money_bunch : Money {
scope = 2;
};
class Money_roll : Money {
scope = 2;
};
class Money_stack : Money {
scope = 2;
};
class Sleeping_bag_folded_01 : OM_Magazine {
scope = 2;
};
};
4 changes: 4 additions & 0 deletions addons/items/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
acex_items
===============

Adds all vanilla inventory introduced in old man dlc item to be obtainable in arsenal
Empty file added addons/items/XEH_PREP.hpp
Empty file.
9 changes: 9 additions & 0 deletions addons/items/XEH_preInit.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "script_component.hpp"

ADDON = false;

PREP_RECOMPILE_START;
#include "XEH_PREP.hpp"
PREP_RECOMPILE_END;

ADDON = true;
3 changes: 3 additions & 0 deletions addons/items/XEH_preStart.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "script_component.hpp"

#include "XEH_PREP.hpp"
18 changes: 18 additions & 0 deletions addons/items/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {};
author = ACECSTRING(common,ACETeam);
authors[] = {"Brostrom.A Evul"};
url = ACECSTRING(main,URL);
VERSION_CONFIG;
};
};

#include "CfgEventHandlers.hpp"
#include "CfgMagazines.hpp"
17 changes: 17 additions & 0 deletions addons/items/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#define COMPONENT items
#define COMPONENT_BEAUTIFIED Items
#include "\z\acex\addons\main\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define ENABLE_PERFORMANCE_COUNTERS

#ifdef DEBUG_ENABLED_items
#define DEBUG_MODE_FULL
#endif

#ifdef DEBUG_SETTINGS_items
#define DEBUG_SETTINGS DEBUG_SETTINGS_items
#endif

#include "\z\acex\addons\main\script_macros.hpp"