Advertisement
Guest User

fn_init.sqf

a guest
May 11th, 2016
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 13.29 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                   = EAST;             // zombie team side east, west and Civilian can be used
  12. ZombieSideString             = "EAST";           // Same thing but in a string.
  13. CorpseDeleteDelay            = 300;              // delay before a zombie corpse is deleted.
  14. Debug                        = false;             // debug messages.
  15. MinSpawnDistance             = 20;               // Closest distance from any player to spawn a zombie.
  16. MaxSpawnDistance             = 160;              // Max distance a zombie should spawn from a player.
  17. MaxDistance                  = 150;              // 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                    = true;             // Kill all the light on map except the player lights.
  22. HarassingZombieAtNightOnly   = false;             // 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             = false;             // 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                  = 5;                // Money per zombie kill
  38. ZombieRespect                = 10;               // Respect per zombie kill
  39. RoadKillBonus                = 10;               // 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.  
  108. ];
  109.  
  110. UseHarassingZombies          = true;             //
  111.  
  112. HSet = [
  113. /* 0 Groups Size  */         10,                  // maximum number of zombies around a player
  114. /* 1 Frequency */            300,                // time in seconds between each new zombie.
  115. /* 2 Vest group */           Nothing,            // Vest function defined in ZVest.sqf
  116. /* 3 Loot group */           Nothing,            // Loot function defined in ZLoot.sqf
  117. /* 4 Zombie group */         Easy,               // Group function defined in ZClasses.sqf
  118. /* 5 Avoid Territory */      true                // Zombie will not spawn in territories and will die in them if RemoveZfromTerritory is true
  119. ];
  120.  
  121. UseHorde                     = true;             // Use the horde spawner            
  122.  
  123. HordeSet = [
  124. /* 0 Groups Size  */         15,                 // maximum number of zombies around a player
  125. /* 1 Min Frequency */        20,                 // min time in minutes between each new zombie horde.
  126. /* 2 Max Frequency */        60,                 // max time in minutes between each new zombie horde.
  127. /* 3 Vest group */           Basic,              // Vest function defined in ZVest.sqf
  128. /* 4 Loot group */           DocAndAmmo,         // Loot function defined in ZLoot.sqf
  129. /* 5 Zombie group */         MediumMix,          // Group function defined in ZClasses.sqf
  130. /* 6 Avoid Territory */      true,               // Zombie will not spawn in territories and will die in them if RemoveZfromTerritory is true
  131. /* 7 Horde density */        25                  // Radius in which the zombies will spawn should be lower than Min Spawn Distance.
  132. ];
  133.  
  134. UseTriggers                  = true;             //use the trigger system.
  135.  
  136. //place loot boxes and mission script here
  137. triggerMission = compile preprocessFile "exilez\init\zmission.sqf";
  138. triggerLootbox = compile preprocessFile "exilez\init\zmissionloot.sqf";
  139.  
  140.  
  141. Trigger_1 = [                //Cities
  142. /* 0  Use this trigger */    True,               // Self - explanatory
  143. /* 1  Trigger Positions */   Cities,             // The name of the array used to list all trigger position in the TriggerPositions.sqf file
  144. /* 2  Max Zombies */         17,                 // The maximum number of zombies for that trigger.
  145. /* 3  Activation Delay */    15,                 // The delay before the activation of the trigger.
  146. /* 4  Spawn Delay */         10,                 // The delay between each zombie spawn right after the activation until the Max group size is reached.
  147. /* 5  Respawn Delay */       60,                 // The respawn delay after the max group size was reached
  148. /* 6  Show Trigger On Map */ false,               // Put a marker at the location and radius of the trigger on the map
  149. /* 7  Marker Color */        "ColorRed",         // Color of the trigger
  150. /* 8  MarkerBrush */         "Solid",            // "Solid","SolidFull","Horizontal","Vertical","Grid","FDiagonal","BDiagonal","DiagGrid","Cross","Border","SolidBorder"
  151. /* 9  Marker Alpha */        0.2,                // Alpha of the trigger *(0 is invisible 1 is opaque)
  152. /* 10 Marker Text */         "",                 // The text on the trigger
  153. /* 11 Vest group */         Basic,              // The name of the Array used to list all the possible vest for that trigger. ZVest.sqf
  154. /* 12 Loot group */         Useful,             // The name of the Array used to list all the possible loot for that trigger. ZLoot.sqf
  155. /* 13 Zombie group */       MediumCiv,          // The name of the Group used to list the zombies possible for that trigger.  ZClasses.sqf
  156. /* 14 Avoid Territory */     false,              // Zombie will not spawn in territories and will die in them if RemoveZfromTerritory is true
  157. /* 15 Mission Radius */      0,                  // Up to how far from the center of the trigger the mission LOOT can spawn.
  158. /* 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
  159. /* 17 Loot Box */            nil                 // The location of the Missionloot file related to that trigger *(See example file zmissionloot.sqf)
  160. ];
  161.  
  162. Trigger_2 = [                //Military
  163. /* 0  Use this trigger */    True,              
  164. /* 1  Trigger Positions */   Military,        
  165. /* 2  Max Zombies */         17,                
  166. /* 3  Activation Delay */    15,                
  167. /* 4  Spawn Delay */         10,                
  168. /* 5  Respawn Delay */       45,                
  169. /* 6  Show Trigger On Map */ true,              
  170. /* 7  Marker Color */        "ColorRed",        
  171. /* 8  MarkerBrush */         "Solid",            
  172. /* 9  Marker Alpha */        0.2,                
  173. /* 10 Marker Text */         "",                
  174. /* 11 Vest group */         Basic,              
  175. /* 12 Loot group */         Useful,            
  176. /* 13 Zombie group */       MediumMil,          
  177. /* 14 Avoid Territory */     false,              
  178. /* 15 Mission Radius */      0,                  
  179. /* 16 Mission SQF */         nil,                
  180. /* 17 Loot Box */            nil                
  181. ];
  182.  
  183.  
  184. // List all the trigger group to use here.
  185. Triggers = [Trigger_1,Trigger_2];
  186.  
  187. // DON'T EDIT BELOW
  188.  
  189. #include "code\post_init.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement