Advertisement
secondcoming

fn_init.sqf

Aug 25th, 2016
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 18.34 KB | None | 0 0
  1. // ExileZ 2.0 by Patrix87 of http:\\multi-jeux.quebec //
  2. #include "code\pre_init.sqf";
  3. #include "ZClassesList.sqf";                     //All available classes per group
  4. #include "ZLoot.sqf";                            //Loot groups
  5. #include "ZVest.sqf";                            //Vest groups
  6. #include "ZClasses.sqf";                         //Zombie classes groups
  7. #include "TriggerPositions.sqf";                 //Trigger positions
  8. // EDIT BELOW
  9.  
  10. //Global Settings
  11. ZombieSide                                  = WEST;                 // zombie team side east, west and Civilian can be used
  12. ZombieSideString                            = "WEST";               // Same thing but in a string.
  13. CorpseDeleteDelay                           = 300;                  // delay before a zombie corpse is deleted.
  14. Debug                                       = true;                 // debug messages.
  15. MinSpawnDistance                            = 50;                   // Closest distance from any player to spawn a zombie.
  16. MaxSpawnDistance                            = 200;                  // Max distance a zombie should spawn from a player.
  17. MaxDistance                                 = 300;                  // Max distance to players before delete.
  18. MaxTime                                     = 30;                   // Max time away from a player before delete.
  19. RemoveZfromTerritory                        = true;                 // Will kill zombies when they get too close to a flag. *(the check is done every MaxTime) will only work with zombies that are configured to avoid territories
  20. TriggerGroupScaling                         = 0.25;                 // 1 player = Groupsize, 2 player in trigger = Groupsize + (GroupSize * TriggerGroupScalling * number of player in the trigger) set at 0 to disable scaling
  21. LightsOff                                   = false;                // Kill all the light on map except the player lights.
  22. HarassingZombieAtNightOnly                  = true;                 // Spawn harassing zombies at night only.
  23. NightStartTime                              = 18;                   // Time at which it is night in hours
  24. NightEndTime                                = 6;                    // Time at which it is no longer night in hours
  25.  
  26. //Explosive zombies          
  27. ExplosiveZombies                            = true;                 // randomly boobie trapped zombies exploding a few seconds after dying.
  28. ExplosiveZombiesRatio                       = 2;                    // percentage of explosive zombies
  29. ExplosiveZombieWarning                      = "IT'S A TRAP !!!";    // Message that will display a few seconds before the explosion of a zombie.
  30. ExplosionDelay                              = 3;                    // self-explanatory
  31. ExplosiveType                               = "Grenade" ;           // "mini_Grenade" for small almost non-lethal explision or "Grenade" Big and dangerous explosion.
  32. ExplosiveRespect                            = 100;                  // Bonus respect for Exploding zombies
  33.  
  34. //Killing zombies settings
  35. EnableMoneyOnKill                           = true;                 // Self Explanatory
  36. EnableRespectOnKill                         = true;                 // Self Explanatory
  37. ZombieMoney                                 = 10;                   // Money per zombie kill
  38. ZombieRespect                               = 25;                   // Respect per zombie kill
  39. RoadKillBonus                               = 50;                   // Bonus Respect if roadkill
  40. MinDistance                                 = 50;                   // Minimal distance for range bonus
  41. CqbDistance                                 = 10;                   // Minimal ditance for close quarter bonus
  42. CqbBonus                                    = 40;                   // Respect for close quarter bonus at 1 meter
  43. DistanceBonusDivider                        = 10;                   // Distance divided by that number = respect E.G. 300m / [20] = 15 Respect
  44.  
  45. //Zombie settings : SET TO -1 TO DISABLE AND USE DEFAULT FROM RYANZOMBIES
  46. _Ryanzombieshealth                          = 0.8;                  // Health, *(initial damage level 0 is no damage 1 is dead)
  47. _Ryanzombieshealthdemon                     = 0.5;                  // Health, *(initial damage level 0 is no damage 1 is dead)
  48. _Ryanzombiesattackspeed                     = 1.5;                  // Attack speed, *(Time is seconds between attacks)
  49. _Ryanzombiesattackdistance                  = 2;                    // Attack distance, *(in meters)
  50. _Ryanzombiesattackstrenth                   = 0;                    // Attack strength *(Knockback strength) *(TYPO IS NORMAL)
  51. _Ryanzombiesdamage                          = 0.09;                 // Attack damage *(% of players life per hit, 1 is 100%)
  52. _Ryanzombiesdamagecar                       = 0.05;                 // Attack damage to car *(% of car health per hit, 1 is 100%)
  53. _Ryanzombiesdamageair                       = 0.01;                 // Attack damage to air *(% of car health per hit, 1 is 100%)
  54. _Ryanzombiesdamagetank                      = 0.005;                // Attack damage to tank *(% of car health per hit, 1 is 100%)
  55. _Ryanzombiesdamagecarstrenth                = 1.5;                  // Car attack strength *(Knockback strength in M/S)
  56. _Ryanzombiesdamageairstrenth                = 1;                    // Air attack strength *(Knockback strength M/S)
  57. _Ryanzombiesdamagetankstrenth               = 0.4;                  // Tank attack strength *(Knockback strength M/S)
  58.                                                    
  59. _Ryanzombiescanthrow                        = -1;                   // Enable or disable Throwing for zombies
  60. _Ryanzombiescanthrowtank                    = -1;                   // Enable or disable Throwing tank for zombies                                              
  61. _Ryanzombiescanthrowdistance                = 10;                   // Max throw distance
  62. _Ryanzombiescanthrowtankdistance            = 0;                    // Max throw distance for tanks                        
  63.                                                    
  64. _Ryanzombiescanthrowdemon                   = 1;                    // Enable or disable Throwing for demons
  65. _Ryanzombiescanthrowtankdemon               = 1;                    // Enable or disable Throwing tank for demons
  66. _Ryanzombiescanthrowdistancedemon           = 50;                   // Max throw distance demon
  67. _Ryanzombiescanthrowtankdistancedemon       = 10;                   // Max throw distance for tanks      
  68.  
  69. _ryanzombiesdisablebleeding                 = -1;                   // 1 to DISABLE player bleeding on hit, -1 to ENABLE player bleeding on hit.
  70. _ryanzombiesstartinganim                    = 1;                    // Enable Spawning animation
  71. _ryanzombieslimit                           = 100;                  // Player detection distance in meters
  72.        
  73. _ryanzombiesdisablemoaning                  = 1;                    // No idle sound
  74. _ryanzombiesdisableaggressive               = -1;                   // No aggressive sounds
  75. _ryanzombiescivilianattacks                 = 1;                    // Attack civilians
  76. _Ryanzombieslogicroam                       = 1;                    // Roam ***roaming can be heavy on cpu
  77. _Ryanzombieslogicroamdemon                  = -1;                   // Demon Roam
  78.                                                  
  79. _Ryanzombiesjump                            = -1;                   //Jumping Zombies
  80. _Ryanzombiesjumpdemon                       = 1;                    //Jumping Demons
  81.                                                  
  82. _Ryanzombiesfeed                            = -1;                   //Feeding Zombies
  83. _Ryanzombiesfeeddemon                       = 1;                    //Feeding Demons
  84.                                                  
  85. _Ryanzombiesinfection                       = -1;                   //Enable infections *(-1 to disable)
  86. _ryanzombiesinfectedchance                  = 10;                   //Precent chances to be infected on hit
  87. _ryanzombiesinfectedrate                    = 0.05;                 //Damage per minute when infected (+/- 30 minutes to live)
  88. _ryanzombiesinfectedsymptoms                = 0.9;                  //Symptomes showed when infected 0.9 = Normal 0.7 = Less 0.5 = None
  89. _ryanzombiesinfecteddeath                   = 0.9;                  //0.9 = Scream on death 0.7 = Silent death
  90. _ryanzombiesantivirusduration               = 300;                  //Antivirus duration *(5 minutes)
  91.  
  92. //http://steamcommunity.com/sharedfiles/filedetails/?id=614815221 must be installed on the client for the cure to work
  93. //You also need to overide an Exile script, Details here : http://www.exilemod.com/topic/10999-rz-infection-for-exile/
  94.  
  95. _ryanzombiesmovementspeedwalker             = 1;                    //Animation speed for walker zombies
  96. _ryanzombiesmovementspeedslow               = 1;                    //Animation speed for slow zombies
  97. _ryanzombiesmovementspeedmedium             = 1;                    //Animation speed for medium zombies
  98. _ryanzombiesmovementspeedfast               = 1;                    //Animation speed for fast zombies
  99. _ryanzombiesmovementspeeddemon              = 1;                    //Animation speed for demons
  100. _ryanzombiesmovementspeedspider             = 1;                    //Animation speed for spider
  101. _ryanzombiesmovementspeedcrawler            = 1;                    //Animation speed for crawler
  102.  
  103.  
  104. //Default Altis SafeZones
  105. SafeZonePositions =
  106. [//  [[Coordinates],Radius]  // You can Get the safezone information directly from your mission.sqm under class Markers
  107.   [[11367,8725],300],
  108.   [[10570,4963],300],
  109.   [[9286,17606],300]
  110. ];
  111.  
  112. UseHarassingZombies          = true;             //
  113.  
  114. HSet = [
  115. /* 0 Groups Size  */         2,                  // maximum number of zombies around a player
  116. /* 1 Frequency */            180,                // time in seconds between each new zombie.
  117. /* 2 Vest group */           Nothing,            // Vest function defined in ZVest.sqf
  118. /* 3 Loot group */           Nothing,            // Loot function defined in ZLoot.sqf
  119. /* 4 Zombie group */         Easy,               // Group function defined in ZClasses.sqf
  120. /* 5 Avoid Territory */      true                // Zombie will not spawn in territories and will die in them if RemoveZfromTerritory is true
  121. ];
  122.  
  123. UseHorde                     = true;             // Use the horde spawner            
  124.  
  125. HordeSet = [
  126. /* 0 Groups Size  */         15,                 // maximum number of zombies around a player
  127. /* 1 Min Frequency */        20,                 // min time in minutes between each new zombie horde.
  128. /* 2 Max Frequency */        60,                 // max time in minutes between each new zombie horde.
  129. /* 3 Vest group */           Basic,              // Vest function defined in ZVest.sqf
  130. /* 4 Loot group */           DocAndAmmo,         // Loot function defined in ZLoot.sqf
  131. /* 5 Zombie group */         MediumMix,          // Group function defined in ZClasses.sqf
  132. /* 6 Avoid Territory */      true,               // Zombie will not spawn in territories and will die in them if RemoveZfromTerritory is true
  133. /* 7 Horde density */        25                  // Radius in which the zombies will spawn should be lower than Min Spawn Distance.
  134. ];
  135.  
  136. UseTriggers                  = true;             //use the trigger system.
  137.  
  138. //place loot boxes and mission script here
  139. triggerMission = compile preprocessFile "exilez\init\zmission.sqf";
  140. triggerLootbox = compile preprocessFile "exilez\init\zmissionloot.sqf";
  141.  
  142. Trigger_0 = [                //Cities
  143. /* 0  Use this trigger */    True,               // Self - explanatory
  144. /* 1  Trigger Positions */   MainCitiesOnly,     // The name of the array used to list all trigger position in the TriggerPositions.sqf file
  145. /* 2  Max Zombies */         10,                 // The maximum number of zombies for that trigger.
  146. /* 3  Activation Delay */    15,                 // The delay before the activation of the trigger.
  147. /* 4  Spawn Delay */         15,                 // The delay between each zombie spawn right after the activation until the Max group size is reached.
  148. /* 5  Respawn Delay */       60,                 // The respawn delay after the max group size was reached
  149. /* 6  Show Trigger On Map */ true,               // Put a marker at the location and radius of the trigger on the map
  150. /* 7  Marker Color */        "ColorRed",         // Color of the trigger
  151. /* 8  MarkerBrush */         "Solid",            // "Solid","SolidFull","Horizontal","Vertical","Grid","FDiagonal","BDiagonal","DiagGrid","Cross","Border","SolidBorder"
  152. /* 9  Marker Alpha */        0.3,                // Alpha of the trigger *(0 is invisible 1 is opaque)
  153. /* 10 Marker Text */         "",                 // The text on the trigger
  154. /* 11 Vest group */         Basic,              // The name of the Array used to list all the possible vest for that trigger. ZVest.sqf
  155. /* 12 Loot group */         Useful,             // The name of the Array used to list all the possible loot for that trigger. ZLoot.sqf
  156. /* 13 Zombie group */       MediumCiv,          // The name of the Group used to list the zombies possible for that trigger.  ZClasses.sqf
  157. /* 14 Avoid Territory */     false,              // Zombie will not spawn in territories and will die in them if RemoveZfromTerritory is true
  158. /* 15 Mission Radius */      0,                  // Up to how far from the center of the trigger the mission LOOT can spawn.
  159. /* 16 Mission SQF */         nil,                // The location of the Mission file related to that trigger *(use M3Editor to create the file.) THIS IS STATIC AND WILL NOT MOVE WITH THE TRIGGER
  160. /* 17 Loot Box */            nil                 // The location of the Missionloot file related to that trigger *(See example file zmissionloot.sqf)
  161. ];
  162.  
  163. Trigger_1 = [                //Cities
  164. /* 0  Use this trigger */    True,               // Self - explanatory
  165. /* 1  Trigger Positions */   Cities,             // The name of the array used to list all trigger position in the TriggerPositions.sqf file
  166. /* 2  Max Zombies */         10,                 // The maximum number of zombies for that trigger.
  167. /* 3  Activation Delay */    15,                 // The delay before the activation of the trigger.
  168. /* 4  Spawn Delay */         15,                 // The delay between each zombie spawn right after the activation until the Max group size is reached.
  169. /* 5  Respawn Delay */       60,                 // The respawn delay after the max group size was reached
  170. /* 6  Show Trigger On Map */ true,               // Put a marker at the location and radius of the trigger on the map
  171. /* 7  Marker Color */        "ColorRed",         // Color of the trigger
  172. /* 8  MarkerBrush */         "Solid",            // "Solid","SolidFull","Horizontal","Vertical","Grid","FDiagonal","BDiagonal","DiagGrid","Cross","Border","SolidBorder"
  173. /* 9  Marker Alpha */        0.3,                // Alpha of the trigger *(0 is invisible 1 is opaque)
  174. /* 10 Marker Text */         "",                 // The text on the trigger
  175. /* 11 Vest group */         Basic,              // The name of the Array used to list all the possible vest for that trigger. ZVest.sqf
  176. /* 12 Loot group */         Useful,             // The name of the Array used to list all the possible loot for that trigger. ZLoot.sqf
  177. /* 13 Zombie group */       MediumCiv,          // The name of the Group used to list the zombies possible for that trigger.  ZClasses.sqf
  178. /* 14 Avoid Territory */     false,              // Zombie will not spawn in territories and will die in them if RemoveZfromTerritory is true
  179. /* 15 Mission Radius */      0,                  // Up to how far from the center of the trigger the mission LOOT can spawn.
  180. /* 16 Mission SQF */         nil,                // The location of the Mission file related to that trigger *(use M3Editor to create the file.) THIS IS STATIC AND WILL NOT MOVE WITH THE TRIGGER
  181. /* 17 Loot Box */            nil                 // The location of the Missionloot file related to that trigger *(See example file zmissionloot.sqf)
  182. ];
  183.  
  184. Trigger_2 = [                //Military
  185. /* 0  Use this trigger */    True,              
  186. /* 1  Trigger Positions */   Military,        
  187. /* 2  Max Zombies */         10,                
  188. /* 3  Activation Delay */    15,                
  189. /* 4  Spawn Delay */         15,                
  190. /* 5  Respawn Delay */       45,                
  191. /* 6  Show Trigger On Map */ true,              
  192. /* 7  Marker Color */        "ColorRed",        
  193. /* 8  MarkerBrush */         "Solid",            
  194. /* 9  Marker Alpha */        0.2,                
  195. /* 10 Marker Text */         "",                
  196. /* 11 Vest group */         Basic,              
  197. /* 12 Loot group */         Useful,            
  198. /* 13 Zombie group */       MediumMil,          
  199. /* 14 Avoid Territory */     false,              
  200. /* 15 Mission Radius */      0,                  
  201. /* 16 Mission SQF */         nil,                
  202. /* 17 Loot Box */            nil                
  203. ];
  204.  
  205. Trigger_3 = [                //No Buildings
  206. /* 0  Use this trigger */    True,              
  207. /* 1  Trigger Positions */   NoBuildings,        
  208. /* 2  Max Zombies */         10,                
  209. /* 3  Activation Delay */    15,                
  210. /* 4  Spawn Delay */         15,                
  211. /* 5  Respawn Delay */       60,                
  212. /* 6  Show Trigger On Map */ true,              
  213. /* 7  Marker Color */        "ColorRed",        
  214. /* 8  MarkerBrush */         "Solid",            
  215. /* 9  Marker Alpha */        0.2,                
  216. /* 10 Marker Text */         "",                
  217. /* 11 Vest group */         Basic,              
  218. /* 12 Loot group */         Useful,            
  219. /* 13 Zombie group */       MediumMix,          
  220. /* 14 Avoid Territory */     false,              
  221. /* 15 Mission Radius */      0,                  
  222. /* 16 Mission SQF */         nil,                
  223. /* 17 Loot Box */            nil                
  224. ];
  225.  
  226. Trigger_4 = [                //No Man Land
  227. /* 0  Use this trigger */    True,              
  228. /* 1  Trigger Positions */   NoMansLand,      
  229. /* 2  Max Zombies */         10,                
  230. /* 3  Activation Delay */    15,                
  231. /* 4  Spawn Delay */         15,                
  232. /* 5  Respawn Delay */       30,                
  233. /* 6  Show Trigger On Map */ true,              
  234. /* 7  Marker Color */        "ColorRed",        
  235. /* 8  MarkerBrush */         "DiagGrid",            
  236. /* 9  Marker Alpha */        0.2,                
  237. /* 10 Marker Text */         "",                
  238. /* 11 Vest group */         Basic,              
  239. /* 12 Loot group */         DocAndAmmo,        
  240. /* 13 Zombie group */       Hard,              
  241. /* 14 Avoid Territory */     false,              
  242. /* 15 Mission Radius */      0,                  
  243. /* 16 Mission SQF */         nil,                
  244. /* 17 Loot Box */            nil                
  245. ];
  246.  
  247. Trigger_5 = [                //Mission Trigger
  248. /* 0  Use this trigger */    True,              
  249. /* 1  Trigger Positions */   Mission,            
  250. /* 2  Max Zombies */         15,                
  251. /* 3  Activation Delay */    5,                  
  252. /* 4  Spawn Delay */         5,                  
  253. /* 5  Respawn Delay */       5,                  
  254. /* 6  Show Trigger On Map */ true,              
  255. /* 7  Marker Color */        "ColorYellow",      
  256. /* 8  MarkerBrush */         "Solid",            
  257. /* 9  Marker Alpha */        0.5,                
  258. /* 10 Marker Text */         "LOOT & DEATH",    
  259. /* 11 Vest group */         Basic,              
  260. /* 12 Loot group */         DocAndAmmo,        
  261. /* 13 Zombie group */       Hardcore,          
  262. /* 14 Avoid Territory */     false,              
  263. /* 15 Mission Radius */      1500,              
  264. /* 16 Mission SQF */         triggerMission,    
  265. /* 17 Loot Box */           triggerLootbox    
  266. ];
  267.  
  268. // List all the trigger group to use here.
  269. Triggers = [Trigger_0,Trigger_1,Trigger_2,Trigger_3,Trigger_4,Trigger_5];
  270.  
  271. // DON'T EDIT BELOW
  272.  
  273. #include "code\post_init.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement