This commit is contained in:
jaynus 2015-01-11 10:06:21 -08:00
parent 935b0fdebe
commit 9dc020d114
6 changed files with 342 additions and 342 deletions

View File

@ -1,41 +1,41 @@
class Extended_PreInit_EventHandlers {
class ADDON {
init = QUOTE(call compile preprocessFileLineNumbers PATHTOF(XEH_preInit.sqf) );
serverInit = QUOTE(call compile preprocessFileLineNumbers PATHTOF(scripts\readParameters.sqf) );
disableModuload = true;
};
};
class Extended_PostInit_EventHandlers {
class ADDON {
init = QUOTE(call compile preprocessFileLineNumbers PATHTOF(XEH_postInit.sqf) );
disableModuload = true;
};
};
class Extended_InitPost_EventHandlers {
class All {
class GVAR(executePersistent) {
init = QUOTE([_this select 0] call GVAR(fnc_executePersistent) );
};
};
class CAManBase {
class GVAR(setName) {
init = QUOTE(if (local (_this select 0)) then { _this call FUNC(setName) }; );
};
class AGM_Core_forceWalk {
init = QUOTE(if (local (_this select 0)) then { _this call FUNC(applyForceWalkStatus); }; );
};
};
};
class Extended_Respawn_EventHandlers {
class All {
class GVAR(restoreVariablesJIP) {
respawn = QUOTE(_this call GVAR(fnc_restoreVariablesJIP) );
};
class GVAR(setName) {
respawn = QUOTE(_this call GVAR(fnc_setName) );
};
};
class Extended_PreInit_EventHandlers {
class ADDON {
init = QUOTE(call compile preprocessFileLineNumbers PATHTOF(XEH_preInit.sqf) );
serverInit = QUOTE(call compile preprocessFileLineNumbers PATHTOF(scripts\readParameters.sqf) );
disableModuload = true;
};
};
class Extended_PostInit_EventHandlers {
class ADDON {
init = QUOTE(call compile preprocessFileLineNumbers PATHTOF(XEH_postInit.sqf) );
disableModuload = true;
};
};
class Extended_InitPost_EventHandlers {
class All {
class GVAR(executePersistent) {
init = QUOTE([_this select 0] call GVAR(fnc_executePersistent) );
};
};
class CAManBase {
class GVAR(setName) {
init = QUOTE(if (local (_this select 0)) then { _this call FUNC(setName) }; );
};
class AGM_Core_forceWalk {
init = QUOTE(if (local (_this select 0)) then { _this call FUNC(applyForceWalkStatus); }; );
};
};
};
class Extended_Respawn_EventHandlers {
class All {
class GVAR(restoreVariablesJIP) {
respawn = QUOTE(_this call GVAR(fnc_restoreVariablesJIP) );
};
class GVAR(setName) {
respawn = QUOTE(_this call GVAR(fnc_setName) );
};
};
};

View File

@ -1,147 +1,147 @@
class CfgFunctions {
class ADDON {
class ADDON {
file = PATHTOF(functions\);
class addActionEventHandler;
class addActionMenuEventHandler;
class addCameraEventHandler;
class addCustomEventHandler;
class addInfoDisplayEventHandler;
class addMapMarkerCreatedEventHandler;
class addInventoryDisplayLoadedEventHandler;
class addScrollWheelEventHandler;
class adminKick;
class ambientBrightness;
class applyForceWalkStatus;
class binarizeNumber;
class callCustomEventHandlers;
class callCustomEventHandlersGlobal;
class canGetInPosition;
class canInteractWith;
class canUseWeapon;
class changeProjectileDirection;
class checkPBOs;
class claim;
class closeDialogIfTargetMoves;
class codeToLetter;
class codeToString;
class convertKeyCode;
class currentChannel;
class disableUserInput;
class displayText;
class displayTextPicture;
class displayTextStructured;
class doAnimation;
class endRadioTransmission;
class execPersistentFnc;
class execRemoteFnc;
class executePersistent;
class filter;
class fixLoweredRifleAnimation;
class getCaptivityStatus;
class getConfigCommander;
class getConfigGunner;
class getDefaultAnim;
class getDoorTurrets;
class getForceWalkStatus;
class getHitPoints;
class getHitPointsWithSelections;
class getInPosition;
class getMarkerType;
class getName;
class getNumberFromMissionSQM;
class getPitchBankYaw;
class getStringFromMissionSQM;
class getTargetAzimuthAndInclination;
class getTargetDistance;
class getTargetObject;
class getTurretCommander;
class getTurretConfigPath;
class getTurretCopilot;
class getTurretGunner;
class getTurretIndex;
class getTurrets;
class getTurretsFFV;
class getTurretsOther;
class getUavControlPosition;
class getVehicleCargo;
class getVehicleCodriver;
class getVehicleCrew;
class getWeaponAzimuthAndInclination;
class getWeaponType;
class getWindDirection;
class goKneeling;
class hadamardProduct;
class interpolateFromArray;
class inTransitionAnim;
class isAutoWind;
class isEngineer;
class isEOD;
class isInBuilding;
class isMedic;
class isPlayer;
class isTurnedOut;
class letterToCode;
class map;
class moduleCheckPBOs;
class moduleLSDVehicles;
class muteUnit;
class numberToDigits;
class numberToDigitsString;
class onLoadRscDisplayChannel;
class owned;
class player;
class playerSide;
class progressBar;
class queueAnimation;
class readBooleanParameterFromModule;
class readNumericParameterFromModule;
class removeActionEventHandler;
class removeActionMenuEventHandler;
class removeCameraEventHandler;
class removeCustomEventHandler;
class removeInfoDisplayEventHandler;
class removeInventoryDisplayLoadedEventHandler;
class removeMapMarkerCreatedEventHandler;
class removeScrollWheelEventHandler;
class restoreVariablesJIP;
class revertKeyCodeLocalized;
class sanitizeString;
class serverLog;
class setCaptivityStatus;
class setForceWalkStatus;
class setKeyDefault;
class setName;
class setParameter;
class setPitchBankYaw;
class setVariableJIP;
class stringToColoredText;
class subString;
class toBin;
class toBitmask;
class toHex;
class toNumber;
class unmuteUnit;
};
};
class AGM_Debug {
class AGM_Debug {
file = "AGM_Core\functions\Debug";
class exportConfig;
class getChildren;
class getDisplayConfigName;
class log;
class logControls;
class logDisplays;
class monitor;
class showUser;
};
};
class AGM_CuratorFix {
class AGM_CuratorFix {
file = "AGM_Core\functions\CuratorFix";
class addUnloadEventhandler;
class fixCrateContent;
};
};
class CfgFunctions {
class ADDON {
class ADDON {
file = PATHTOF(functions\);
class addActionEventHandler;
class addActionMenuEventHandler;
class addCameraEventHandler;
class addCustomEventHandler;
class addInfoDisplayEventHandler;
class addMapMarkerCreatedEventHandler;
class addInventoryDisplayLoadedEventHandler;
class addScrollWheelEventHandler;
class adminKick;
class ambientBrightness;
class applyForceWalkStatus;
class binarizeNumber;
class callCustomEventHandlers;
class callCustomEventHandlersGlobal;
class canGetInPosition;
class canInteractWith;
class canUseWeapon;
class changeProjectileDirection;
class checkPBOs;
class claim;
class closeDialogIfTargetMoves;
class codeToLetter;
class codeToString;
class convertKeyCode;
class currentChannel;
class disableUserInput;
class displayText;
class displayTextPicture;
class displayTextStructured;
class doAnimation;
class endRadioTransmission;
class execPersistentFnc;
class execRemoteFnc;
class executePersistent;
class filter;
class fixLoweredRifleAnimation;
class getCaptivityStatus;
class getConfigCommander;
class getConfigGunner;
class getDefaultAnim;
class getDoorTurrets;
class getForceWalkStatus;
class getHitPoints;
class getHitPointsWithSelections;
class getInPosition;
class getMarkerType;
class getName;
class getNumberFromMissionSQM;
class getPitchBankYaw;
class getStringFromMissionSQM;
class getTargetAzimuthAndInclination;
class getTargetDistance;
class getTargetObject;
class getTurretCommander;
class getTurretConfigPath;
class getTurretCopilot;
class getTurretGunner;
class getTurretIndex;
class getTurrets;
class getTurretsFFV;
class getTurretsOther;
class getUavControlPosition;
class getVehicleCargo;
class getVehicleCodriver;
class getVehicleCrew;
class getWeaponAzimuthAndInclination;
class getWeaponType;
class getWindDirection;
class goKneeling;
class hadamardProduct;
class interpolateFromArray;
class inTransitionAnim;
class isAutoWind;
class isEngineer;
class isEOD;
class isInBuilding;
class isMedic;
class isPlayer;
class isTurnedOut;
class letterToCode;
class map;
class moduleCheckPBOs;
class moduleLSDVehicles;
class muteUnit;
class numberToDigits;
class numberToDigitsString;
class onLoadRscDisplayChannel;
class owned;
class player;
class playerSide;
class progressBar;
class queueAnimation;
class readBooleanParameterFromModule;
class readNumericParameterFromModule;
class removeActionEventHandler;
class removeActionMenuEventHandler;
class removeCameraEventHandler;
class removeCustomEventHandler;
class removeInfoDisplayEventHandler;
class removeInventoryDisplayLoadedEventHandler;
class removeMapMarkerCreatedEventHandler;
class removeScrollWheelEventHandler;
class restoreVariablesJIP;
class revertKeyCodeLocalized;
class sanitizeString;
class serverLog;
class setCaptivityStatus;
class setForceWalkStatus;
class setKeyDefault;
class setName;
class setParameter;
class setPitchBankYaw;
class setVariableJIP;
class stringToColoredText;
class subString;
class toBin;
class toBitmask;
class toHex;
class toNumber;
class unmuteUnit;
};
};
class AGM_Debug {
class AGM_Debug {
file = "AGM_Core\functions\Debug";
class exportConfig;
class getChildren;
class getDisplayConfigName;
class log;
class logControls;
class logDisplays;
class monitor;
class showUser;
};
};
class AGM_CuratorFix {
class AGM_CuratorFix {
file = "AGM_Core\functions\CuratorFix";
class addUnloadEventhandler;
class fixCrateContent;
};
};
};

View File

@ -1,7 +1,7 @@
class CfgSounds {
class AGM_Sound_Click {
sound[] = {"\AGM_Core\sounds\AGM_click.wav", 1, 1, 200};
titles[] = {};
};
class CfgSounds {
class AGM_Sound_Click {
sound[] = {"\AGM_Core\sounds\AGM_click.wav", 1, 1, 200};
titles[] = {};
};
};

View File

@ -1,108 +1,108 @@
class CfgVehicles {
/*class Man;
class CAManBase: Man {
// @todo
class UserActions {
class AGM_Fire {
displayName = "";
priority = -99;
available = 1;
radius = 2.5;
radiusView = 0;
position = "";
showWindow = 0;
showIn3D = 0;
onlyForPlayer = 1;
shortcut = "DefaultAction";
condition = "call AGM_Core_UserActionFireCondition";
statement = "call AGM_Core_UserActionFire";
userActionID = 100;
};
};
};*/
// += needs a non inherited entry in that class, otherwise it simply overwrites
//#include <DefaultItems.hpp>
class Module_F;
class AGM_ModuleCheckPBOs: Module_F {
author = "$STR_AGM_Core_AGMTeam";
category = "AGM";
displayName = "Check PBOs";
function = "AGM_Core_fnc_moduleCheckPBOs";
scope = 2;
isGlobal = 1;
icon = "\AGM_Core\UI\IconCheckPBO_ca.paa";
class Arguments {
class Action {
displayName = "Action";
description = "What to do with people who do not have the right PBOs?";
class values {
class WarnOnce {
default = 1;
name = "Warn once";
value = 0;
};
class Warn {
name = "Warn (permanent)";
value = 1;
};
class Kick {
name = "Kick";
value = 2;
};
};
};
class CheckAll {
displayName = "Check all addons";
description = "Check all addons instead of only those of AGM?";
typeName = "BOOL";
class values {
class WarnOnce {
default = 1;
name = "No";
value = 0;
};
class Warn {
name = "Yes";
value = 1;
};
};
};
class Whitelist {
displayName = "Whitelist";
description = "What addons are allowed regardless?";
typeName = "STRING";
class values {
default = "[]";
};
};
};
};
class AGM_ModuleLSDVehicles: Module_F {
author = "$STR_AGM_Core_AGMTeam";
category = "AGM";
displayName = "LSD Vehicles";
function = "AGM_Core_fnc_moduleLSDVehicles";
scope = 2;
isGlobal = 1;
class Arguments {
};
};
class Box_NATO_Support_F;
class AGM_Box_Misc: Box_NATO_Support_F {
author = "$STR_AGM_Core_AGMTeam";
displayName = "$STR_AGM_Core_MiscItems";
transportMaxWeapons = 9001;
transportMaxMagazines = 9001;
transportMaxItems = 9001;
maximumload = 2000;
class TransportWeapons {};
class TransportMagazines {};
class TransportItems {};
class TransportBackpacks {};
};
class CfgVehicles {
/*class Man;
class CAManBase: Man {
// @todo
class UserActions {
class AGM_Fire {
displayName = "";
priority = -99;
available = 1;
radius = 2.5;
radiusView = 0;
position = "";
showWindow = 0;
showIn3D = 0;
onlyForPlayer = 1;
shortcut = "DefaultAction";
condition = "call AGM_Core_UserActionFireCondition";
statement = "call AGM_Core_UserActionFire";
userActionID = 100;
};
};
};*/
// += needs a non inherited entry in that class, otherwise it simply overwrites
//#include <DefaultItems.hpp>
class Module_F;
class AGM_ModuleCheckPBOs: Module_F {
author = "$STR_AGM_Core_AGMTeam";
category = "AGM";
displayName = "Check PBOs";
function = "AGM_Core_fnc_moduleCheckPBOs";
scope = 2;
isGlobal = 1;
icon = "\AGM_Core\UI\IconCheckPBO_ca.paa";
class Arguments {
class Action {
displayName = "Action";
description = "What to do with people who do not have the right PBOs?";
class values {
class WarnOnce {
default = 1;
name = "Warn once";
value = 0;
};
class Warn {
name = "Warn (permanent)";
value = 1;
};
class Kick {
name = "Kick";
value = 2;
};
};
};
class CheckAll {
displayName = "Check all addons";
description = "Check all addons instead of only those of AGM?";
typeName = "BOOL";
class values {
class WarnOnce {
default = 1;
name = "No";
value = 0;
};
class Warn {
name = "Yes";
value = 1;
};
};
};
class Whitelist {
displayName = "Whitelist";
description = "What addons are allowed regardless?";
typeName = "STRING";
class values {
default = "[]";
};
};
};
};
class AGM_ModuleLSDVehicles: Module_F {
author = "$STR_AGM_Core_AGMTeam";
category = "AGM";
displayName = "LSD Vehicles";
function = "AGM_Core_fnc_moduleLSDVehicles";
scope = 2;
isGlobal = 1;
class Arguments {
};
};
class Box_NATO_Support_F;
class AGM_Box_Misc: Box_NATO_Support_F {
author = "$STR_AGM_Core_AGMTeam";
displayName = "$STR_AGM_Core_MiscItems";
transportMaxWeapons = 9001;
transportMaxMagazines = 9001;
transportMaxItems = 9001;
maximumload = 2000;
class TransportWeapons {};
class TransportMagazines {};
class TransportItems {};
class TransportBackpacks {};
};
};

View File

@ -1,30 +1,30 @@
class CfgWeapons {
class ItemCore;
class AGM_ItemCore: ItemCore {
type = 4096;//4;
detectRange = -1;
simulation = "ItemMineDetector";
};
class Rifle_Base_F;
class AGM_FakePrimaryWeapon: Rifle_Base_F {
discreteDistance[] = {};
discreteDistanceInitIndex = 0;
displayName = "";
picture = "";
model = "";
magazines[] = {"AGM_FakeMagazine"};
scope = 2;
};
};
class CfgMagazines {
class CA_Magazine;
class AGM_FakeMagazine: CA_Magazine {
descriptionShort = "";
displayName = "";
displayNameShort = "";
count = 0;
};
class CfgWeapons {
class ItemCore;
class AGM_ItemCore: ItemCore {
type = 4096;//4;
detectRange = -1;
simulation = "ItemMineDetector";
};
class Rifle_Base_F;
class AGM_FakePrimaryWeapon: Rifle_Base_F {
discreteDistance[] = {};
discreteDistanceInitIndex = 0;
displayName = "";
picture = "";
model = "";
magazines[] = {"AGM_FakeMagazine"};
scope = 2;
};
};
class CfgMagazines {
class CA_Magazine;
class AGM_FakeMagazine: CA_Magazine {
descriptionShort = "";
displayName = "";
displayNameShort = "";
count = 0;
};
};

View File

@ -1,14 +1,14 @@
#define COMPONENT core
#include "script_mod.hpp"
// #define DEBUG_MODE_FULL
#ifdef DEBUG_ENABLED_MAIN
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_SETTINGS_MAIN
#define DEBUG_SETTINGS DEBUG_SETTINGS_MAIN
#endif
#include "script_macros.hpp"
#define COMPONENT core
#include "script_mod.hpp"
// #define DEBUG_MODE_FULL
#ifdef DEBUG_ENABLED_MAIN
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_SETTINGS_MAIN
#define DEBUG_SETTINGS DEBUG_SETTINGS_MAIN
#endif
#include "script_macros.hpp"