Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ojemineh committed Oct 1, 2019
0 parents commit 4f47fad
Show file tree
Hide file tree
Showing 457 changed files with 15,784 additions and 0 deletions.
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Arma eXtended Environment
This mod adds a variety of additional functions & features on top of Arma3, CBA and the ACE3 framework.
1 change: 1 addition & 0 deletions addons/common/$PREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
axe_common
4 changes: 4 additions & 0 deletions addons/common/BIS_AddonInfo.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class BIS_AddonInfo {
author = "O. Jemineh";
timepacked = "1569837899";
};
15 changes: 15 additions & 0 deletions addons/common/CfgEventHandlers.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class Extended_PreInit_EventHandlers {

class AXE_Common_EH_initSettings {
init = "call AXE_common_fnc_initSettings";
};

};

class Extended_PostInit_EventHandlers {

class AXE_Common_EH_initialize {
init = "call AXE_common_fnc_initialize";
};

};
96 changes: 96 additions & 0 deletions addons/common/CfgFunctions.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
class CfgFunctions {

class AXE_Common {

tag = "axe_common";

class Common {
file = "\axe_common\functions";
class initialize {};
class initSettings {};
};

};

class AXE_Functions {

tag = "axe";

class Addons {
file = "\axe_common\functions\addons";
class getAddonAuthor {};
class getAddonAuthors {};
class getAddonName {};
class getAddonRequiredAddons {};
class getAddonRequiredVersion {};
class getAddonUnits {};
class getAddonURL {};
class getAddonVersion {};
class getAddonVersionArray {};
class getAddonVersionString {};
class getAddonWeapons {};
class isAddon {};
};

class Common {
file = "\axe_common\functions\common";
class addItem {};
class attachToRel {};
class createLitter {};
class createLitterServer {};
class isAdmin {};
class isCurator {};
class isInBuilding {};
};

class Diagnostic {
file = "\axe_common\functions\diagnostics";
class diagLog {};
class isDebug {};
class log {};
};

class SafeMode {
file = "\axe_common\functions\safemode";
class weaponFiremodeSound {};
class weaponLock {};
class weaponUnlock {};
};

class Settings {
file = "\axe_common\functions\settings";
class getKeybindString {};
class needRestart {};
class needRestartLocal {};
};

class Sounds {
file = "\axe_common\functions\sounds";
class getSoundDuration {};
class getSoundPath {};
class isSpeaking {};
class loop3d {};
class loop3dGlobal {};
class play3d {};
class play3dGlobal {};
class playSound {};
class playSoundGlobal {};
class playSound3d {};
class say3d {};
class say3dGlobal {};
class speak3d {};
class speak3dGlobal {};
class stop3d;
class stop3dGlobal;
};

class Videos {
file = "\axe_common\functions\videos";
class playVideo {};
class playVideoOnce {};
class videoKeyDown {};
};

};

};
26 changes: 26 additions & 0 deletions addons/common/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include "\axe_main\script_macros.hpp"
#include "BIS_AddonInfo.hpp"

class CfgPatches {

class AXE_Common {
name = "$STR_AXE_Common_Title";
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {
"axe_main",
"axe_hints"
};
units[] = {};
weapons[] = {};
author = "$STR_AXE_Common_Author";
authors[] = {
"O. Jemineh"
};
url = "$STR_AXE_Common_URL";
VERSION_CONFIG;
};

};

#include "CfgEventHandlers.hpp"
#include "CfgFunctions.hpp"
Binary file added addons/common/data/icons/settings_ca.paa
Binary file not shown.
33 changes: 33 additions & 0 deletions addons/common/functions/addons/fn_getAddonAuthor.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* ARMA EXTENDED ENVIRONMENT
* \axe_common\functions\addons\fn_getAddonAuthor.sqf
* by Ojemineh
*
* get addon author
*
* Arguments:
* 0: classname - <STRING>
*
* Return:
* <STRING>
*
* Example:
* ["axe_core"] call AXE_fnc_getAddonAuthor;
*
*/

// -------------------------------------------------------------------------------------------------

private ["_classname"];

_classname = [_this, 0, "", [""]] call BIS_fnc_param;

// -------------------------------------------------------------------------------------------------

private _return = "";

if (isClass (configfile >> "CfgPatches" >> _classname)) then {
_return = getText (configfile >> "CfgPatches" >> _classname >> "author");
};

_return
33 changes: 33 additions & 0 deletions addons/common/functions/addons/fn_getAddonAuthors.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* ARMA EXTENDED ENVIRONMENT
* \axe_common\functions\addons\fn_getAddonAuthors.sqf
* by Ojemineh
*
* get addon authors
*
* Arguments:
* 0: classname - <STRING>
*
* Return:
* <ARRAY>
*
* Example:
* ["axe_core"] call AXE_fnc_getAddonAuthors;
*
*/

