1
0

sounds.hpp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. class Sounds
  2. {
  3. class EngineExt
  4. {
  5. sound[] = {"RD501_Vehicles\sounds\LAAT\laat_Idle.ogg", 1.25893, 1, 400};
  6. //sound[] = {"LAAT\sounds\laatengine_new.ogg", 0.3, .05};
  7. frequency = "rotorSpeed";
  8. volume = "camPos*((rotorSpeed-0.72)*4)";
  9. };
  10. class RotorExt
  11. {
  12. sound[] = {"RD501_Vehicles\sounds\LAAT\laat_Idle.ogg", 1, 1, 4000};
  13. //sound[] = {"LAAT\sounds\laatengine_new.ogg", 1, .05, 4000};
  14. frequency = "rotorSpeed * (1-rotorThrust/5)";
  15. volume = "camPos*(0 max (rotorSpeed-0.1))*(1 + rotorThrust)";
  16. cone[] = {1.6, 3.14, 1.6, 0.95};
  17. };
  18. class RotorNoiseExt
  19. {
  20. sound[] = {"", "db0", 1, 400};
  21. frequency = 1;
  22. volume = "(camPos*(rotorThrust factor [0.6, 1]))";
  23. cone[] = {0.7, 1.3, 1, 0};
  24. };
  25. class EngineInt
  26. {
  27. sound[] = {"RD501_Vehicles\sounds\LAAT\laat_Idle.ogg", 0.3, 1};
  28. //sound[] = {"LAAT\sounds\laatengine_new.ogg", 0.3, .05};
  29. frequency = "rotorSpeed";
  30. volume = "2 * (1-camPos)*(rotorSpeed factor[0.4,1])";
  31. };
  32. class RotorInt
  33. {
  34. sound[] = {"RD501_Vehicles\sounds\LAAT\laat_Idle.ogg", 0.3, 1};
  35. frequency = "rotorSpeed * (1-rotorThrust/5)";
  36. volume = "(1-camPos) * (rotorSpeed factor[0.3, 1]) * (1 + rotorThrust)";
  37. };
  38. class TransmissionDamageExt_phase1
  39. {
  40. sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_damage_transmission_ext_1", "db0", 1, 150};
  41. frequency = "0.66 + rotorSpeed / 3";
  42. volume = "camPos * (transmissionDamage factor [0.3, 0.35]) * (transmissionDamage factor [0.5, 0.45]) * (rotorSpeed factor [0.2, 0.5])";
  43. };
  44. class TransmissionDamageExt_phase2
  45. {
  46. sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_damage_transmission_ext_2", "db0", 1, 150};
  47. frequency = "0.66 + rotorSpeed / 3";
  48. volume = "camPos * (transmissionDamage factor [0.45, 0.5]) * (rotorSpeed factor [0.2, 0.5])";
  49. };
  50. class TransmissionDamageInt_phase1
  51. {
  52. sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_damage_transmission_int_1", "db0", 1, 150};
  53. frequency = "0.66 + rotorSpeed / 3";
  54. volume = "(1 - camPos) * (transmissionDamage factor [0.3, 0.35]) * (transmissionDamage factor [0.5, 0.45]) * (rotorSpeed factor [0.2, 0.5])";
  55. };
  56. class TransmissionDamageInt_phase2
  57. {
  58. sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_damage_transmission_int_2", "db0", 1, 150};
  59. frequency = "0.66 + rotorSpeed / 3";
  60. volume = "(1 - camPos) * (transmissionDamage factor [0.45, 0.5]) * (rotorSpeed factor [0.2, 0.5])";
  61. };
  62. class damageAlarmInt
  63. {
  64. sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_alarm_opfor", "db-10", 1};
  65. frequency = 1;
  66. volume = "engineOn * (1 - camPos) * ( 1 - ((transmissionDamage factor [0.61, 0.60]) * (motorDamage factor [0.61, 0.60]) * (rotorDamage factor [0.51, 0.50]))) * (rotorSpeed factor [0.0, 0.001])";
  67. };
  68. class damageAlarmExt
  69. {
  70. sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_alarm_opfor", "db-13", 1, 20};
  71. frequency = 1;
  72. volume = "engineOn * camPos * ( 1 - ((transmissionDamage factor [0.61, 0.60]) * (motorDamage factor [0.61, 0.60]) * (rotorDamage factor [0.51, 0.50]))) * (rotorSpeed factor [0, 0.001])";
  73. };
  74. class rotorLowAlarmInt
  75. {
  76. sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_alarm_rotor_low", "db-10", 1};
  77. frequency = 1;
  78. volume = "engineOn * (1 - camPos) * (rotorSpeed factor [0.9, 0.8999]) * (rotorSpeed factor [-0.5, 1]) * (speed factor [3, 3.01])";
  79. };
  80. class rotorLowAlarmExt
  81. {
  82. sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_alarm_rotor_low", "db-13", 1, 20};
  83. frequency = 1;
  84. volume = "engineOn * camPos * (rotorSpeed factor [0.9, 0.8999]) * (rotorSpeed factor [-0.5, 1]) * (speed factor [3, 3.01])";
  85. };
  86. class scrubLandInt
  87. {
  88. sound[] = {"A3\Sounds_F\vehicles\air\noises\wheelsInt", "db0", 1, 100};
  89. frequency = 1;
  90. volume = "2 * (1-camPos) * (scrubLand factor[0.02, 0.05]) * (1 - (lateralMovement factor [0.7,1]))";
  91. };
  92. class scrubLandExt
  93. {
  94. sound[] = {"A3\Sounds_F\dummysound", "db0", 1, 100};
  95. frequency = 1;
  96. volume = "camPos * (scrubLand factor[0.02, 0.05]) * (1 - (lateralMovement factor [0.7,1]))";
  97. };
  98. class scrubBuildingInt
  99. {
  100. sound[] = {"A3\Sounds_F\vehicles\air\noises\wheelsInt", "db0", 1, 100};
  101. frequency = 1;
  102. volume = "(1-camPos) * (scrubBuilding factor[0.02, 0.05]) * (1 - (lateralMovement factor [0.7,1]))";
  103. };
  104. class scrubBuildingExt
  105. {
  106. sound[] = {"A3\Sounds_F\dummysound", "db0", 1, 100};
  107. frequency = 1;
  108. volume = "camPos * (scrubBuilding factor[0.02, 0.05])";
  109. };
  110. class scrubTreeInt
  111. {
  112. sound[] = {"A3\Sounds_F\vehicles\air\noises\scrubTreeInt", "db0", 1, 100};
  113. frequency = 1;
  114. volume = "(1 - camPos) * ((scrubTree) factor [0, 0.01])";
  115. };
  116. class scrubTreeExt
  117. {
  118. sound[] = {"A3\Sounds_F\vehicles\air\noises\scrubTreeExt", "db0", 1, 100};
  119. frequency = 1;
  120. volume = "camPos * ((scrubTree) factor [0, 0.01])";
  121. };
  122. class RainExt
  123. {
  124. sound[] = {"A3\Sounds_F\vehicles\noises\rain1_ext", "db0", 1, 100};
  125. frequency = 1;
  126. volume = "camPos * (rain - rotorSpeed/2) * 2";
  127. };
  128. class RainInt
  129. {
  130. sound[] = {"A3\Sounds_F\vehicles\noises\rain1_int", "db0", 1, 100};
  131. frequency = 1;
  132. volume = "(1-camPos)*(rain - rotorSpeed/2)*2";
  133. };
  134. class SlingLoadDownExt
  135. {
  136. sound[] = {"A3\Sounds_F\vehicles\air\noises\SL_engineDownEXT", "db0", 1, 500};
  137. frequency = 1;
  138. volume = "camPos*(slingLoadActive factor [0,-1])";
  139. };
  140. class SlingLoadUpExt
  141. {
  142. sound[] = {"A3\Sounds_F\vehicles\air\noises\SL_engineUpEXT", "db0", 1, 500};
  143. frequency = 1;
  144. volume = "camPos*(slingLoadActive factor [0,1])";
  145. };
  146. class SlingLoadDownInt
  147. {
  148. sound[] = {"A3\Sounds_F\vehicles\air\noises\SL_engineDownINT", "db0", 1, 500};
  149. frequency = 1;
  150. volume = "(1-camPos)*(slingLoadActive factor [0,-1])";
  151. };
  152. class SlingLoadUpInt
  153. {
  154. sound[] = {"A3\Sounds_F\vehicles\air\noises\SL_engineUpINT", "db0", 1, 500};
  155. frequency = 1;
  156. volume = "(1-camPos)*(slingLoadActive factor [0,1])";
  157. };
  158. class WindInt
  159. {
  160. sound[] = {"A3\Sounds_F\vehicles\air\noises\wind_closed", "db-7", 1, 50};
  161. frequency = 1;
  162. volume = "(1-camPos)*(speed factor[5, 60])*(speed factor[5, 60])";
  163. };
  164. class GStress
  165. {
  166. sound[] = {"A3\Sounds_F\vehicles\noises\vehicle_stress2e", "db-8", 1, 50};
  167. frequency = 1;
  168. volume = "engineOn * (1-camPos) * ((gmeterZ factor[1.5, 2.5]) + (gmeterZ factor[0.5, -0.5]))";
  169. };
  170. };
  171. class SoundsExt
  172. {
  173. class SoundEvents
  174. {
  175. };
  176. class Sounds
  177. {
  178. class EngineExt
  179. {
  180. sound[] = {"RD501_Vehicles\sounds\LAAT\laat_Idle.ogg", 1.25893, 1, 400};
  181. //sound[] = {"LAAT\sounds\laatengine_new.ogg", 1, 1, 3000};
  182. //sound[] = {"LAAT\sounds\laatengine_new.ogg", 1, .05, 3000};
  183. frequency = "rotorSpeed";
  184. volume = "camPos*((rotorSpeed-0.72)*4)";
  185. };
  186. class RotorExt
  187. {
  188. sound[] = {"RD501_Vehicles\sounds\LAAT\laat_Idle.ogg", 1, 1, 4000};
  189. //sound[] = {"LAAT\sounds\laatengine_new.ogg", 1, .05, 4000};
  190. frequency = "rotorSpeed * (1-rotorThrust/5)";
  191. volume = "camPos*(0 max (rotorSpeed-0.1))*(1 + rotorThrust)";
  192. cone[] = {1.6, 3.14, 1.6, 0.95};
  193. };
  194. class RotorNoiseExt
  195. {
  196. sound[] = {"", "db0", 1, 400};
  197. frequency = 1;
  198. volume = "(camPos*(rotorThrust factor [0.6, 1]))";
  199. cone[] = {0.7, 1.3, 1, 0};
  200. };
  201. class EngineInt
  202. {
  203. sound[] = {"RD501_Vehicles\sounds\LAAT\laat_Idle.ogg", 0.3, 1};
  204. //sound[] = {"LAAT\sounds\laatengine_new.ogg", 0.3, .05};
  205. frequency = "rotorSpeed";
  206. volume = "2 * (1-camPos)*(rotorSpeed factor[0.4,1])";
  207. };
  208. class RotorInt
  209. {
  210. sound[] = {"RD501_Vehicles\sounds\LAAT\laat_Idle.ogg", 0.3, 1};
  211. frequency = "rotorSpeed * (1-rotorThrust/5)";
  212. volume = "(1-camPos) * (rotorSpeed factor[0.3, 1]) * (1 + rotorThrust)";
  213. };
  214. class TransmissionDamageExt_phase1
  215. {
  216. sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_damage_transmission_ext_1", "db0", 1, 150};
  217. frequency = "0.66 + rotorSpeed / 3";
  218. volume = "camPos * (transmissionDamage factor [0.3, 0.35]) * (transmissionDamage factor [0.5, 0.45]) * (rotorSpeed factor [0.2, 0.5])";
  219. };
  220. class TransmissionDamageExt_phase2
  221. {
  222. sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_damage_transmission_ext_2", "db0", 1, 150};
  223. frequency = "0.66 + rotorSpeed / 3";
  224. volume = "camPos * (transmissionDamage factor [0.45, 0.5]) * (rotorSpeed factor [0.2, 0.5])";
  225. };
  226. class TransmissionDamageInt_phase1
  227. {
  228. sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_damage_transmission_int_1", "db0", 1, 150};
  229. frequency = "0.66 + rotorSpeed / 3";
  230. volume = "(1 - camPos) * (transmissionDamage factor [0.3, 0.35]) * (transmissionDamage factor [0.5, 0.45]) * (rotorSpeed factor [0.2, 0.5])";
  231. };
  232. class TransmissionDamageInt_phase2
  233. {
  234. sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_damage_transmission_int_2", "db0", 1, 150};
  235. frequency = "0.66 + rotorSpeed / 3";
  236. volume = "(1 - camPos) * (transmissionDamage factor [0.45, 0.5]) * (rotorSpeed factor [0.2, 0.5])";
  237. };
  238. class damageAlarmInt
  239. {
  240. sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_alarm_opfor", "db-10", 1};
  241. frequency = 1;
  242. volume = "engineOn * (1 - camPos) * ( 1 - ((transmissionDamage factor [0.61, 0.60]) * (motorDamage factor [0.61, 0.60]) * (rotorDamage factor [0.51, 0.50]))) * (rotorSpeed factor [0.0, 0.001])";
  243. };
  244. class damageAlarmExt
  245. {
  246. sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_alarm_opfor", "db-13", 1, 20};
  247. frequency = 1;
  248. volume = "engineOn * camPos * ( 1 - ((transmissionDamage factor [0.61, 0.60]) * (motorDamage factor [0.61, 0.60]) * (rotorDamage factor [0.51, 0.50]))) * (rotorSpeed factor [0, 0.001])";
  249. };
  250. class rotorLowAlarmInt
  251. {
  252. sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_alarm_rotor_low", "db-10", 1};
  253. frequency = 1;
  254. volume = "engineOn * (1 - camPos) * (rotorSpeed factor [0.9, 0.8999]) * (rotorSpeed factor [-0.5, 1]) * (speed factor [3, 3.01])";
  255. };
  256. class rotorLowAlarmExt
  257. {
  258. sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_alarm_rotor_low", "db-13", 1, 20};
  259. frequency = 1;
  260. volume = "engineOn * camPos * (rotorSpeed factor [0.9, 0.8999]) * (rotorSpeed factor [-0.5, 1]) * (speed factor [3, 3.01])";
  261. };
  262. class scrubLandInt
  263. {
  264. sound[] = {"A3\Sounds_F\vehicles\air\noises\wheelsInt", "db0", 1, 100};
  265. frequency = 1;
  266. volume = "2 * (1-camPos) * (scrubLand factor[0.02, 0.05]) * (1 - (lateralMovement factor [0.7,1]))";
  267. };
  268. class scrubLandExt
  269. {
  270. sound[] = {"A3\Sounds_F\dummysound", "db0", 1, 100};
  271. frequency = 1;
  272. volume = "camPos * (scrubLand factor[0.02, 0.05]) * (1 - (lateralMovement factor [0.7,1]))";
  273. };
  274. class scrubBuildingInt
  275. {
  276. sound[] = {"A3\Sounds_F\vehicles\air\noises\wheelsInt", "db0", 1, 100};
  277. frequency = 1;
  278. volume = "(1-camPos) * (scrubBuilding factor[0.02, 0.05]) * (1 - (lateralMovement factor [0.7,1]))";
  279. };
  280. class scrubBuildingExt
  281. {
  282. sound[] = {"A3\Sounds_F\dummysound", "db0", 1, 100};
  283. frequency = 1;
  284. volume = "camPos * (scrubBuilding factor[0.02, 0.05])";
  285. };
  286. class scrubTreeInt
  287. {
  288. sound[] = {"A3\Sounds_F\vehicles\air\noises\scrubTreeInt", "db0", 1, 100};
  289. frequency = 1;
  290. volume = "(1 - camPos) * ((scrubTree) factor [0, 0.01])";
  291. };
  292. class scrubTreeExt
  293. {
  294. sound[] = {"A3\Sounds_F\vehicles\air\noises\scrubTreeExt", "db0", 1, 100};
  295. frequency = 1;
  296. volume = "camPos * ((scrubTree) factor [0, 0.01])";
  297. };
  298. class RainExt
  299. {
  300. sound[] = {"A3\Sounds_F\vehicles\noises\rain1_ext", "db0", 1, 100};
  301. frequency = 1;
  302. volume = "camPos * (rain - rotorSpeed/2) * 2";
  303. };
  304. class RainInt
  305. {
  306. sound[] = {"A3\Sounds_F\vehicles\noises\rain1_int", "db0", 1, 100};
  307. frequency = 1;
  308. volume = "(1-camPos)*(rain - rotorSpeed/2)*2";
  309. };
  310. class SlingLoadDownExt
  311. {
  312. sound[] = {"A3\Sounds_F\vehicles\air\noises\SL_engineDownEXT", "db0", 1, 500};
  313. frequency = 1;
  314. volume = "camPos*(slingLoadActive factor [0,-1])";
  315. };
  316. class SlingLoadUpExt
  317. {
  318. sound[] = {"A3\Sounds_F\vehicles\air\noises\SL_engineUpEXT", "db0", 1, 500};
  319. frequency = 1;
  320. volume = "camPos*(slingLoadActive factor [0,1])";
  321. };
  322. class SlingLoadDownInt
  323. {
  324. sound[] = {"A3\Sounds_F\vehicles\air\noises\SL_engineDownINT", "db0", 1, 500};
  325. frequency = 1;
  326. volume = "(1-camPos)*(slingLoadActive factor [0,-1])";
  327. };
  328. class SlingLoadUpInt
  329. {
  330. sound[] = {"A3\Sounds_F\vehicles\air\noises\SL_engineUpINT", "db0", 1, 500};
  331. frequency = 1;
  332. volume = "(1-camPos)*(slingLoadActive factor [0,1])";
  333. };
  334. class WindInt
  335. {
  336. sound[] = {"A3\Sounds_F\vehicles\air\noises\wind_closed", "db-10", 1, 50};
  337. frequency = 1;
  338. volume = "(1-camPos)*(speed factor[5, 60])*(speed factor[5, 60])";
  339. };
  340. class GStress
  341. {
  342. sound[] = {"A3\Sounds_F\vehicles\noises\vehicle_stress2e", "db-10", 1, 50};
  343. frequency = 1;
  344. volume = "engineOn * (1-camPos) * ((gmeterZ factor[1.5, 2.5]) + (gmeterZ factor[0.5, -0.5]))";
  345. };
  346. };
  347. };
  348. // class Sounds:Sounds
  349. // {
  350. // class EngineExt
  351. // {
  352. // sound[] = {"RD501_Vehicles\sounds\LAAT\laat_Idle.ogg", 1.25893, 1, 400};
  353. // //sound[] = {"LAAT\sounds\laatengine_new.ogg", 0.3, .05};
  354. // frequency = "rotorSpeed";
  355. // volume = "camPos*((rotorSpeed-0.72)*4)";
  356. // };
  357. // class RotorExt
  358. // {
  359. // sound[] = {"RD501_Vehicles\sounds\LAAT\laat_Idle.ogg", 1, 1, 4000};
  360. // //sound[] = {"LAAT\sounds\laatengine_new.ogg", 1, .05, 4000};
  361. // frequency = "rotorSpeed * (1-rotorThrust/5)";
  362. // volume = "camPos*(0 max (rotorSpeed-0.1))*(1 + rotorThrust)";
  363. // cone[] = {1.6, 3.14, 1.6, 0.95};
  364. // };
  365. // class RotorNoiseExt
  366. // {
  367. // sound[] = {"", "db0", 1, 400};
  368. // frequency = 1;
  369. // volume = "(camPos*(rotorThrust factor [0.6, 1]))";
  370. // cone[] = {0.7, 1.3, 1, 0};
  371. // };
  372. // class EngineInt
  373. // {
  374. // sound[] = {"RD501_Vehicles\sounds\LAAT\laat_Idle.ogg", 0.3, 1};
  375. // //sound[] = {"LAAT\sounds\laatengine_new.ogg", 0.3, .05};
  376. // frequency = "rotorSpeed";
  377. // volume = "2 * (1-camPos)*(rotorSpeed factor[0.4,1])";
  378. // };
  379. // class RotorInt
  380. // {
  381. // sound[] = {"RD501_Vehicles\sounds\LAAT\laat_Idle.ogg", 0.3, 1};
  382. // frequency = "rotorSpeed * (1-rotorThrust/5)";
  383. // volume = "(1-camPos) * (rotorSpeed factor[0.3, 1]) * (1 + rotorThrust)";
  384. // };
  385. // };
  386. // class SoundsExt:SoundsExt
  387. // {
  388. // class Sounds:Sounds
  389. // {
  390. // class EngineExt
  391. // {
  392. // sound[] = {"RD501_Vehicles\sounds\LAAT\laat_Idle.ogg", 1.25893, 1, 400};
  393. // //sound[] = {"LAAT\sounds\laatengine_new.ogg", 1, 1, 3000};
  394. // //sound[] = {"LAAT\sounds\laatengine_new.ogg", 1, .05, 3000};
  395. // frequency = "rotorSpeed";
  396. // volume = "camPos*((rotorSpeed-0.72)*4)";
  397. // };
  398. // class RotorExt
  399. // {
  400. // sound[] = {"RD501_Vehicles\sounds\LAAT\laat_Idle.ogg", 1, 1, 4000};
  401. // //sound[] = {"LAAT\sounds\laatengine_new.ogg", 1, .05, 4000};
  402. // frequency = "rotorSpeed * (1-rotorThrust/5)";
  403. // volume = "camPos*(0 max (rotorSpeed-0.1))*(1 + rotorThrust)";
  404. // cone[] = {1.6, 3.14, 1.6, 0.95};
  405. // };
  406. // class RotorNoiseExt
  407. // {
  408. // sound[] = {"", "db0", 1, 400};
  409. // frequency = 1;
  410. // volume = "(camPos*(rotorThrust factor [0.6, 1]))";
  411. // cone[] = {0.7, 1.3, 1, 0};
  412. // };
  413. // class EngineInt
  414. // {
  415. // sound[] = {"RD501_Vehicles\sounds\LAAT\laat_Idle.ogg", 0.3, 1};
  416. // //sound[] = {"LAAT\sounds\laatengine_new.ogg", 0.3, .05};
  417. // frequency = "rotorSpeed";
  418. // volume = "2 * (1-camPos)*(rotorSpeed factor[0.4,1])";
  419. // };
  420. // class RotorInt
  421. // {
  422. // sound[] = {"RD501_Vehicles\sounds\LAAT\laat_Idle.ogg", 0.3, 1};
  423. // frequency = "rotorSpeed * (1-rotorThrust/5)";
  424. // volume = "(1-camPos) * (rotorSpeed factor[0.3, 1]) * (1 + rotorThrust)";
  425. // };
  426. // };
  427. // };