Guest User

Untitled

a guest
Jul 21st, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.57 KB | None | 0 0
  1. // ////////////////////////////////////////////////////////////////////////////
  2. // GL4 v.1.0 System Config
  3. // By =\SNKMAN/=
  4. // ////////////////////////////////////////////////////////////////////////////
  5.  
  6. class CfgPatches
  7. {
  8. class GL4_System
  9. {
  10. units[] = {};
  11. weapons[] = {};
  12. requiredVersion = 1.0;
  13. requiredAddons[] = {"CAData", "CA_Modules", "CAUI", "Extended_Eventhandlers"}; // Added "Extended_Eventhandlers"
  14. };
  15. };
  16.  
  17. #include "CfgResource.hpp"
  18.  
  19. #define GL4_EH_System "if (isNil ""GL4_Path"") then {GL4_Path = ""\GL4_System\""}; _this execVM (GL4_Path+""GL4_System.sqf"")";
  20.  
  21. #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"")}";
  22.  
  23. #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"")}";
  24.  
  25. #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"")";
  26.  
  27. #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"")";
  28.  
  29. #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"")";
  30.  
  31. #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"")";
  32.  
  33. #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"")";
  34.  
  35. #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"")}";
  36.  
  37.  
  38. // New, for XEH
  39. class Extended_Init_Eventhandlers
  40. {
  41. class CAManBase // Man
  42. {
  43. class GL4_System
  44. {
  45. init = GL4_EH_Default
  46. };
  47. };
  48. };
  49.  
  50.  
  51. // New, for XEH, example auto-init 'system'
  52. class Extended_PreInit_Eventhandlers
  53. {
  54. class GL4_System
  55. {
  56. init = GL4_EH_System
  57. };
  58. };
  59.  
  60.  
  61. class CfgVehicles
  62. {
  63. class Logic;
  64.  
  65. class GL4_System : Logic
  66. {
  67. displayName = "Group Link 4: System";
  68. icon = "\ca\ui\data\icon_functions_ca.paa";
  69. picture = "\ca\ui\data\icon_functions_ca.paa";
  70. vehicleClass = "Modules";
  71.  
  72. class EventHandlers
  73. {
  74. init = GL4_EH_System
  75. };
  76. };
  77.  
  78. class GL4_Static : Logic
  79. {
  80. displayName = "Group Link 4: Static";
  81. icon = "\ca\ui\data\icon_functions_ca.paa";
  82. picture = "\ca\ui\data\icon_functions_ca.paa";
  83. vehicleClass = "Modules";
  84.  
  85. class EventHandlers
  86. {
  87. init = GL4_EH_Static
  88. };
  89. };
  90.  
  91. class GL4_Custom : Logic
  92. {
  93. displayName = "Group Link 4: Custom";
  94. icon = "\ca\ui\data\icon_functions_ca.paa";
  95. picture = "\ca\ui\data\icon_functions_ca.paa";
  96. vehicleClass = "Modules";
  97.  
  98. class EventHandlers
  99. {
  100. init = GL4_EH_Custom
  101. };
  102. };
  103.  
  104. class GL4_Special_FX : Logic
  105. {
  106. displayName = "Group Link 4: Special FX";
  107. icon = "\ca\ui\data\icon_functions_ca.paa";
  108. picture = "\ca\ui\data\icon_functions_ca.paa";
  109. vehicleClass = "Modules";
  110.  
  111. class EventHandlers
  112. {
  113. init = GL4_EH_Special_FX
  114. };
  115. };
  116.  
  117. class GL4_Time : Logic
  118. {
  119. displayName = "Group Link 4: Random Time";
  120. icon = "\ca\ui\data\icon_functions_ca.paa";
  121. picture = "\ca\ui\data\icon_functions_ca.paa";
  122. vehicleClass = "Modules";
  123.  
  124. class EventHandlers
  125. {
  126. init = GL4_EH_Time
  127. };
  128. };
  129.  
  130. class GL4_Weather : Logic
  131. {
  132. displayName = "Group Link 4: Random Weather";
  133. icon = "\ca\ui\data\icon_functions_ca.paa";
  134. picture = "\ca\ui\data\icon_functions_ca.paa";
  135. vehicleClass = "Modules";
  136.  
  137. class EventHandlers
  138. {
  139. init = GL4_EH_Weather
  140. };
  141. };
  142.  
  143. class GL4_Position : Logic
  144. {
  145. displayName = "Group Link 4: Random Position";
  146. icon = "\ca\ui\data\icon_functions_ca.paa";
  147. picture = "\ca\ui\data\icon_functions_ca.paa";
  148. vehicleClass = "Modules";
  149.  
  150. class EventHandlers
  151. {
  152. init = GL4_EH_Position
  153. };
  154. };
  155.  
  156. class GL4_Snow : Logic
  157. {
  158. displayName = "Group Link 4: Random Snow";
  159. icon = "\ca\ui\data\icon_functions_ca.paa";
  160. picture = "\ca\ui\data\icon_functions_ca.paa";
  161. vehicleClass = "Modules";
  162.  
  163. class EventHandlers
  164. {
  165. init = GL4_EH_Snow
  166. };
  167. };
  168. /*
  169. // Disabled: Are handled with XEH.
  170. class Man; // Also fixed class inheritance
  171. class CAManBase: Man
  172. {
  173. class EventHandlers
  174. {
  175. init = GL4_EH_Default
  176. };
  177. };
  178. */
  179. };
Add Comment
Please, Sign In to add comment