// -------------------------------------------------------------------------------------------------

private ["_classname"];

_classname = [_this, 0, "", [""]] call BIS_fnc_param;

// -------------------------------------------------------------------------------------------------

private _return = [];

if (isClass (configfile >> "CfgPatches" >> _classname)) then {
_return = getArray (configfile >> "CfgPatches" >> _classname >> "authors");
};

_return
33 changes: 33 additions & 0 deletions addons/common/functions/addons/fn_getAddonName.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* ARMA EXTENDED ENVIRONMENT
* \axe_common\functions\addons\fn_getAddonName.sqf
* by Ojemineh
*
* get addon name
*
* Arguments:
* 0: classname - <STRING>
*
* Return:
* <STRING>
*
* Example:
* ["axe_core"] call AXE_fnc_getAddonName;
*
*/

// -------------------------------------------------------------------------------------------------

private ["_classname"];

_classname = [_this, 0, "", [""]] call BIS_fnc_param;

// -------------------------------------------------------------------------------------------------

private _return = "";

if (isClass (configfile >> "CfgPatches" >> _classname)) then {
_return = getText (configfile >> "CfgPatches" >> _classname >> "name");
};

_return
33 changes: 33 additions & 0 deletions addons/common/functions/addons/fn_getAddonRequiredAddons.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* ARMA EXTENDED ENVIRONMENT
* \axe_common\functions\addons\fn_getAddonRequiredAddons.sqf
* by Ojemineh
*
* get addon required addons
*
* Arguments:
* 0: classname - <STRING>
*
* Return:
* <ARRAY>
*
* Example:
* ["axe_core"] call AXE_fnc_getAddonRequiredAddons;
*
*/

// -------------------------------------------------------------------------------------------------

private ["_classname"];

_classname = [_this, 0, "", [""]] call BIS_fnc_param;

// -------------------------------------------------------------------------------------------------

private _return = [];

if (isClass (configfile >> "CfgPatches" >> _classname)) then {
_return = getArray (configfile >> "CfgPatches" >> _classname >> "requiredAddons");
};

_return
33 changes: 33 additions & 0 deletions addons/common/functions/addons/fn_getAddonRequiredVersion.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* ARMA EXTENDED ENVIRONMENT
* \axe_common\functions\addons\fn_getAddonRequiredVersion.sqf
* by Ojemineh
*
* get addon required version
*
* Arguments:
* 0: classname - <STRING>
*
* Return:
* <STRING>
*
* Example:
* ["axe_core"] call AXE_fnc_getAddonRequiredVersion;
*
*/

// -------------------------------------------------------------------------------------------------

private ["_classname"];

_classname = [_this, 0, "", [""]] call BIS_fnc_param;

// -------------------------------------------------------------------------------------------------

private _return = 0;

if (isClass (configfile >> "CfgPatches" >> _classname)) then {
_return = getNumber (configfile >> "CfgPatches" >> _classname >> "requiredVersion");
};

_return
33 changes: 33 additions & 0 deletions addons/common/functions/addons/fn_getAddonURL.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* ARMA EXTENDED ENVIRONMENT
* \axe_common\functions\addons\fn_getAddonURL.sqf
* by Ojemineh
*
* get addon url
*
* Arguments:
* 0: classname - <STRING>
*
* Return:
* <STRING>
*
* Example:
* ["axe_core"] call AXE_fnc_getAddonURL;
*
*/

// -------------------------------------------------------------------------------------------------

private ["_classname"];

_classname = [_this, 0, "", [""]] call BIS_fnc_param;

// -------------------------------------------------------------------------------------------------

private _return = "";

if (isClass (configfile >> "CfgPatches" >> _classname)) then {
_return = getText (configfile >> "CfgPatches" >> _classname >> "url");
};

_return
33 changes: 33 additions & 0 deletions addons/common/functions/addons/fn_getAddonUnits.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* ARMA EXTENDED ENVIRONMENT
* \axe_common\functions\addons\fn_getAddonUnits.sqf
* by Ojemineh
*
* get addon units
*
* Arguments:
* 0: classname - <STRING>
*
* Return:
* <ARRAY>
*
* Example:
* ["axe_core"] call AXE_fnc_getAddonUnits;
*
*/

// -------------------------------------------------------------------------------------------------

private ["_classname"];

_classname = [_this, 0, "", [""]] call BIS_fnc_param;

// -------------------------------------------------------------------------------------------------

private _return = [];

if (isClass (configfile >> "CfgPatches" >> _classname)) then {
_return = getArray (configfile >> "CfgPatches" >> _classname >> "units");
};

_return
Loading

0 comments on commit 4f47fad

Please sign in to comment.