Advertisement
Guest User

Untitled

a guest
Nov 20th, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.21 KB | None | 0 0
  1. adminScript = true;
  2. busrouteScript = false;
  3. safeZoneCommander = true;
  4. fastRope = false;
  5. snowstorm = false;
  6. debugmonitor = false;
  7. houselights = true;
  8. streetlights = true;
  9. towerlights = true;
  10. refuelScript = true;
  11. nametags = true;
  12. liftTow = true;
  13. SargeAI = true;
  14. _snowChance = 10;
  15. /*
  16. For DayZ Epoch
  17. Addons Credits: Jetski Yanahui by Kol9yN, Zakat, Gerasimow9, YuraPetrov, zGuba, A.Karagod, IceBreakr, Sahbazz
  18. */
  19. startLoadingScreen ["","RscDisplayLoadCustom"];
  20. cutText ["","BLACK OUT"];
  21. enableSaving [false, false];
  22.  
  23. //REALLY IMPORTANT VALUES
  24. dayZ_instance = 11; //The instance
  25. dayzHiveRequest = [];
  26. initialized = false;
  27. dayz_previousID = 0;
  28.  
  29. //disable greeting menu
  30. player setVariable ["BIS_noCoreConversations", true];
  31. //disable radio messages to be heard and shown in the left lower corner of the screen
  32. enableRadio false;
  33.  
  34. // DayZ Epoch config
  35. spawnShoremode = 1; // Default = 1 (on shore)
  36. spawnArea= 1500; // Default = 1500
  37. MaxHeliCrashes = 10;
  38. MaxVehicleLimit = 300;
  39. MaxDynamicDebris = 100;
  40. dayz_MapArea = 14000; // Default = 10000
  41. dayz_maxLocalZombies = 30; // Default = 30
  42.  
  43. dayz_paraSpawn = false;
  44.  
  45. dayz_maxAnimals = 8; // Default: 8
  46. dayz_tameDogs = false;
  47. DynamicVehicleDamageLow = 0; // Default: 0
  48. DynamicVehicleDamageHigh = 100; // Default: 100
  49.  
  50. EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
  51. dayz_fullMoonNights = true;
  52.  
  53. //Load in compiled functions
  54. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  55. progressLoadingScreen 0.1;
  56. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  57. progressLoadingScreen 0.2;
  58. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  59. progressLoadingScreen 0.4;
  60. //call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
  61. call compile preprocessFileLineNumbers "Scripts\compiles.sqf"; //Compile regular functions
  62. call compile preprocessFileLineNumbers "Scripts\variables.sqf";
  63. call compile preprocessFileLineNumbers "dayz_code\init\settings.sqf";
  64. progressLoadingScreen 0.5;
  65. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  66. progressLoadingScreen 1.0;
  67.  
  68. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  69.  
  70. /* BIS_Effects_* fixes from Dwarden */
  71. BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
  72. BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
  73. BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
  74.  
  75. BIS_Effects_globalEvent = {
  76. BIS_effects_gepv = _this;
  77. publicVariable "BIS_effects_gepv";
  78. _this call BIS_Effects_startEvent;
  79. };
  80.  
  81. BIS_Effects_startEvent = {
  82. switch (_this select 0) do {
  83. case "AirDestruction": {
  84. [_this select 1] spawn BIS_Effects_AirDestruction;
  85. };
  86. case "AirDestructionStage2": {
  87. [_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
  88. };
  89. case "Burn": {
  90. [_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
  91. };
  92. };
  93. };
  94.  
  95. "BIS_effects_gepv" addPublicVariableEventHandler {
  96. (_this select 1) call BIS_Effects_startEvent;
  97. };
  98.  
  99. if ((!isServer) && (isNull player) ) then
  100. {
  101. waitUntil {!isNull player};
  102. waitUntil {time > 3};
  103. };
  104.  
  105. if ((!isServer) && (player != player)) then
  106. {
  107. waitUntil {player == player};
  108. waitUntil {time > 3};
  109. };
  110.  
  111. if (isServer) then {
  112. call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
  113. dogOwner = [];
  114. _nil = [] execVM "mission.sqf";
  115. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  116. };
  117.  
  118. if (!isDedicated) then {
  119. //Conduct map operations
  120. 0 fadeSound 0;
  121. waitUntil {!isNil "dayz_loadScreenMsg"};
  122. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  123.  
  124. //Run the player monitor
  125. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  126. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  127. _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf";
  128. };
  129.  
  130. if (busrouteScript) then {
  131. if (isServer) then {
  132. //Bus Route
  133. [true] execVM "busroute\init_bus.sqf";
  134. };
  135.  
  136. if (!isDedicated) then {
  137. //Bus Route
  138. [] execVM "busroute\player_axeBus.sqf";
  139. };
  140. };
  141. if (debugmonitor) then {
  142. if (!isDedicated) then {
  143. [] execVM "Stats\j0k3r5_stats.sqf"
  144. };
  145. };
  146. if (houselights) then {
  147. if (!isDedicated) then {
  148. [] execVM "lights\house_lights.sqf";
  149. };
  150. };
  151. if (streetlights) then {
  152. if (isServer) then {
  153. axe_server_lampObjs = compile preprocessFileLineNumbers "lights\fnc_returnLampWS.sqf";
  154. "axeLampObjects" addPublicVariableEventHandler {_id = (_this select 1) spawn axe_server_lampObjs};
  155. };
  156.  
  157. if (!isDedicated) then {
  158. //StreetLights
  159. [] execVM "lights\street_lights.sqf";
  160. };
  161. };
  162. if (towerlights) then {
  163. if (!isDedicated) then {
  164. //TowerLights
  165. [] execVM "lights\tower_lights.sqf";
  166. };
  167. };
  168. if (refuelScript) then {
  169. if (!isDedicated) then {
  170. //AutoRefuel
  171. [] execVM "Scripts\kh_actions.sqf";
  172. };
  173. };
  174. if (fastRope) then {
  175. sleep 1; _fast_rope = [] execVM "addons\BTC_fast_roping_init.sqf";
  176. };
  177. if (nametags) then {
  178. execVM "Scripts\skaronametags.sqf";
  179. };
  180. if (liftTow) then {
  181. [] execVM "addons\R3F_ARTY_AND_LOG\init.sqf";
  182. };
  183. if (snowstorm)then{
  184. // SnowStorm:
  185. if (floor (random 100) < _snowChance)then{
  186. if (!isDedicated) then {
  187. [] execVM "Scripts\effects.sqf";
  188. };
  189. };
  190. };
  191. if(safeZoneCommander)then{
  192. [] execvm 'AGN\agn_SafeZoneCommander.sqf';
  193. };
  194. if(adminScript)then{
  195. [] execVM "admintools\Activate.sqf";
  196. };
  197. if(SargeAI)then{
  198. call compile preprocessfile "addons\SHK_pos\shk_pos_init.sqf";
  199. call compile preprocessFileLineNumbers "addons\UPSMON\scripts\Init_UPSMON.sqf";
  200.  
  201. [] execVM "addons\SARGE\SAR_AI_init.sqf";
  202. };
  203.  
  204. #include "\z\addons\dayz_code\system\REsec.sqf"
  205. [] execVM "builds\newbase.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement