Advertisement
OneShot1984

More Explosives config.cpp

Jan 30th, 2023 (edited)
539
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.04 KB | None | 0 0
  1. class CfgPatches
  2. {
  3. class CustomMOEConfig_BBP
  4. {
  5. units[]={};
  6. weapons[]={};
  7. requiredVersion=0.1;
  8. requiredAddons[] = {
  9. "MoreExplosives_Config",
  10. "BBP_Vanilla_Dmg_Doors"
  11. };
  12. };
  13. };
  14.  
  15.  
  16. ////////////////////////////////
  17. ///// Object Configuration /////
  18. ////////////////////////////////
  19. class CfgMoreExplosives
  20. {
  21. doorRaidOnlyEnabled = 1;
  22. deleteLocks = 1;
  23. raidOnlyWithMOE = 1;
  24.  
  25. raidSchedulingEnabled = 0;
  26.  
  27. class RaidScheduling
  28. {
  29. timeZoneOffset = 1;
  30.  
  31. class Weekday;
  32. class Friday : Weekday
  33. {
  34. timeSlots[] = {
  35. 12.0, 24.0
  36. };
  37. };
  38. };
  39. };
  40. class CfgVehicles
  41. {
  42. //New entry
  43. class MOE_ExplosiveBase;
  44. class MOE_Explosive_Homemade : MOE_ExplosiveBase
  45. {
  46. class MOE_Settings
  47. {
  48. //Edit these values
  49. timeToArm = 5;
  50. timetoDisarm = 5;
  51. timeToDefuse = 15;
  52. timeToMount = 15;
  53. timeToDismount = 15;
  54. };
  55. };
  56.  
  57. //The MOE_Settings class is always encapsulated by another item class
  58. //All the settings on the wiki only show the MOE_Settings class itself to avoid confusion and keep it generalized
  59. //The TL;DR is that any directly MOE related item changes are done inside the MOE_Settings class
  60. //with the exception of Ammo/Explosion related settings
  61. //To change the military explosive you just add the following
  62.  
  63. class MOE_Explosive_Military : MOE_ExplosiveBase
  64. {
  65. class MOE_Settings
  66. {
  67. //Edit these values
  68. timeToArm = 5;
  69. timetoDisarm = 5;
  70. timeToDefuse = 15;
  71. timeToMount = 15;
  72. timeToDismount = 15;
  73. };
  74. };
  75.  
  76.  
  77. //Your existing entries
  78. class MOE_ComponentTimerBase;
  79. class MOE_Timer_Homemade : MOE_ComponentTimerBase
  80. {
  81. class MOE_Settings
  82. {
  83. minTimer = 30;
  84. maxTimer = 30;
  85. };
  86. };
  87.  
  88. class MOE_Timer_Military : MOE_ComponentTimerBase
  89. {
  90. class MOE_Settings
  91. {
  92. minTimer = 20;
  93. maxTimer = 20;
  94. };
  95. };
  96.  
  97. class BBP_WALL_BASE;
  98. class BBP_GATE_BASE : BBP_WALL_BASE
  99. {
  100. class MOE_Settings
  101. {
  102. class DamageMultipliers
  103. {
  104. MOE_Explosive_Homemade = 1;
  105. MOE_Explosive_Military = 1;
  106. };
  107.  
  108. damageZonePriorities[] = {
  109. "t3_door",
  110. "t2_door",
  111. "t1_door",
  112. "window_bars",
  113. "t3_wall_concrete_bricks_2",
  114. "t3_wall_concrete_bricks",
  115. "t2_metal_2",
  116. "t2_metal",
  117. "t1_wall_logs_horizontal",
  118. "t1_wall_planks"
  119. };
  120. };
  121.  
  122. class DamageSystem
  123. {
  124. class DamageZones
  125. {
  126. class BBP_Tier_1
  127. {
  128. class MOE_Settings
  129. {
  130. class DamageMultipliers
  131. {
  132. MOE_Explosive_Homemade = 12;
  133. MOE_Explosive_Military = 20;
  134. };
  135. };
  136. };
  137. class BBP_Tier_2
  138. {
  139. class MOE_Settings
  140. {
  141. class DamageMultipliers
  142. {
  143. MOE_Explosive_Homemade = 5.5;
  144. //slightly less damage on military explosive so it does not destroy the wall with a single explosion
  145. MOE_Explosive_Military = 3.5;
  146. };
  147. };
  148. };
  149. class BBP_Tier_3
  150. {
  151. class MOE_Settings
  152. {
  153. class DamageMultipliers
  154. {
  155. MOE_Explosive_Homemade = 9.0;
  156. MOE_Explosive_Military = 9.4;
  157. };
  158. };
  159. };
  160. class t1_wall_logs_horizontal: BBP_Tier_1
  161. {
  162. class MOE_Settings : MOE_Settings
  163. {
  164. requiredDestroyedParts[]={
  165. "t2_metal"
  166. };
  167. };
  168. };
  169. class t1_wall_planks: BBP_Tier_1
  170. {
  171. class MOE_Settings : MOE_Settings
  172. {
  173. requiredDestroyedParts[]={
  174. "t2_metal_2"
  175. };
  176. };
  177. };
  178. class t1_door: BBP_Tier_1
  179. {
  180. class MOE_Settings : MOE_Settings
  181. {
  182. requiredDestroyedParts[]={
  183. "t2_door"
  184. };
  185. };
  186. };
  187. };
  188. };
  189. };
  190.  
  191. class BBP_DOOR_BASE : BBP_WALL_BASE
  192. {
  193. class MOE_Settings
  194. {
  195. class DamageMultipliers
  196. {
  197. MOE_Explosive_Homemade = 1;
  198. MOE_Explosive_Military = 1;
  199. };
  200.  
  201. damageZonePriorities[] = {
  202. "t3_door",
  203. "t2_door",
  204. "t1_door",
  205. "window_bars"
  206. };
  207. };
  208.  
  209. class DamageSystem
  210. {
  211. class DamageZones
  212. {
  213. class BBP_Tier_1
  214. {
  215. class MOE_Settings
  216. {
  217. class DamageMultipliers
  218. {
  219. MOE_Explosive_Homemade = 12;
  220. MOE_Explosive_Military = 20;
  221. };
  222. };
  223. };
  224. class BBP_Tier_2
  225. {
  226. class MOE_Settings
  227. {
  228. class DamageMultipliers
  229. {
  230. MOE_Explosive_Homemade = 5.5;
  231. //slightly less damage on military explosive so it does not destroy the wall with a single explosion
  232. MOE_Explosive_Military = 3.5;
  233. };
  234. };
  235. };
  236. class BBP_Tier_3
  237. {
  238. class MOE_Settings
  239. {
  240. class DamageMultipliers
  241. {
  242. MOE_Explosive_Homemade = 9.0;
  243. MOE_Explosive_Military = 9.4;
  244. };
  245. };
  246. };
  247. class t1_door: BBP_Tier_1
  248. {
  249. class MOE_Settings : MOE_Settings
  250. {
  251. requiredDestroyedParts[]={
  252. "t2_door"
  253. };
  254. };
  255. };
  256. };
  257. };
  258. };
  259.  
  260. };
  261.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement