Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.76 KB | None | 0 0
  1. class LIB_Molotov_Ammo: BulletBase{
  2. craterEffects = "";
  3. soundHit[] = {"\a3\sounds_f\sfx\fire1_loop.wss",0.01,1};
  4. hit = 1;
  5. indirectHit = 0.5;
  6. indirectHitRange = 0.8;
  7. cartridge = "";
  8. cost = 2;
  9. visibleFire = 32;
  10. audibleFire = 12;
  11. visibleFireTime = 20;
  12. airFriction = 0;
  13. timetolive = 5;
  14. typicalSpeed = 30;
  15. deflecting = 90;
  16. deflectionSlowDown = 0.01;
  17. explosive = 0.5;
  18. fuseDistance = 2;
  19. caliber = 1.5;
  20. explosionEffects = "LIB_Moltov_Impact_Flame";
  21. model = "\A3\Weapons_f\Data\bullettracer\tracer_yellow";
  22. tracerScale = 1;
  23. tracerStartTime = 0;
  24. tracerEndTime = 5;
  25. soundEmpty[] = {"",1,1,1};
  26. /*hitGroundSoft[] = {"\a3\sounds_f\sfx\fire1_loop.wss",0.01,1};
  27. hitGroundHard[] = {"\a3\sounds_f\sfx\fire1_loop.wss",0.01,1};
  28. hitMan[] = {"\a3\sounds_f\sfx\fire1_loop.wss",0.01,1};
  29. hitArmor[] = {"\a3\sounds_f\sfx\fire1_loop.wss",0.01,1};
  30. hitIron[] = {"\a3\sounds_f\sfx\fire1_loop.wss",0.01,1};
  31. hitBuilding[] = {"\a3\sounds_f\sfx\fire1_loop.wss",0.01,1};
  32. hitFoliage[] = {"\a3\sounds_f\sfx\fire1_loop.wss",0.01,1};
  33. hitWood[] = {"\a3\sounds_f\sfx\fire1_loop.wss",0.01,1};
  34. hitGlass[] = {"\a3\sounds_f\sfx\fire1_loop.wss",0.01,1};
  35. hitGlassArmored[] = {"\a3\sounds_f\sfx\fire1_loop.wss",0.01,1};
  36. hitConcrete[] = {"\a3\sounds_f\sfx\fire1_loop.wss",0.01,1};
  37. hitRubber[] = {"\a3\sounds_f\sfx\fire1_loop.wss",0.01,1};
  38. hitPlastic[] = {"\a3\sounds_f\sfx\fire1_loop.wss",0.01,1};
  39. hitDefault[] = {"\a3\sounds_f\sfx\fire1_loop.wss",0.01,1};
  40. hitMetal[] = {"\a3\sounds_f\sfx\fire1_loop.wss",0.01,1};
  41. hitMetalplate[] = {"\a3\sounds_f\sfx\fire1_loop.wss",0.01,1};*/
  42. };
  43.  
  44.  
  45.  
  46.  
  47. -02394-92384092380
  48.  
  49. class CfgCloudlets {
  50. class Default;
  51. class LIB_MolotovExp: Default {
  52. interval = 1;
  53. circleRadius = 0;
  54. circleVelocity[] = {0,0,0};
  55. particleShape = "\A3\data_f\ParticleEffects\Universal\Universal.p3d";
  56. particleFSNtieth = 16;
  57. particleFSIndex = 1;
  58. particleFSFrameCount = 1;
  59. particleFSLoop = 0;
  60. angleVar = 1;
  61. animationName = "";
  62. particleType = "Billboard";
  63. timerPeriod = 1;
  64. lifeTime = 0.05;
  65. moveVelocity[] = {0,0,0};
  66. rotationVelocity = 0;
  67. weight = 10;
  68. volume = 7.9;
  69. rubbing = 0.1;
  70. size[] = {1,1};
  71. color[] = {{1,1,1,0},{1,1,1,0}};
  72. animationSpeed[] = {1};
  73. randomDirectionPeriod = 0;
  74. randomDirectionIntensity = 0;
  75. onTimerScript = "";
  76. beforeDestroyScript = "\pr\frl\addons\ifa_compat\effects\molotov3.sqf";
  77. lifeTimeVar = 0;
  78. positionVar[] = {0,0,0};
  79. MoveVelocityVar[] = {0,0,0};
  80. rotationVelocityVar = 0;
  81. sizeVar = 0.2;
  82. colorVar[] = {0,0,0,0};
  83. randomDirectionPeriodVar = 0;
  84. randomDirectionIntensityVar = 0;
  85. };
  86. class MolotovFlameF: Default
  87. {
  88. interval = 0.03;
  89. circleRadius = 0;
  90. circleVelocity[] = {0,0,0};
  91. particleShape = "\A3\data_f\ParticleEffects\Universal\Universal";
  92. particleFSNtieth = 16;
  93. particleFSIndex = 10;
  94. particleFSFrameCount = 32;
  95. particleFSLoop = 1;
  96. angleVar = 1;
  97. animationName = "";
  98. particleType = "Billboard";
  99. timerPeriod = 3;
  100. lifeTime = 0.3;
  101. moveVelocity[] = {0,0.15,0};
  102. rotationVelocity = 0;
  103. weight = 0.05;
  104. volume = 0.04;
  105. rubbing = 0.16;
  106. size[] = {0.8,0};//size[] = {0.3,0};
  107. sizeCoef = 1;
  108. color[] = {{1,0.6,0.6,-80},{1,0.6,0.6,-80},{0,0,0,0}};
  109. colorCoef[] = {1,1,1,1};
  110. animationSpeed[] = {1};
  111. animationSpeedCoef = 1;
  112. randomDirectionPeriod = 0;
  113. randomDirectionIntensity = 0;
  114. onTimerScript = "";
  115. beforeDestroyScript = "";
  116. lifeTimeVar = 0.15;
  117. position[] = {0,0,0};
  118. positionVar[] = {0.018,0.08,0.018};
  119. moveVelocityVar[] = {0.03,0.09,0.03};
  120. rotationVelocityVar = 0;
  121. sizeVar = 0.06;
  122. colorVar[] = {0.1,0.1,0.1,0};
  123. randomDirectionPeriodVar = 0;
  124. randomDirectionIntensityVar = 0;
  125. };
  126. class MolotovFlameS: Default
  127. {
  128. interval = 0.01;
  129. circleRadius = 0;
  130. circleVelocity[] = {0,0,0};
  131. particleShape = "\A3\data_f\ParticleEffects\Universal\Universal";
  132. particleFSNtieth = 16;
  133. particleFSIndex = 7;
  134. particleFSFrameCount = 48;
  135. particleFSLoop = 1;
  136. angleVar = 1;
  137. animationName = "";
  138. particleType = "Billboard";
  139. timerPeriod = 1;
  140. lifeTime = 1.2;
  141. moveVelocity[] = {0,0.6,0};
  142. rotationVelocity = 0;
  143. weight = 0.05;
  144. volume = 0.04;
  145. rubbing = 0.22;
  146. size[] = {0.54,1.4};//size[] = {0.14,0.4};
  147. sizeCoef = 1;
  148. color[] = {{0.1,0.1,0.1,0.03},{0.2,0.2,0.2,0.05},{0.2,0.2,0.2,0.025},{0.3,0.3,0.3,0.01},{0.4,0.4,0.4,0.005}};
  149. colorCoef[] = {1,1,1,1};
  150. animationSpeed[] = {1.5,0.5};
  151. animationSpeedCoef = 1;
  152. randomDirectionPeriod = 0.4;
  153. randomDirectionIntensity = 0.02;
  154. onTimerScript = "";
  155. beforeDestroyScript = "";
  156. lifeTimeVar = 0.5;
  157. position[] = {0,0,0};
  158. positionVar[] = {0.03,0.03,0.03};
  159. MoveVelocityVar[] = {0.25,0.5,0.25};
  160. rotationVelocityVar = 0;
  161. sizeVar = 0.1;
  162. colorVar[] = {0,0,0,0};
  163. randomDirectionPeriodVar = 0.1;
  164. randomDirectionIntensityVar = 0.01;
  165. };
  166. class MolotovFlameZ: Default
  167. {
  168. interval = 0.01;
  169. circleRadius = 0;
  170. circleVelocity[] = {0,0,0};
  171. particleShape = "\A3\data_f\ParticleEffects\Universal\Universal";
  172. particleFSNtieth = 16;
  173. particleFSIndex = 7;
  174. particleFSFrameCount = 48;
  175. particleFSLoop = 1;
  176. angleVar = 1;
  177. animationName = "";
  178. particleType = "Billboard";
  179. timerPeriod = 1;
  180. lifeTime = 1.2;
  181. moveVelocity[] = {0,0.6,0};
  182. rotationVelocity = 1;
  183. weight = 0.3;
  184. volume = 0.25;
  185. rubbing = 0.25;
  186. size[] = {0.54,1.4};//size[] = {0.14,0.4};
  187. sizeCoef = 1;
  188. color[] = {{1,1,1,-1},{1,1,1,-0.8},{1,1,1,-1},{1,1,1,-0.2},{1,1,1,-0.1}};
  189. colorCoef[] = {1,1,1,1};
  190. animationSpeed[] = {1.5,0.5};
  191. animationSpeedCoef = 1;
  192. randomDirectionPeriod = 0.1;
  193. randomDirectionIntensity = 0.1;
  194. onTimerScript = "";
  195. beforeDestroyScript = "";
  196. lifeTimeVar = 0.5;
  197. position[] = {0,0,0};
  198. positionVar[] = {0.03,0.03,0.03};
  199. MoveVelocityVar[] = {0.25,0.5,0.25};
  200. rotationVelocityVar = 0;
  201. sizeVar = 0.1;
  202. colorVar[] = {0,0,0,0};
  203. randomDirectionPeriodVar = 0.1;
  204. randomDirectionIntensityVar = 0.01;
  205. };
  206. class FireBallBrightSmallMolotov: Default
  207. {
  208. interval = "0.05 * interval + 0.05";
  209. circleRadius = 0;
  210. circleVelocity[] = {0,0,0};
  211. particleShape = "\A3\data_f\ParticleEffects\Universal\Universal";
  212. particleFSNtieth = 16;
  213. particleFSIndex = 0;
  214. particleFSFrameCount = 32;
  215. particleFSLoop = 0;
  216. angleVar = 360;
  217. animationName = "";
  218. particleType = "Billboard";
  219. timerPeriod = 1;
  220. lifeTime = 20.8;
  221. moveVelocity[] = {0,0.5,0};
  222. rotationVelocity = 0;
  223. weight = 0.04;
  224. volume = 0.04;
  225. rubbing = 0.1;
  226. size[] = {"0.0125 * intensity + 2","0.0125 * intensity + 6"};
  227. color[] = {{1,1,1,-4},{1,1,1,-3},{1,1,1,-2},{1,1,1,-1},{1,1,1,0}};
  228. animationSpeed[] = {0.5};
  229. randomDirectionPeriod = 0.2;
  230. randomDirectionIntensity = 0.2;
  231. onTimerScript = "";
  232. beforeDestroyScript = "";
  233. lifeTimeVar = 0.5;
  234. positionVar[] = {0.6,1,0.6};
  235. MoveVelocityVar[] = {1,1,1};
  236. rotationVelocityVar = 0;
  237. sizeVar = 0.2;
  238. colorVar[] = {0,0,0,2};
  239. randomDirectionPeriodVar = 0;
  240. randomDirectionIntensityVar = 0;
  241. };
  242. class MolotovDestructionSmokeSmall: Default
  243. {
  244. interval=0.1;
  245. circleRadius=0;
  246. circleVelocity[]={0,0,0};
  247. particleShape="warfxpe\ParticleEffects\Universal\Smoke_01";
  248. particleFSNtieth=1;
  249. particleFSIndex=0;
  250. particleFSFrameCount=1;
  251. particleFSLoop=0;
  252. angleVar=360;
  253. animationName="";
  254. particleType="Billboard";
  255. timerPeriod=1;
  256. lifeTime=12;//30
  257. moveVelocity[]={0,1.5,0};
  258. rotationVelocity=0;
  259. weight=10;
  260. volume=7.9000001;
  261. rubbing=0.075000003;
  262. size[]={1,5};//size[]={3,15};
  263. color[]=
  264. {
  265. {0.009,0.009,0.009,0.1},
  266. {0.009,0.009,0.009,0.05},
  267. {0.009,0.009,0.009,0.01}
  268. };
  269. animationSpeed[]={1};
  270. randomDirectionPeriod=5.5;
  271. randomDirectionIntensity=0.30000001;
  272. onTimerScript="";
  273. beforeDestroyScript="";
  274. lifeTimeVar=1;
  275. positionVar[]={0,0,0};
  276. MoveVelocityVar[]={0.25,0.25,0.25};
  277. rotationVelocityVar=50;
  278. sizeVar=0.25;
  279. colorVar[]={0,0,0,0.5};
  280. randomDirectionPeriodVar=0;
  281. randomDirectionIntensityVar=0;
  282. };
  283. class ObjectDestructionFire1Molotov: Default
  284. {
  285. interval=0.1;
  286. circleRadius=0;
  287. circleVelocity[]={0,0,0};
  288. particleFSNtieth=8;
  289. particleFSIndex=0;
  290. particleFSFrameCount=64;
  291. particleFSLoop=1;
  292. angleVar=0;
  293. particleShape="warfxpe\ParticleEffects\Universal\largefire_01";
  294. animationName="";
  295. particleType="Billboard";
  296. timerPeriod=1;
  297. lifeTime=18;
  298. moveVelocity[]={0,0.5,0};
  299. rotationVelocity=0;
  300. weight=10.5;
  301. volume=7.9000001;
  302. rubbing=0.075000003;
  303. size[]={5,7};
  304. color[]=
  305. {
  306. {1,1,1,0},
  307. {1,1,1,-4},
  308. {1,1,1,0}
  309. };
  310. animationSpeed[]={0.40000001};
  311. randomDirectionPeriod=1;
  312. randomDirectionIntensity=0.4;
  313. onTimerScript="";
  314. beforeDestroyScript="";
  315. lifeTimeVar=0.5;
  316. positionVar[]={0.5,0.5,0.5};
  317. moveVelocityVar[]={0,0.5,0};
  318. rotationVelocityVar=0;
  319. sizeVar=0.25;
  320. colorVar[]={0,0,0,0};
  321. randomDirectionPeriodVar=0;
  322. randomDirectionIntensityVar=0;
  323. };
  324. class ObjectDestructionFire2Molotov: Default
  325. {
  326. interval=0.1;
  327. circleRadius=0;
  328. circleVelocity[]={0,0,0};
  329. particleFSNtieth=8;
  330. particleFSIndex=0;
  331. particleFSFrameCount=64;
  332. particleFSLoop=1;
  333. angleVar=0;
  334. particleShape="warfxpe\ParticleEffects\Universal\largefire_01";
  335. animationName="";
  336. particleType="Billboard";
  337. timerPeriod=1;
  338. lifeTime=20;
  339. moveVelocity[]={0,0.5,0};
  340. rotationVelocity=0;
  341. weight=10;
  342. volume=7.9000001;
  343. rubbing=0.075000003;
  344. size[]={2};
  345. color[]=
  346. {
  347. {1,1,1,0},
  348. {1,1,1,-2},
  349. {1,1,1,0}
  350. };
  351. animationSpeed[]={0.40000001};
  352. randomDirectionPeriod=0;
  353. randomDirectionIntensity=0;
  354. onTimerScript="";
  355. beforeDestroyScript="";
  356. lifeTimeVar=0.5;
  357. positionVar[]={0.5,0.5,0.5};
  358. moveVelocityVar[]={0,0.5,0};
  359. rotationVelocityVar=0;
  360. sizeVar=0.25;
  361. colorVar[]={0,0,0,0};
  362. randomDirectionPeriodVar=0;
  363. randomDirectionIntensityVar=0;
  364. };
  365. class MolotovObjectDestructionFire1Small: Default
  366. {
  367. interval=0.1;
  368. circleRadius=0;
  369. circleVelocity[]={0,0,0};
  370. particleFSNtieth=8;
  371. particleFSIndex=0;
  372. particleFSFrameCount=64;
  373. particleFSLoop=1;
  374. angleVar=0;
  375. particleShape="warfxpe\ParticleEffects\Universal\largefire_01";
  376. animationName="";
  377. particleType="Billboard";
  378. timerPeriod=1;
  379. lifeTime=2;//
  380. moveVelocity[]={0,0.5,0};
  381. rotationVelocity=0;
  382. weight=11;
  383. volume=7.9000001;
  384. rubbing=0.075000003;
  385. size[]={1.6};
  386. color[]=
  387. {
  388. {1,1,1,0},
  389. {1,1,1,-4},
  390. {1,1,1,0}
  391. };
  392. animationSpeed[]={0.40000001};
  393. randomDirectionPeriod=1;
  394. randomDirectionIntensity=0.4;
  395. onTimerScript="";
  396. beforeDestroyScript="";
  397. lifeTimeVar=0.5;
  398. positionVar[]={0.5,0.5,0.5};
  399. moveVelocityVar[]={0,0.5,0};
  400. rotationVelocityVar=0;
  401. sizeVar=0.25;
  402. colorVar[]={0,0,0,0};
  403. randomDirectionPeriodVar=0;
  404. randomDirectionIntensityVar=0;
  405. damageType="Fire"; //damage type, only available option is "Fire" so far
  406. coreIntensity = 0.15; //damage coeficient in the center of fire
  407. coreDistance = 2.0; //how far can unit get damage
  408. damageTime = 0.5; //how often is unit getting damage
  409. };
  410. class MolotovObjectDestructionFireTrail: Default
  411. {
  412. interval=0.09;//
  413. circleRadius=0;
  414. circleVelocity[]={0,0,0};
  415. particleShape="A3\data_f\ParticleEffects\Universal\Universal";
  416. particleFSNtieth=16;
  417. particleFSIndex=4;
  418. particleFSFrameCount=16;
  419. particleFSLoop=0;
  420. angle=0;
  421. angleVar=360;
  422. animationName="";
  423. particleType="Billboard";
  424. timerPeriod=1;
  425. lifeTime=0.9;
  426. moveVelocity[]={0,0,0};
  427. rotationVelocity=0;
  428. weight=10.1;
  429. volume=7.9;
  430. rubbing=0.2;
  431. size[]={0,3,2,1,0.8,0.5,0.2,0};
  432. color[]=
  433. {
  434. {1,1,1,-10},
  435. {1,1,1,-1},
  436. {1,1,1,-1},
  437. {1,1,1,-1},
  438. {1,1,1,-1},
  439. {1,1,1,-1},
  440. {1,1,1,-1}
  441. };
  442. animationSpeed[]={1.5};
  443. randomDirectionPeriod=0.2;
  444. randomDirectionIntensity=0.6;
  445. onTimerScript="";
  446. beforeDestroyScript="";
  447. lifeTimeVar=0;
  448. positionVar[]={0,0,0};
  449. MoveVelocityVar[]={0,0,0};
  450. rotationVelocityVar=0;
  451. sizeVar=0;
  452. colorVar[]={0,0,0,0};
  453. randomDirectionPeriodVar=0;
  454. randomDirectionIntensityVar=0;
  455. emissiveColor[]=
  456. {
  457. {1000,1000,1000,1}
  458. };
  459. };
  460. };
  461. class MolotovExplosionEffects
  462. {
  463. class GrenadeExp1
  464. {
  465. simulation = "particles";
  466. type = "LIB_MolotovExp";
  467. position[] = {0,0,0};
  468. intensity = 1;
  469. interval = 1;
  470. lifeTime = 0.5;
  471. };
  472. class ExpSparks
  473. {
  474. simulation = "particles";
  475. type = "ExpSparks";
  476. position[] = {0,0,0};
  477. intensity = 1;
  478. interval = 1;
  479. lifeTime = 1;
  480. };
  481. class FireBall
  482. {
  483. simulation="particles";
  484. type="ObjectDestructionFire1Molotov";
  485. intensity=1;
  486. interval=1;
  487. position[]={0,0,0};
  488. lifeTime=30;
  489. enabled="distToWater interpolate [0,0.0001,-1,1]";
  490. };
  491. class LightExp
  492. {
  493. simulation = "light";
  494. type = "ExploLight";
  495. position[] = {0,1.5,0};
  496. intensity = 0.001;
  497. interval = 1;
  498. lifeTime = 0.5;
  499. };
  500. class Explosion1
  501. {
  502. simulation = "particles";
  503. type = "ObjectDestructionFire2Molotov";
  504. position[] = {0,0,0};
  505. intensity = 1;
  506. interval = 1;
  507. lifeTime = 0.2;
  508. };
  509. class Explosion2
  510. {
  511. simulation = "particles";
  512. type = "FireBallBrightSmallMolotov";
  513. position[] = {0,0,0};
  514. intensity = 10;
  515. interval = 1;
  516. lifeTime = 0.3;
  517. };
  518. class Smoke1
  519. {
  520. simulation = "particles";
  521. type = "VehExpSmokeSmall";
  522. position[] = {0,0,0};
  523. intensity = 1;
  524. interval = 1;
  525. lifeTime = 1;
  526. };
  527. class SmallSmoke1
  528. {
  529. simulation = "particles";
  530. type = "VehExpSmoke2Small";
  531. position[] = {0,0,0};
  532. intensity = 1;
  533. interval = 1;
  534. lifeTime = 1;
  535. };
  536. class Trail
  537. {
  538. simulation="particles";
  539. type="Hellfire_Explosion_02";
  540. intensity=1;
  541. interval=1;
  542. position[]={0,0,0};
  543. lifeTime=5;
  544. qualityLevel=2;
  545. enabled="distToWater interpolate [0,0.0001,-1,1]";
  546. };
  547. class Trail2
  548. {
  549. simulation="particles";
  550. type="hellfire_smoke_01";
  551. intensity=1;
  552. interval=1;
  553. position[]={0,0,0};
  554. lifeTime=5;
  555. qualityLevel=2;
  556. enabled="distToWater interpolate [0,0.0001,-1,1]";
  557. };
  558. class Trail3
  559. {
  560. simulation="particles";
  561. type="hellfire_smoke_02";
  562. intensity=1;
  563. interval=1;
  564. position[]={0,0,0};
  565. lifeTime=5;
  566. qualityLevel=2;
  567. enabled="distToWater interpolate [0,0.0001,-1,1]";
  568. };
  569. };
  570.  
  571. class LIB_Moltov_Impact_Flame
  572. {
  573. class Light1
  574. {
  575. simulation = "light";
  576. type = "ObjectDestructionLight";
  577. position[] = {0,0,0};
  578. intensity = 1;
  579. interval = 1;
  580. lifeTime = 30;
  581. };
  582. class Fire1
  583. {
  584. simulation = "particles";
  585. type = "MolotovObjectDestructionFire1Small";//real fire particle
  586. position[] = {0,0,0};
  587. intensity = 1;
  588. interval = 1;
  589. lifeTime = 50;
  590. };
  591.  
  592. class Fire2
  593. {
  594. simulation = "particles";
  595. type = "MolotovObjectDestructionFireTrail";//fireball
  596. position[] = {0,0,0};
  597. intensity = 1;
  598. interval = 1;
  599. lifeTime = 50;
  600. };
  601. class Fire3
  602. {
  603. simulation = "particles";
  604. type = "MolotovDestructionSmokeSmall";
  605. position[] = {0,0,0};
  606. intensity = 1;
  607. interval = 1;
  608. lifeTime = 50;
  609. };
  610. };
  611.  
  612.  
  613. 9348123470129378401293840
  614.  
  615. if (local player) then
  616. {
  617. _pos = [(_this select 0),(_this select 1),((_this select 2)+1)];
  618. //_pos set [2, (_pos select 2) + 0.1];
  619. _number1 = 10;
  620. _number2 = 4;
  621. _speed = (_number1 + (random _number2));
  622.  
  623. _pc = ((playersNumber east)+(playersNumber west)+(playersNumber resistance)+(playersNumber civilian)+(playersNumber sideEnemy));
  624. if (_pc == 0) then {_pc = 1;};
  625.  
  626. for "_i" from 1 to (24/_pc) do
  627. {
  628. private _posOffset = _pos apply { _x - 0.075 + random 0.15 };
  629. _bullet = "Molotov_Fire" createVehicleLocal _posOffset;
  630. _bullet setPos _posOffset;
  631. _ugol = (random 360);
  632. _height = 2;//���� �������
  633. _bullet setVelocity [(_speed*(sin _ugol)),(_speed*(cos _ugol)),(random _height)];
  634. };
  635. };
  636. //LIB_Molotov_Ammo
  637. //_number1 = 13;
  638. //_number2 = 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement