Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ////////////////////////////////////////////////////////////////////////////
- // GL4 v.1.0 System Config
- // By =\SNKMAN/=
- // ////////////////////////////////////////////////////////////////////////////
- class CfgPatches
- {
- class GL4_System
- {
- units[] = {};
- weapons[] = {};
- requiredVersion = 1.0;
- requiredAddons[] = {"CAData", "CA_Modules", "CAUI", "Extended_Eventhandlers"}; // Added "Extended_Eventhandlers"
- };
- };
- #include "CfgResource.hpp"
- #define GL4_EH_System "if (isNil ""GL4_Path"") then {GL4_Path = ""\GL4_System\""}; _this execVM (GL4_Path+""GL4_System.sqf"")";
- #define GL4_EH_Static "if (isNil ""GL4_Path"") then {GL4_Path = ""\GL4_System\""}; if (isServer) then {_this execVM (GL4_Path+""GL4\GL4_System\GL4_Static.sqf"")}";
- #define GL4_EH_Custom "if (isNil ""GL4_Path"") then {GL4_Path = ""\GL4_System\""}; if (isServer) then {_this execVM (GL4_Path+""GL4\GL4_System\GL4_Custom.sqf"")}";
- #define GL4_EH_Special_FX "if (isNil ""GL4_Path"") then {GL4_Path = ""\GL4_System\""}; _this execVM (GL4_Path+""GL4\GL4_System\GL4_Special_FX.sqf"")";
- #define GL4_EH_Time "if (isNil ""GL4_Path"") then {GL4_Path = ""\GL4_System\""}; _this execVM (GL4_Path+""GL4\GL4_System\GL4_Random\GL4_Time.sqf"")";
- #define GL4_EH_Weather "if (isNil ""GL4_Path"") then {GL4_Path = ""\GL4_System\""}; _this execVM (GL4_Path+""GL4\GL4_System\GL4_Random\GL4_Weather.sqf"")";
- #define GL4_EH_Position "if (isNil ""GL4_Path"") then {GL4_Path = ""\GL4_System\""}; _this execVM (GL4_Path+""GL4\GL4_System\GL4_Random\GL4_Position.sqf"")";
- #define GL4_EH_Snow "if (isNil ""GL4_Path"") then {GL4_Path = ""\GL4_System\""}; _this execVM (GL4_Path+""GL4\GL4_System\GL4_Random\GL4_Snow.sqf"")";
- #define GL4_EH_Default "if (isNil ""GL4_Path"") then {GL4_Path = ""\GL4_System\""}; if ( (isServer) && (isPlayer (_this select 0) ) ) then {_this execVM (GL4_Path+""GL4\GL4_System\GL4_Default.sqf"")} else {_this execVM (GL4_Path+""GL4\GL4_System\GL4_Default.sqf"")}";
- // New, for XEH
- class Extended_Init_Eventhandlers
- {
- class CAManBase // Man
- {
- class GL4_System
- {
- init = GL4_EH_Default
- };
- };
- };
- // New, for XEH, example auto-init 'system'
- class Extended_PreInit_Eventhandlers
- {
- class GL4_System
- {
- init = GL4_EH_System
- };
- };
- class CfgVehicles
- {
- class Logic;
- class GL4_System : Logic
- {
- displayName = "Group Link 4: System";
- icon = "\ca\ui\data\icon_functions_ca.paa";
- picture = "\ca\ui\data\icon_functions_ca.paa";
- vehicleClass = "Modules";
- class EventHandlers
- {
- init = GL4_EH_System
- };
- };
- class GL4_Static : Logic
- {
- displayName = "Group Link 4: Static";
- icon = "\ca\ui\data\icon_functions_ca.paa";
- picture = "\ca\ui\data\icon_functions_ca.paa";
- vehicleClass = "Modules";
- class EventHandlers
- {
- init = GL4_EH_Static
- };
- };
- class GL4_Custom : Logic
- {
- displayName = "Group Link 4: Custom";
- icon = "\ca\ui\data\icon_functions_ca.paa";
- picture = "\ca\ui\data\icon_functions_ca.paa";
- vehicleClass = "Modules";
- class EventHandlers
- {
- init = GL4_EH_Custom
- };
- };
- class GL4_Special_FX : Logic
- {
- displayName = "Group Link 4: Special FX";
- icon = "\ca\ui\data\icon_functions_ca.paa";
- picture = "\ca\ui\data\icon_functions_ca.paa";
- vehicleClass = "Modules";
- class EventHandlers
- {
- init = GL4_EH_Special_FX
- };
- };
- class GL4_Time : Logic
- {
- displayName = "Group Link 4: Random Time";
- icon = "\ca\ui\data\icon_functions_ca.paa";
- picture = "\ca\ui\data\icon_functions_ca.paa";
- vehicleClass = "Modules";
- class EventHandlers
- {
- init = GL4_EH_Time
- };
- };
- class GL4_Weather : Logic
- {
- displayName = "Group Link 4: Random Weather";
- icon = "\ca\ui\data\icon_functions_ca.paa";
- picture = "\ca\ui\data\icon_functions_ca.paa";
- vehicleClass = "Modules";
- class EventHandlers
- {
- init = GL4_EH_Weather
- };
- };
- class GL4_Position : Logic
- {
- displayName = "Group Link 4: Random Position";
- icon = "\ca\ui\data\icon_functions_ca.paa";
- picture = "\ca\ui\data\icon_functions_ca.paa";
- vehicleClass = "Modules";
- class EventHandlers
- {
- init = GL4_EH_Position
- };
- };
- class GL4_Snow : Logic
- {
- displayName = "Group Link 4: Random Snow";
- icon = "\ca\ui\data\icon_functions_ca.paa";
- picture = "\ca\ui\data\icon_functions_ca.paa";
- vehicleClass = "Modules";
- class EventHandlers
- {
- init = GL4_EH_Snow
- };
- };
- /*
- // Disabled: Are handled with XEH.
- class Man; // Also fixed class inheritance
- class CAManBase: Man
- {
- class EventHandlers
- {
- init = GL4_EH_Default
- };
- };
- */
- };
Add Comment
Please, Sign In to add comment