Advertisement
Guest User

Untitled

a guest
Nov 9th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.56 KB | None | 0 0
  1. class CfgPatches
  2. {
  3. class proRP_ChemicalFactory_F
  4. {
  5. units[] = {};
  6. weapons[] = {};
  7. requiredVersion = 0.1;
  8. requiredAddons[] = {};
  9. };
  10. };
  11.  
  12. class CfgAnimationSourceSounds
  13. {
  14. class GarageDoor
  15. {
  16. class DoorMovement
  17. {
  18. loop = 0;
  19. terminate = 0;
  20. trigger = "(phase factor[0.05,0.10]) * (phase factor[0.95,0.])";
  21. sound0[] = {"proRP\ChemicalFactory\data\GarageDoor.ogg",0.398107,1,20};
  22. sound[] = {"sound0",1};
  23. };
  24. };
  25. };
  26.  
  27. class CfgVehicles
  28. {
  29. class House;
  30. class House_F: House{};
  31. class Ruins_F;
  32.  
  33. class Land_ChemicalFactory_F: House_F
  34. {
  35. displayName = "Chemical Factory";
  36. textSingular = "Chemical Factory";
  37. model = "\proRP\ChemicalFactory\proRP_ChemicalFactory.p3d";
  38. vehicleClass = "Structures";
  39. scope = 2;
  40. cost = 5000;
  41. mapSize = 10;
  42.  
  43. class AnimationSources
  44. {
  45. class ChemicalFactory_Door01_Rotation
  46. {
  47. source = "user";
  48. initPhase = 0;
  49. animPeriod = 1;
  50. sound = "GenericDoorsSound";
  51. };
  52.  
  53. class ChemicalFactory_Door02_Rotation: ChemicalFactory_Door01_Rotation {};
  54.  
  55. class ChemicalFactory_Door03_Rotation: ChemicalFactory_Door01_Rotation
  56. {
  57. animPeriod = 12;
  58. sound = "GarageDoor";
  59. };
  60.  
  61. class ChemicalFactory_Door_04_Rotation: ChemicalFactory_Door01_Rotation
  62. {
  63. animPeriod = 12;
  64. sound = "GarageDoor";
  65. };
  66.  
  67. class ChemicalFactory_Door_05_Rotation
  68. {
  69. source = "user";
  70. initPHase = 0;
  71. animPeriod = 1;
  72. sound = "GenericDoorsSound";
  73. };
  74.  
  75. class ChemicalFactory_CraneTop_Translation: ChemicalFactory_Door01_Rotation
  76. {
  77. animPeriod = 10;
  78. sound = "";
  79. };
  80.  
  81. class ChemicalFactory_CraneBottom_Translation: ChemicalFactory_Door01_Rotation
  82. {
  83. animPeriod = 25;
  84. sound = "";
  85. };
  86. };
  87.  
  88. class UserActions
  89. {
  90. class ChemicalFactory_Door0102_Open
  91. {
  92. displayNameDefault = "<img image='\JCA_Main\JCA_Data\data\open_door_ca.paa' size='2.5' />";
  93. displayName = "Open Doors";
  94. position = "Door_01_Trigger";
  95. radius = 2;
  96. priority = 1;
  97. onlyForPlayer = 0;
  98. condition = "this animationPhase ""ChemicalFactory_Door01_Rotation"" <0.5";
  99. statement = "this animate [""ChemicalFactory_Door01_Rotation"", 1]; this animate [""ChemicalFactory_Door02_Rotation"", 1];";
  100. };
  101. class ChemicalFactory_Door0102_Close: ChemicalFactory_Door0102_Open
  102. {
  103. displayName = "Close Doors";
  104. condition = "this animationPhase ""ChemicalFactory_Door01_Rotation"" >= 0.5";
  105. statement = "this animate [""ChemicalFactory_Door01_Rotation"", 0]; this animate [""ChemicalFactory_Door02_Rotation"", 0];";
  106. };
  107.  
  108. class ChemicalFactory_Door03_Open
  109. {
  110. displayNameDefault = "<img image='\JCA_Main\JCA_Data\data\open_door_ca.paa' size='2.5' />";
  111. displayName = "Open Garage Door";
  112. position = "Door_034_Trigger";
  113. radius = 5;
  114. priority = 1;
  115. onlyForPlayer = 0;
  116. condition = "this animationPhase ""ChemicalFactory_Door03_Rotation"" < 0.5";
  117. statement = "this animate [""ChemicalFactory_Door03_Rotation"", 1];";
  118. };
  119. class ChemicalFactory_Door03_Close: ChemicalFactory_Door03_Open
  120. {
  121. displayName = "Close Garage Door";
  122. condition = "this animationPhase ""ChemicalFactory_Door03_Rotation"" >= 0.5";
  123. statement = "this animate [""ChemicalFactory_Door03_Rotation"", 0];";
  124. };
  125.  
  126. class ChemicalFactory_Door04_Open: ChemicalFactory_Door03_Open
  127. {
  128. displayName = "Open Garage Door";
  129. condition = "this animationPhase ""ChemicalFactory_Door04_Rotation"" < 0.5";
  130. statement = "this animate [""ChemicalFactory_Door04_Rotation"", 1];";
  131. };
  132. class ChemicalFactory_Door04_Close: ChemicalFactory_Door03_Open
  133. {
  134. displayName = "Close Garage Door";
  135. condition = "this animationPhase ""ChemicalFactory_Door04_Rotation"" >= 0.5";
  136. statement = "this animate [""ChemicalFactory_Door04_Rotation"", 0];";
  137. };
  138.  
  139. class ChemicalFactory_Door05_Open
  140. {
  141. displayName = "Open Door";
  142. position = "Door_05_Trigger";
  143. radius = 2;
  144. priority = 1;
  145. onlyForPlayer = 0;
  146. condition = "this animationPhase ""ChemicalFactory_Door05_Rotation"" < 0.5";
  147. statement = "this animate [""ChemicalFactory_Door05_Rotation"", 1];";
  148. };
  149. class ChemicalFactory_Door05_Close
  150. {
  151. displayName = "Close Door";
  152. position = "Door_05_Trigger";
  153. radius = 2;
  154. priority = 1;
  155. onlyForPlayer = 0;
  156. condition = "this animationPhase ""ChemicalFactory_Door05_Rotation"" >= 0.5";
  157. statement = "this animate [""ChemicalFactory_Door05_Rotation"", 0];";
  158. };
  159.  
  160. class ChemicalFactory_Crane_Start
  161. {
  162. displayName = "Move Crane";
  163. position = "ControlPanel_Trigger";
  164. radius = 2;
  165. priority = 2;
  166. onlyForPlayer = 0;
  167. condition = "this animationPhase ""ChemicalFactory_CraneTop_Translation"" < 0.5";
  168. statement = "this animate [""ChemicalFactory_CraneTop_Translation"", 1]; this animate [""ChemicalFactory_CraneBottom_Translation"", 1];";
  169. };
  170. class ChemicalFactory_Crane_End: ChemicalFactory_Crane_Start
  171. {
  172. condition = "this animationPhase ""ChemicalFactory_CraneBottom_Translation"" >= 0.5";
  173. statement = "this animate [""ChemicalFactory_CraneBottom_Translation"", 0] this animate [""ChemicalFactory_CraneTop_Translation"", 0];";
  174. };
  175. };
  176. };
  177. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement