Advertisement
Guest User

Untitled

a guest
Sep 28th, 2017
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. class CfgExileAnimals
  2. {
  3. /**
  4. * Should animals spawn on your server? Y/N?
  5. */
  6. enabled = 1;
  7.  
  8. /**
  9. * Should vanilla Arma animals (fish, rabbits, bees, etc.) be disabled?
  10. * We think it should, since it might confuse players if they cant eat them. *munches on bees*
  11. */
  12. disableVanillaAnimals = 1;
  13.  
  14. /**
  15. * Which animals to spawn.
  16. * Exile automatically spawns a color variation of that animal, if variations exist.
  17. * Each player (client) has a maximum of one animal at a time.
  18. * Exile checks which animal type can spawn in front of the player and then
  19. * picks a random one.
  20. *
  21. * For now it is like this:
  22. *
  23. * - Goats spawn on hill tops, but not in forests
  24. * - Sheep spawn on meadows, but not next to forests and not on hill tops
  25. * - Hens and roosters spawn next to buildings only
  26. *
  27. * => More animal types will follow in upcoming Exile versions, hopefully.
  28. */
  29. animalTypes[] =
  30. {
  31. "Exile_Animal_Rooster_Abstract",
  32. "Exile_Animal_Hen_Abstract",
  33. "Exile_Animal_Goat_Abstract",
  34. "Exile_Animal_Sheep_Abstract"
  35. };
  36.  
  37. /**
  38. * Animals are always spawned in front of the player, but
  39. * at least a certain distance away. The radius is applied on top.
  40. *
  41. * Example:
  42. * Distance = 150
  43. * Radius = 50
  44. *
  45. * => Minimum Distance from Player = 150
  46. * => Maximum Distance from Player = 150 + 50 * 2
  47. */
  48. spawnDistance = 100;
  49. spawnRadius = 50;
  50.  
  51. /**
  52. * Specifies the minimum time in seconds between spawning animals.
  53. * When the animal diededed, this time has to pass before it spawns
  54. * a new one.
  55. *
  56. * It is a min/max setting, so the intervals will be uneven and a bit random.
  57. * By default it will take 5 to 10 minutes to respawn a new animal.
  58. */
  59. minimumSpawnDelay = 5 * 60;
  60. maximumSpawnDelay = 10 * 60;
  61.  
  62. /**
  63. * Clients will despawn animals if no player is in this radius around the animal
  64. * This check is ran every 1 minute, so it is pretty unprecise, but performance-friendly.
  65. */
  66. keepAliveRadius = 500;
  67.  
  68. /**
  69. * Defines the minimum lifetime of an animal in seconds. During this time, right after spawning,
  70. * it will not despawn. (+-0..1 minute delay)
  71. */
  72. minimumLifetime = 5 * 60;
  73. };
  74.  
  75. class Animal
  76. {
  77. targetType = 2;
  78. target = "Exile_Animal_Abstract";
  79.  
  80. class Actions
  81. {
  82. class Gut: ExileAbstractAction
  83. {
  84. title = "Gut Animal";
  85. condition = "!(alive ExileClientInteractionObject) && (ExileClientInteractionObject getVariable ['CanBeGutted', false])";
  86. action = "['GutAnimal', ExileClientInteractionObject] call ExileClient_action_execute";
  87. };
  88. };
  89. };
  90. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement