Guest User

Untitled

a guest
Jan 30th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.49 KB | None | 0 0
  1. class CfgPatches
  2. {
  3. class ryanzombiesfunctions
  4. {
  5. units[]={RyanZM_ModuleSpawn, RyanZM_ModuleSpawner, RyanZM_ModuleSpawnerDemon, RyanZM_ModuleZombieHealth, RyanZM_ModuleZombieDeletion, RyanZM_ModuleInfection, RyanZM_ModuleCustomDifficulty, RyanZM_ModuleInfected};
  6. weapons[]={};
  7. requiredVersion=0;
  8. requiredAddons[]=
  9. {
  10. "A3_Modules_F"
  11. };
  12. version="1.0";
  13. projectName="ryanzombiesfunctions";
  14. author="Ryan";
  15. };
  16. };
  17.  
  18. class CfgVehicles
  19. {
  20. class Logic;
  21. class Module_F: Logic
  22. {
  23. class ModuleDescription;
  24. };
  25. class RyanZM_ModuleSpawn: Module_F
  26. {
  27. author="Ryan";
  28. scope=2;
  29. mapSize=2;
  30. displayName="Spawner";
  31. icon="\Ryanzombies\icon.paa";
  32. category="Ryanzombiesfactionmodule";
  33. function="RyanZM_fnc_rzfunctionspawn";
  34. isGlobal=1;
  35. class Arguments
  36. {
  37. class Side
  38. {
  39. displayName="Side";
  40. description="Zombies will spawn on the selected side.";
  41. typeName="Number";
  42. class values
  43. {
  44. class indep {name = "Independent"; value = 0.9; default = 1;};
  45. class opfor {name = "Opfor"; value = 0.7; default = 0;};
  46. class blufor {name = "Blufor"; value = 0.5; default = 0;};
  47. };
  48. };
  49. class Type
  50. {
  51. displayName="Type";
  52. description="Type of zombies that will be spawned.";
  53. typeName="Number";
  54. class values
  55. {
  56. class type0 {name = "Manually Add"; value = 0.95; default = 0;};
  57. class type1 {name = "Fast - Civilians"; value = 0.9; default = 1;};
  58. class type2 {name = "Fast - Soldiers"; value = 0.85; default = 0;};
  59. class type3 {name = "Fast - Civilians & Soldiers"; value = 0.8; default = 0;};
  60. class type4 {name = "Medium - Civilians"; value = 0.75; default = 0;};
  61. class type5 {name = "Medium - Soldiers"; value = 0.7; default = 0;};
  62. class type6 {name = "Medium - Civilians & Soldiers"; value = 0.65; default = 0;};
  63. class type7 {name = "Slow - Civilians"; value = 0.6; default = 0;};
  64. class type8 {name = "Slow - Soldiers"; value = 0.55; default = 0;};
  65. class type9 {name = "Slow - Civilians & Soldiers"; value = 0.5; default = 0;};
  66. class type10 {name = "Demons"; value = 0.45; default = 0;};
  67. class type11 {name = "Spider Zombies"; value = 0.4; default = 0;};
  68. class type14 {name = "Brittle Crawlers"; value = 0.37; default = 0;};
  69. class type12 {name = "Zombies (MIXED)"; value = 0.35; default = 0;};
  70. class type13 {name = "Zombies (MIXED) - No Spiders"; value = 0.3; default = 0;};
  71. };
  72. };
  73. class Type2
  74. {
  75. displayName="Type";
  76. description="The selected option will also be added to the type of zombies that will be spawned.";
  77. typeName="Number";
  78. class values
  79. {
  80. class type0 {name = "Same As Above"; value = 0.95; default = 1;};
  81. class type1 {name = "Fast - Civilians"; value = 0.9; default = 0;};
  82. class type2 {name = "Fast - Soldiers"; value = 0.85; default = 0;};
  83. class type3 {name = "Fast - Civilians & Soldiers"; value = 0.8; default = 0;};
  84. class type4 {name = "Medium - Civilians"; value = 0.75; default = 0;};
  85. class type5 {name = "Medium - Soldiers"; value = 0.7; default = 0;};
  86. class type6 {name = "Medium - Civilians & Soldiers"; value = 0.65; default = 0;};
  87. class type7 {name = "Slow - Civilians"; value = 0.6; default = 0;};
  88. class type8 {name = "Slow - Soldiers"; value = 0.55; default = 0;};
  89. class type9 {name = "Slow - Civilians & Soldiers"; value = 0.5; default = 0;};
  90. class type10 {name = "Demons"; value = 0.45; default = 0;};
  91. class type11 {name = "Spider Zombies"; value = 0.4; default = 0;};
  92. class type14 {name = "Brittle Crawlers"; value = 0.37; default = 0;};
  93. class type12 {name = "Zombies (MIXED)"; value = 0.35; default = 0;};
  94. class type13 {name = "Zombies (MIXED) - No Spiders"; value = 0.3; default = 0;};
  95. };
  96. };
  97. class Type3
  98. {
  99. displayName="Type";
  100. description="The selected option will also be added to the type of zombies that will be spawned.";
  101. typeName="Number";
  102. class values
  103. {
  104. class type0 {name = "Same As Above"; value = 0.95; default = 1;};
  105. class type1 {name = "Fast - Civilians"; value = 0.9; default = 0;};
  106. class type2 {name = "Fast - Soldiers"; value = 0.85; default = 0;};
  107. class type3 {name = "Fast - Civilians & Soldiers"; value = 0.8; default = 0;};
  108. class type4 {name = "Medium - Civilians"; value = 0.75; default = 0;};
  109. class type5 {name = "Medium - Soldiers"; value = 0.7; default = 0;};
  110. class type6 {name = "Medium - Civilians & Soldiers"; value = 0.65; default = 0;};
  111. class type7 {name = "Slow - Civilians"; value = 0.6; default = 0;};
  112. class type8 {name = "Slow - Soldiers"; value = 0.55; default = 0;};
  113. class type9 {name = "Slow - Civilians & Soldiers"; value = 0.5; default = 0;};
  114. class type10 {name = "Demons"; value = 0.45; default = 0;};
  115. class type11 {name = "Spider Zombies"; value = 0.4; default = 0;};
  116. class type14 {name = "Brittle Crawlers"; value = 0.37; default = 0;};
  117. class type12 {name = "Zombies (MIXED)"; value = 0.35; default = 0;};
  118. class type13 {name = "Zombies (MIXED) - No Spiders"; value = 0.3; default = 0;};
  119. };
  120. };
  121. class Type4
  122. {
  123. displayName="Type (Manually Add)";
  124. description="Manually write out an array of zombie class names (square brackets at the start and end with quotes for each class) to be spawned.";
  125. defaultValue=;
  126. };
  127. class Activation
  128. {
  129. displayName="Activation";
  130. description="Zombies will only spawn based on the selected option.";
  131. typeName="Number";
  132. class values
  133. {
  134. class normal {name = "Default (Always)"; value = 0.9; default = 1;};
  135. class blufor {name = "Blufor Present"; value = 0.7; default = 0;};
  136. class opfor {name = "Opfor Present"; value = 0.5; default = 0;};
  137. class indep {name = "Independent Present"; value = 0.3; default = 0;};
  138. class civil {name = "Civilian Present"; value = 0.1; default = 0;};
  139. };
  140. };
  141. class Activation2
  142. {
  143. displayName="Activation";
  144. description="Zombies will only spawn based on the selected option.";
  145. typeName="Number";
  146. class values
  147. {
  148. class normal {name = "Same As Above"; value = 0.9; default = 1;};
  149. class blufor {name = "Blufor Present"; value = 0.7; default = 0;};
  150. class opfor {name = "Opfor Present"; value = 0.5; default = 0;};
  151. class indep {name = "Independent Present"; value = 0.3; default = 0;};
  152. class civil {name = "Civilian Present"; value = 0.1; default = 0;};
  153. };
  154. };
  155. class Activation3
  156. {
  157. displayName="Activation";
  158. description="Zombies will only spawn based on the selected option.";
  159. typeName="Number";
  160. class values
  161. {
  162. class normal {name = "Same As Above"; value = 0.9; default = 1;};
  163. class blufor {name = "Blufor Present"; value = 0.7; default = 0;};
  164. class opfor {name = "Opfor Present"; value = 0.5; default = 0;};
  165. class indep {name = "Independent Present"; value = 0.3; default = 0;};
  166. class civil {name = "Civilian Present"; value = 0.1; default = 0;};
  167. };
  168. };
  169. class ActivationRadius
  170. {
  171. displayName="Activation Radius";
  172. description="Distance in metres the selected side must be present to the spawner. Nothing changes if default is selected.";
  173. typeName="Number";
  174. defaultValue=100;
  175. };
  176. class AliveAmount
  177. {
  178. displayName="Alive Zombies Cap";
  179. description="When the limit is reached, spawning is paused until a zombie dies.";
  180. typeName="Number";
  181. defaultValue=100;
  182. };
  183. class TotalAmount
  184. {
  185. displayName="Total Zombies Cap";
  186. description="When the limit is reached, spawning is stopped completely.";
  187. typeName="Number";
  188. defaultValue=10000;
  189. };
  190. class Start
  191. {
  192. displayName="First Horde Delay";
  193. description="The delay in seconds before this spawner starts working.";
  194. typeName="Number";
  195. defaultValue=5;
  196. };
  197. class Frequency
  198. {
  199. displayName="Spawned Horde Delay";
  200. description="The delay in seconds before a new horde starts spawning.";
  201. typeName="Number";
  202. defaultValue=60;
  203. };
  204. class Delay
  205. {
  206. displayName="Spawned Zombie Delay";
  207. description="The delay in seconds between each zombie being spawned into its horde.";
  208. typeName="Number";
  209. defaultValue=0.5;
  210. };
  211. class Density
  212. {
  213. displayName="Spawned Horde Density";
  214. description="A random distance in metres zombies will spawn from the spawner.";
  215. typeName="Number";
  216. defaultValue=0;
  217. };
  218. class HordeSize
  219. {
  220. displayName="Zombies Per Horde";
  221. description="The amount of zombies spawned into each horde.";
  222. typeName="Number";
  223. defaultValue=14;
  224. };
  225. };
  226. class ModuleDescription: ModuleDescription
  227. {
  228. position=1;
  229. description="This module will spawn zombies wherever you place it. The settings you choose only affect this spawner.";
  230. };
  231. };
  232. class RyanZM_ModuleSpawner: Module_F
  233. {
  234. author="Ryan";
  235. scope=2;
  236. mapSize=2;
  237. displayName="Game Logic Spawner Settings: Zombies";
  238. icon="\Ryanzombies\icon.paa";
  239. category="Ryanzombiesfactionmodule";
  240. function="RyanZM_fnc_rzfunctionspawner";
  241. isGlobal=1;
  242. class Arguments
  243. {
  244. class Amount
  245. {
  246. displayName="Alive Zombies Cap";
  247. description="When the limit is reached, spawning is paused until a zombie dies.";
  248. typeName="Number";
  249. defaultValue=100;
  250. };
  251. class TotalAmount
  252. {
  253. displayName="Total Zombies Cap";
  254. description="When the limit is reached, spawning is stopped completely.";
  255. typeName="Number";
  256. defaultValue=10000;
  257. };
  258. class Start
  259. {
  260. displayName="First Horde Delay";
  261. description="The delay in seconds before the spawner starts working.";
  262. typeName="Number";
  263. defaultValue=5;
  264. };
  265. class Frequency
  266. {
  267. displayName="Spawned Horde Delay";
  268. description="The delay in seconds before a new horde starts spawning.";
  269. typeName="Number";
  270. defaultValue=60;
  271. };
  272. class Delay
  273. {
  274. displayName="Spawned Zombie Delay";
  275. description="The delay in seconds between each zombie being spawned into its horde.";
  276. typeName="Number";
  277. defaultValue=0.5;
  278. };
  279. class Density
  280. {
  281. displayName="Spawned Horde Density";
  282. description="A random distance in metres zombies will spawn from the game logic.";
  283. typeName="Number";
  284. defaultValue=0;
  285. };
  286. class Activation
  287. {
  288. displayName="Activation";
  289. description="Zombies will only spawn based on the selected option.";
  290. typeName="Number";
  291. class values
  292. {
  293. class normal {name = "Default (Always)"; value = 0.9; default = 1;};
  294. class blufor {name = "Blufor Present"; value = 0.7; default = 0;};
  295. class opfor {name = "Opfor Present"; value = 0.5; default = 0;};
  296. class indep {name = "Independent Present"; value = 0.3; default = 0;};
  297. };
  298. };
  299. class ActivationRadius
  300. {
  301. displayName="Activation Radius";
  302. description="Distance in metres the selected side must be present to the spawner. Nothing changes if default is selected.";
  303. typeName="Number";
  304. defaultValue=100;
  305. };
  306. class HordeSize
  307. {
  308. displayName="Zombies Per Horde";
  309. description="The amount of zombies spawned into each horde.";
  310. typeName="Number";
  311. defaultValue=14;
  312. };
  313. };
  314. class ModuleDescription: ModuleDescription
  315. {
  316. position=1;
  317. description="This module changes the way the Horde Spawner Game Logics work for the zombies. The game logics will use the default settings if this module isn't used.";
  318. };
  319. };
  320. class RyanZM_ModuleSpawnerDemon: Module_F
  321. {
  322. author="Ryan";
  323. scope=2;
  324. mapSize=2;
  325. displayName="Game Logic Spawner Settings: Demons";
  326. icon="\Ryanzombies\icon.paa";
  327. category="Ryanzombiesfactionmodule";
  328. function="RyanZM_fnc_rzfunctionspawnerdemon";
  329. isGlobal=1;
  330. class Arguments
  331. {
  332. class Amount
  333. {
  334. displayName="Alive Demons Cap";
  335. description="When the limit is reached, spawning is paused until a demon dies.";
  336. typeName="Number";
  337. defaultValue=100;
  338. };
  339. class TotalAmount
  340. {
  341. displayName="Total Demons Cap";
  342. description="When the limit is reached, spawning is stopped completely.";
  343. typeName="Number";
  344. defaultValue=10000;
  345. };
  346. class Start
  347. {
  348. displayName="First Horde Delay";
  349. description="The delay in seconds before the spawner starts working.";
  350. typeName="Number";
  351. defaultValue=5;
  352. };
  353. class Frequency
  354. {
  355. displayName="Spawned Horde Delay";
  356. description="The delay in seconds before a new horde starts spawning.";
  357. typeName="Number";
  358. defaultValue=60;
  359. };
  360. class Delay
  361. {
  362. displayName="Spawned Demon Delay";
  363. description="The delay in seconds between each demon being spawned into its horde.";
  364. typeName="Number";
  365. defaultValue=0.5;
  366. };
  367. class Density
  368. {
  369. displayName="Spawned Horde Density";
  370. description="A random distance in metres demons will spawn from the game logic.";
  371. typeName="Number";
  372. defaultValue=0;
  373. };
  374. class ActivationDemon
  375. {
  376. displayName="Activation";
  377. description="Demons will only spawn based on the selected option.";
  378. typeName="Number";
  379. class values
  380. {
  381. class normal {name = "Default (Always)"; value = 0.9; default = 1;};
  382. class blufor {name = "Blufor Present"; value = 0.7; default = 0;};
  383. class opfor {name = "Opfor Present"; value = 0.5; default = 0;};
  384. class indep {name = "Independent Present"; value = 0.3; default = 0;};
  385. };
  386. };
  387. class ActivationRadiusDemon
  388. {
  389. displayName="Activation Radius";
  390. description="Distance in metres the selected side must be present to the spawner. Nothing changes if default is selected.";
  391. typeName="Number";
  392. defaultValue=100;
  393. };
  394. class HordeSize
  395. {
  396. displayName="Demons Per Horde";
  397. description="The amount of demons spawned into each horde.";
  398. typeName="Number";
  399. defaultValue=14;
  400. };
  401. };
  402. class ModuleDescription: ModuleDescription
  403. {
  404. position=1;
  405. description="This module changes the way the Horde Spawner Game Logics work for the demons. The game logics will use the default settings if this module isn't used.";
  406. };
  407. };
  408. class RyanZM_ModuleZombieHealth: Module_F
  409. {
  410. author="Ryan";
  411. scope=2;
  412. mapSize=2;
  413. displayName="Max Health Settings";
  414. icon="\Ryanzombies\icon.paa";
  415. category="Ryanzombiesfactionmodule";
  416. function="RyanZM_fnc_rzfunctionzombiehealth";
  417. isGlobal=1;
  418. class Arguments
  419. {
  420. class ZombieMaxHealth
  421. {
  422. displayName="Zombies Max Health";
  423. description="Changes the max health of the zombies.";
  424. typeName="Number";
  425. class values
  426. {
  427. class normal {name = "Default"; value = 0.7; default = 1;};
  428. class stronger {name = "Stronger"; value = 0.5; default = 0;};
  429. class weaker {name = "Weaker"; value = 0.9; default = 0;};
  430. class weakest {name = "Weakest"; value = 0.97; default = 0;};
  431. };
  432. };
  433. class DemonMaxHealth
  434. {
  435. displayName="Demons Max Health";
  436. description="Changes the max health of the demons.";
  437. typeName="Number";
  438. class values
  439. {
  440. class normal {name = "Default"; value = 0.7; default = 1;};
  441. class stronger {name = "Stronger"; value = 0.5; default = 0;};
  442. class weaker {name = "Weaker"; value = 0.9; default = 0;};
  443. class weakest {name = "Weakest"; value = 0.97; default = 0;};
  444. };
  445. };
  446. };
  447. class ModuleDescription: ModuleDescription
  448. {
  449. position=1;
  450. description="This module changes the max health for the zombies and demons. The zombies and demons will have default max health if this module isn't used.";
  451. };
  452. };
  453. class RyanZM_ModuleZombieDeletion: Module_F
  454. {
  455. author="Ryan";
  456. scope=2;
  457. mapSize=2;
  458. displayName="Deletion Settings";
  459. icon="\Ryanzombies\icon.paa";
  460. category="Ryanzombiesfactionmodule";
  461. function="RyanZM_fnc_rzfunctionzombiedeletion";
  462. isGlobal=1;
  463. class Arguments
  464. {
  465. class Deletion
  466. {
  467. displayName="Delete Zombies";
  468. description="Zombies are deleted when the selected side is not present from the zombie.";
  469. typeName="Number";
  470. class values
  471. {
  472. class normal {name = "Default (Never)"; value = 0.9; default = 1;};
  473. class blufor {name = "Blufor Not Present"; value = 0.7; default = 0;};
  474. class opfor {name = "Opfor Not Present"; value = 0.5; default = 0;};
  475. class indep {name = "Independent Not Present"; value = 0.3; default = 0;};
  476. class civil {name = "Civilian Not Present"; value = 0.1; default = 0;};
  477. };
  478. };
  479. class Deletion2
  480. {
  481. displayName="Delete Zombies";
  482. description="Zombies are deleted when the selected side is not present from the zombie.";
  483. typeName="Number";
  484. class values
  485. {
  486. class normal {name = "Same As Above"; value = 0.9; default = 1;};
  487. class blufor {name = "Blufor Not Present"; value = 0.7; default = 0;};
  488. class opfor {name = "Opfor Not Present"; value = 0.5; default = 0;};
  489. class indep {name = "Independent Not Present"; value = 0.3; default = 0;};
  490. class civil {name = "Civilian Not Present"; value = 0.1; default = 0;};
  491. };
  492. };
  493. class DeletionRadius
  494. {
  495. displayName="Delete Zombies Radius";
  496. description="Distance in metres the selected side must be not present to the zombies location. Nothing changes if default is selected.";
  497. typeName="Number";
  498. defaultValue=1000;
  499. };
  500. class DeletionDemons
  501. {
  502. displayName="Delete Demons";
  503. description="Demons are deleted when the selected side is not present from the demon.";
  504. typeName="Number";
  505. class values
  506. {
  507. class normal {name = "Default (Never)"; value = 0.9; default = 1;};
  508. class blufor {name = "Blufor Not Present"; value = 0.7; default = 0;};
  509. class opfor {name = "Opfor Not Present"; value = 0.5; default = 0;};
  510. class indep {name = "Independent Not Present"; value = 0.3; default = 0;};
  511. class civil {name = "Civilian Not Present"; value = 0.1; default = 0;};
  512. };
  513. };
  514. class DeletionDemons2
  515. {
  516. displayName="Delete Demons";
  517. description="Demons are deleted when the selected side is not present from the demon.";
  518. typeName="Number";
  519. class values
  520. {
  521. class normal {name = "Same As Above"; value = 0.9; default = 1;};
  522. class blufor {name = "Blufor Not Present"; value = 0.7; default = 0;};
  523. class opfor {name = "Opfor Not Present"; value = 0.5; default = 0;};
  524. class indep {name = "Independent Not Present"; value = 0.3; default = 0;};
  525. class civil {name = "Civilian Not Present"; value = 0.1; default = 0;};
  526. };
  527. };
  528. class DeletionRadiusDemons
  529. {
  530. displayName="Delete Demons Radius";
  531. description="Distance in metres the selected side must be not present to the demons location. Nothing changes if default is selected.";
  532. typeName="Number";
  533. defaultValue=1000;
  534. };
  535. };
  536. class ModuleDescription: ModuleDescription
  537. {
  538. position=1;
  539. description="This module allows zombies and demons to be deleted if the selected side is not present from the zombie or demons location. Zombies and demons are never deleted if this module isn't used (except for if the 'Dead Bodies Deleted' Game Logic is used).";
  540. };
  541. };
  542. class RyanZM_ModuleInfection: Module_F
  543. {
  544. author="Ryan";
  545. scope=2;
  546. mapSize=2;
  547. displayName="Resurrection Settings";
  548. icon="\Ryanzombies\icon.paa";
  549. category="Ryanzombiesfactionmodule";
  550. function="RyanZM_fnc_rzfunctioninfection";
  551. isGlobal=1;
  552. class Arguments
  553. {
  554. class Infection
  555. {
  556. displayName="Resurrect as";
  557. description="Victims will resurrect into the selected zombie type.";
  558. typeName="Number";
  559. class values
  560. {
  561. class fast {name = "Fast Zombies"; value = 0.9; default = 1;};
  562. class medium {name = "Medium Zombies"; value = 0.7; default = 0;};
  563. class slow {name = "Slow Zombies"; value = 0.5; default = 0;};
  564. class demons {name = "Demons"; value = 0.3; default = 0;};
  565. class spiders {name = "Spider Zombies"; value = 0.1; default = 0;};
  566. class crawlers {name = "Brittle Crawlers"; value = 0.05; default = 0;};
  567. };
  568. };
  569. class InfectionTimer
  570. {
  571. displayName="Resurrection Timer";
  572. description="The time it takes after the victim has died to resurrect.";
  573. typeName="Number";
  574. defaultValue=30;
  575. };
  576. class Uniform
  577. {
  578. displayName="Force Add Uniform";
  579. description="Forces the victims to resurrect with the victims uniform, however this stops the custom animations from working.";
  580. typeName="Number";
  581. class values
  582. {
  583. class no {name = "No"; value = 0.9; default = 1;};
  584. class yes {name = "Yes"; value = 0.7; default = 0;};
  585. };
  586. };
  587. };
  588. class ModuleDescription: ModuleDescription
  589. {
  590. position=1;
  591. description="This module allows victims of zombie attacks to resurrect as zombies.";
  592. };
  593. };
  594. class RyanZM_ModuleLootSettings: Module_F
  595. {
  596. author="Ryan";
  597. scope=2;
  598. mapSize=2;
  599. displayName="Loot Settings (All Zombies)";
  600. icon="\Ryanzombies\icon.paa";
  601. category="Ryanzombiesfactionmodule";
  602. function="RyanZM_fnc_rzfunctionlootsettings";
  603. isGlobal=1;
  604. class Arguments
  605. {
  606. class Items
  607. {
  608. displayName="Items (Civilians)";
  609. description="Manually write out an array of item class names (square brackets at the start and end with quotes for each class) zombie civilians will have a chance of dropping on death.";
  610. defaultValue=;
  611. };
  612. class Itemschance
  613. {
  614. displayName="Chance of Items";
  615. description="Chance in percentage of the randomly selected item being dropped by a zombie on death. Enter a value between 0-100.";
  616. typeName="Number";
  617. defaultValue=25;
  618. };
  619. class Itemsamountmin
  620. {
  621. displayName="Minimum Amount";
  622. description="The minimum amount of items the zombie can drop on death.";
  623. typeName="Number";
  624. defaultValue=1;
  625. };
  626. class Itemsamountmax
  627. {
  628. displayName="Maximum Amount";
  629. description="The maximum amount of items the zombie can drop on death.";
  630. typeName="Number";
  631. defaultValue=1;
  632. };
  633. class Magazines
  634. {
  635. displayName="Magazines (Civilians)";
  636. description="Manually write out an array of magazine class names (square brackets at the start and end with quotes for each class) zombie civilians will have a chance of dropping on death.";
  637. defaultValue=;
  638. };
  639. class Magazineschance
  640. {
  641. displayName="Chance of Magazines";
  642. description="Chance in percentage of the randomly selected magazine being dropped by a zombie on death. Enter a value between 0-100.";
  643. typeName="Number";
  644. defaultValue=25;
  645. };
  646. class Magazinesamountmin
  647. {
  648. displayName="Minimum Amount";
  649. description="The minimum amount of magazines the zombie can drop on death.";
  650. typeName="Number";
  651. defaultValue=1;
  652. };
  653. class Magazinesamountmax
  654. {
  655. displayName="Maximum Amount";
  656. description="The maximum amount of magazines the zombie can drop on death.";
  657. typeName="Number";
  658. defaultValue=1;
  659. };
  660. class Weapons
  661. {
  662. displayName="Weapons (Civilians)";
  663. description="Manually write out an array of weapon class names (square brackets at the start and end with quotes for each class) zombie civilians will have a chance of dropping on death.";
  664. defaultValue=;
  665. };
  666. class Weaponschance
  667. {
  668. displayName="Chance of Weapons";
  669. description="Chance in percentage of the randomly selected weapon being dropped by a zombie on death. Enter a value between 0-100.";
  670. typeName="Number";
  671. defaultValue=0;
  672. };
  673. class Weaponsamountmin
  674. {
  675. displayName="Minimum Amount";
  676. description="The minimum amount of weapons the zombie can drop on death.";
  677. typeName="Number";
  678. defaultValue=1;
  679. };
  680. class Weaponsamountmax
  681. {
  682. displayName="Maximum Amount";
  683. description="The maximum amount of weapons the zombie can drop on death.";
  684. typeName="Number";
  685. defaultValue=1;
  686. };
  687. class ItemsSoldier
  688. {
  689. displayName="Items (Soldiers)";
  690. description="Manually write out an array of item class names (square brackets at the start and end with quotes for each class) zombie soldiers will have a chance of dropping on death.";
  691. defaultValue=;
  692. };
  693. class ItemschanceSoldier
  694. {
  695. displayName="Chance of Items";
  696. description="Chance in percentage of the randomly selected item being dropped by a zombie on death. Enter a value between 0-100.";
  697. typeName="Number";
  698. defaultValue=25;
  699. };
  700. class ItemsamountminSoldier
  701. {
  702. displayName="Minimum Amount";
  703. description="The minimum amount of items the zombie can drop on death.";
  704. typeName="Number";
  705. defaultValue=1;
  706. };
  707. class ItemsamountmaxSoldier
  708. {
  709. displayName="Maximum Amount";
  710. description="The maximum amount of items the zombie can drop on death.";
  711. typeName="Number";
  712. defaultValue=1;
  713. };
  714. class MagazinesSoldier
  715. {
  716. displayName="Magazines (Soldiers)";
  717. description="Manually write out an array of magazine class names (square brackets at the start and end with quotes for each class) zombie soldiers will have a chance of dropping on death.";
  718. defaultValue=;
  719. };
  720. class MagazineschanceSoldier
  721. {
  722. displayName="Chance of Magazines";
  723. description="Chance in percentage of the randomly selected magazine being dropped by a zombie on death. Enter a value between 0-100.";
  724. typeName="Number";
  725. defaultValue=25;
  726. };
  727. class MagazinesamountminSoldier
  728. {
  729. displayName="Minimum Amount";
  730. description="The minimum amount of magazines the zombie can drop on death.";
  731. typeName="Number";
  732. defaultValue=1;
  733. };
  734. class MagazinesamountmaxSoldier
  735. {
  736. displayName="Maximum Amount";
  737. description="The maximum amount of magazines the zombie can drop on death.";
  738. typeName="Number";
  739. defaultValue=1;
  740. };
  741. class WeaponsSoldier
  742. {
  743. displayName="Weapons (Soldiers)";
  744. description="Manually write out an array of weapon class names (square brackets at the start and end with quotes for each class) zombie soldiers will have a chance of dropping on death.";
  745. defaultValue=;
  746. };
  747. class WeaponschanceSoldier
  748. {
  749. displayName="Chance of Weapons";
  750. description="Chance in percentage of the randomly selected weapon being dropped by a zombie on death. Enter a value between 0-100.";
  751. typeName="Number";
  752. defaultValue=0;
  753. };
  754. class WeaponsamountminSoldier
  755. {
  756. displayName="Minimum Amount";
  757. description="The minimum amount of weapons the zombie can drop on death.";
  758. typeName="Number";
  759. defaultValue=1;
  760. };
  761. class WeaponsamountmaxSoldier
  762. {
  763. displayName="Maximum Amount";
  764. description="The maximum amount of weapons the zombie can drop on death.";
  765. typeName="Number";
  766. defaultValue=1;
  767. };
  768. };
  769. class ModuleDescription: ModuleDescription
  770. {
  771. position=1;
  772. description="This module allows zombies to drop items, magazines and/or weapons on death.";
  773. };
  774. };
  775. class RyanZM_ModuleCustomDifficulty: Module_F
  776. {
  777. author="Ryan";
  778. scope=2;
  779. mapSize=2;
  780. displayName="Custom Difficulty";
  781. icon="\Ryanzombies\icon.paa";
  782. category="Ryanzombiesfactionmodule";
  783. function="RyanZM_fnc_rzfunctioncustomdifficulty";
  784. isGlobal=1;
  785. class Arguments
  786. {
  787. class AttackSpeed
  788. {
  789. displayName="Attack Speed";
  790. description="How long in seconds it takes for zombies to perform another attack.";
  791. typeName="Number";
  792. defaultValue=0.8;
  793. };
  794. class AttackDistance
  795. {
  796. displayName="Attack Distance";
  797. description="The distance in metres zombies can perform an attack from.";
  798. typeName="Number";
  799. defaultValue=2.35;
  800. };
  801. class Damage
  802. {
  803. displayName="Attack Damage (Human)";
  804. description="The damage applied to the target after a zombie attack.";
  805. typeName="Number";
  806. defaultValue=0.15;
  807. };
  808. class DamageCar
  809. {
  810. displayName="Attack Damage (Car)";
  811. description="The damage applied to the target after a zombie attack.";
  812. typeName="Number";
  813. defaultValue=0.02;
  814. };
  815. class DamageAir
  816. {
  817. displayName="Attack Damage (Air)";
  818. description="The damage applied to the target after a zombie attack.";
  819. typeName="Number";
  820. defaultValue=0.01;
  821. };
  822. class DamageTank
  823. {
  824. displayName="Attack Damage (Tank)";
  825. description="The damage applied to the target after a zombie attack.";
  826. typeName="Number";
  827. defaultValue=0.002;
  828. };
  829. class Knockback
  830. {
  831. displayName="Knockback (Human)";
  832. description="The knockback velocity applied to the target after a zombie attack.";
  833. typeName="Number";
  834. defaultValue=1.5;
  835. };
  836. class KnockbackCar
  837. {
  838. displayName="Knockback (Car)";
  839. description="The knockback velocity applied to the target after a zombie attack.";
  840. typeName="Number";
  841. defaultValue=1.5;
  842. };
  843. class KnockbackAir
  844. {
  845. displayName="Knockback (Air)";
  846. description="The knockback velocity applied to the target after a zombie attack.";
  847. typeName="Number";
  848. defaultValue=1;
  849. };
  850. class KnockbackTank
  851. {
  852. displayName="Knockback (Tank)";
  853. description="The knockback velocity applied to the target after a zombie attack.";
  854. typeName="Number";
  855. defaultValue=0.4;
  856. };
  857. };
  858. class ModuleDescription: ModuleDescription
  859. {
  860. position=1;
  861. description="This module allows you to change all the variables related to zombie difficulty.";
  862. };
  863. };
  864. class RyanZM_ModuleInfected: Module_F
  865. {
  866. author="Ryan";
  867. scope=2;
  868. mapSize=2;
  869. displayName="Infection Settings";
  870. icon="\Ryanzombies\icon.paa";
  871. category="Ryanzombiesfactionmodule";
  872. function="RyanZM_fnc_rzfunctioninfected";
  873. isGlobal=1;
  874. class Arguments
  875. {
  876. class InfectedChance
  877. {
  878. displayName="Infected Chance";
  879. description="The chance in percentage a victim will become infected if attacked by a zombie.";
  880. typeName="Number";
  881. defaultValue=50;
  882. };
  883. class InfectedRate
  884. {
  885. displayName="Infection Rate Per Minute";
  886. description="The percentage of infection applied to the victim each minute.";
  887. typeName="Number";
  888. defaultValue=0.1;
  889. };
  890. class Immunity
  891. {
  892. displayName="Immune Units";
  893. description="Manually write out an array of units (square brackets at the start and end with quotes for each class) to be immune from infection.";
  894. defaultValue=;
  895. };
  896. class InfectedSymptoms
  897. {
  898. displayName="Infection Symptoms";
  899. description="Infected units can show symptoms or be unknowingly infected.";
  900. typeName="Number";
  901. class values
  902. {
  903. class Normal {name = "Normal"; value = 0.9; default = 1;};
  904. class Less {name = "Less"; value = 0.7; default = 0;};
  905. class None {name = "None"; value = 0.5; default = 0;};
  906. };
  907. };
  908. class InfectedDeath
  909. {
  910. displayName="Infection Death";
  911. description="The sound infected units will make if they die from infection.";
  912. typeName="Number";
  913. class values
  914. {
  915. class Normal {name = "Scream"; value = 0.9; default = 1;};
  916. class Less {name = "Silent"; value = 0.7; default = 0;};
  917. };
  918. };
  919. class Antivirus
  920. {
  921. displayName="Antivirus Pills Duration";
  922. description="Duration in seconds the consumer is immune to infection and its symptoms. Antivirus can be found in Empty > Zombie Antivirus.";
  923. typeName="Number";
  924. defaultValue=300;
  925. };
  926. };
  927. class ModuleDescription: ModuleDescription
  928. {
  929. position=1;
  930. description="This module allows victims of zombie attacks to become infected and eventually die if not cured. They will resurrect as a zombie if a Resurrection module is used.";
  931. };
  932. };
  933. };
  934.  
  935. class CfgFunctions
  936. {
  937. class RyanZM
  938. {
  939. class Ryanzombiesfactionmodule
  940. {
  941. class rzfunctionspawn
  942. {
  943. file = "\ryanzombies\functions\fn_ModuleSpawn.sqf";
  944. };
  945. class rzfunctionspawner
  946. {
  947. file = "\ryanzombies\functions\fn_ModuleSpawner.sqf";
  948. };
  949. class rzfunctionspawnerdemon
  950. {
  951. file = "\ryanzombies\functions\fn_ModuleSpawnerDemon.sqf";
  952. };
  953. class rzfunctionzombiehealth
  954. {
  955. file = "\ryanzombies\functions\fn_ModuleZombieHealth.sqf";
  956. };
  957. class rzfunctionzombiedeletion
  958. {
  959. file = "\ryanzombies\functions\fn_ModuleZombieDeletion.sqf";
  960. };
  961. class rzfunctioninfection
  962. {
  963. file = "\ryanzombies\functions\fn_ModuleInfection.sqf";
  964. };
  965. class rzfunctionlootsettings
  966. {
  967. file = "\ryanzombies\functions\fn_ModuleLootSettings.sqf";
  968. };
  969. class rzfunctioncustomdifficulty
  970. {
  971. file = "\ryanzombies\functions\fn_ModuleCustomDifficulty.sqf";
  972. };
  973. class rzfunctioninfected
  974. {
  975. file = "\ryanzombies\functions\fn_ModuleInfected.sqf";
  976. };
  977. class rzfunctionsdefines
  978. {
  979. file = "\ryanzombies\functions\fn_DefineFunctions.sqf";
  980. preInit = 1;
  981. };
  982. };
  983. };
  984. };
Add Comment
Please, Sign In to add comment