Advertisement
Guest User

mme2.fx

a guest
Feb 26th, 2012
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.57 KB | None | 0 0
  1. // q3mme
  2. // compatible with wolfcam
  3.  
  4.  
  5. // general weapon effects
  6.  
  7. // BUBBLES
  8.  
  9. weapon/common/bubbles {
  10. shader waterbubble
  11. distance 5 + rand*10 {
  12. size 1 + rand * 2
  13. random dir
  14. addScale origin dir origin 10 * rand
  15. emitter 1 + rand*0.25 {
  16. alphaFade 0
  17. origin2 origin2 + lerp * 8
  18. Sprite
  19. }
  20. }
  21. }
  22.  
  23.  
  24. //RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL--RL
  25.  
  26. weapon/rocket/flash {
  27. color 1 0.75 0
  28. size 300 + rand*32
  29. light
  30. }
  31.  
  32. weapon/rocket/projectile {
  33. model "models/ammo/rocket/rocket.md3"
  34. dirModel
  35.  
  36. loopSound "sound/weapons/rocket/rockfly.wav"
  37.  
  38.  
  39. color 1 .3 0
  40. alpha 0.5
  41. shader flareShader
  42.  
  43. repeat 3
  44. interval 0.2 {
  45. normalize dir v0
  46. inverse v0
  47. wobble v0 velocity 2 + rand*5
  48. scale velocity velocity 65 + rand*50
  49. emitter 0.25 + rand*0.35 {
  50. size 2 * ( 1 - 0.5 * lerp * 1.5 )
  51. colorFade 0.001
  52. moveGravity 0
  53. Sprite
  54. }
  55. }
  56.  
  57.  
  58. }
  59.  
  60. weapon/rocket/trail {
  61. color 1 0.75 0
  62.  
  63. size 100
  64. Light
  65.  
  66.  
  67. color 0.3 0.3 0.3
  68. alpha 0.8
  69. shader smokePuff
  70. rotate 360 * rand
  71. distance 10 {
  72. emitter 1 {
  73. alphaFade 0
  74. size 6 + lerp * 15
  75. sprite cullNear
  76. }
  77. }
  78.  
  79. }
  80.  
  81.  
  82.  
  83.  
  84. weapon/rocket/impact
  85. {
  86. //
  87.  
  88. vibrate 40
  89. sound sound/weapons/rocket/rocklx1a.wav
  90.  
  91. shader gfx/damage/burn_med_mrk
  92. size 50
  93. Decal
  94.  
  95. //
  96. shader rocketExplosion
  97. size 30
  98. color 1 0.75 0
  99. emitter 1 {
  100. Sprite
  101. size 30 * clip(2 - 2*lerp)
  102. }
  103.  
  104.  
  105. //
  106.  
  107. color 1 0.5 0.1
  108. emitter 1
  109. {
  110. Sprite
  111. size 200 * clip(2 - 2*lerp)
  112. Light
  113. }
  114.  
  115. //
  116.  
  117. shader flareShader
  118. alpha 1
  119. color 1 1 1
  120. width 5
  121. repeat 1 + 2*rand {
  122. wobble dir velocity 100 + rand*20
  123. scale velocity velocity 100 + rand*50
  124. size 180*rand*rand
  125. emitter "0.3 * rand" {
  126. moveGravity 100
  127. colorFade 0.9
  128. spark
  129. }
  130. }
  131.  
  132.  
  133. color 1 1 1
  134. width 5
  135. repeat 1 + 3*rand {
  136. wobble dir velocity 150 + rand*20
  137. scale velocity velocity 200 + rand*50
  138. size 150*rand*rand
  139. emitter "0.3 * rand" {
  140. moveGravity 100
  141. colorFade 0.9
  142. spark
  143. }
  144. }
  145.  
  146. // particles with trail
  147. alpha 0.75
  148. color 1 0.5 0.25
  149. shader flareshader
  150. repeat 2 {
  151. random velocity
  152. scale velocity velocity 200 + rand * 150
  153. size 0.8 + rand * 0.9
  154.  
  155. emitter 0.5 + rand*0.7 { // PARTICLE
  156. moveBounce 0 0.75
  157. colorFade 0
  158. Sprite
  159.  
  160. sink 0.9 50
  161. moveBounce 800 0.4
  162. // wolfcam include size when adding models
  163. size 1
  164. shader flareshader
  165. sprite
  166. distance 0.5 {
  167. // Slowly sink downwards
  168. clear velocity
  169. velocity2 -15
  170. rotate rand*360
  171.  
  172. color 1 0.5 0.25
  173. alpha 0.75
  174. shader flareshader
  175. repeat 2 {
  176. normalize dir v0
  177. inverse v0
  178. wobble v0 velocity rand*10
  179. //scale velocity velocity 75 + rand*50
  180. emitter 0.075 + rand*0.10 { // IT'S TRAIL
  181. size 0.8 + rand * 0.9
  182. colorFade 0.1
  183. moveGravity 0
  184. Sprite
  185. }
  186. }
  187. }
  188. }
  189. }
  190.  
  191. // particles with trail
  192. alpha 0.75
  193. color 1 0.5 0.25
  194. shader flareshader
  195. repeat 3 {
  196. random velocity
  197. scale velocity velocity 250 + rand * 300
  198. size 0.4 + rand * 0.5
  199.  
  200. emitter 0.5 + rand*0.7 { // PARTICLE
  201. moveBounce 0 0.75
  202. colorFade 0
  203. Sprite
  204.  
  205. sink 0.9 50
  206. moveBounce 800 0.4
  207. // wolfcam include size when adding models
  208. size 1
  209. shader flareshader
  210. sprite
  211. distance 0.5 {
  212. // Slowly sink downwards
  213. clear velocity
  214. velocity2 -15
  215. rotate rand*360
  216.  
  217. color 1 0.5 0.25
  218. alpha 0.75
  219. shader flareshader
  220. repeat 4 + rand*5 {
  221. normalize dir v0
  222. inverse v0
  223. wobble v0 velocity rand*10
  224. //scale velocity velocity 75 + rand*50
  225. emitter 0.075 + rand*0.10 { // IT'S TRAIL
  226. size 0.4 + rand * 0.8
  227. colorFade 0.1
  228. moveGravity 0
  229. Sprite
  230. }
  231. }
  232. }
  233. }
  234. }
  235.  
  236.  
  237. //
  238.  
  239.  
  240.  
  241. repeat 0 {
  242. wobble dir velocity 10 + rand*20
  243. scale velocity velocity 200 + rand*50
  244. size 3 + rand*0
  245. emitter "0.6*rand + rand*0.6" {
  246. moveBounce 80 0.5
  247. colorFade 0.7
  248. sprite
  249. }
  250. }
  251. width 1
  252. repeat 4 {
  253. wobble dir velocity rand*70
  254. scale velocity velocity 300 + rand*250
  255. size 8 + rand*2
  256. emitter "0.75 + rand*0.4" {
  257. moveBounce 150 0.5
  258. colorFade 0.9
  259. spark
  260. }
  261. }
  262. shader flareShader
  263. repeat 5 {
  264. wobble dir velocity 40 + rand*20
  265. scale velocity velocity 200 + rand*50
  266. size 0.6 + rand*1
  267. emitter "3*rand + rand" {
  268. moveBounce 250 0.5
  269. colorFade 0.7
  270. sprite
  271. }
  272. }
  273.  
  274.  
  275.  
  276. }
  277.  
  278. //GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL--GL
  279.  
  280. weapon/grenade/flash {
  281. color 1 0.75 0
  282. size 300 + rand*32
  283. light
  284. }
  285.  
  286. weapon/grenade/projectile {
  287. // wolfcam need to do model rotation yourself
  288. // wolfcam add size option when adding models
  289. model "models/ammo/grenade1.md3"
  290. rotate time * 1000 / 4
  291. size 1
  292. anglesModel
  293. color 1 .4 0
  294. alpha 0.5
  295. shader flareshader
  296.  
  297. repeat 1
  298. interval 0.25 {
  299. normalize dir v0
  300. inverse v0
  301. wobble v0 velocity 15 + rand*30
  302. scale velocity velocity 65 + rand*50
  303. emitter 0.1 + rand*0.25 {
  304. size 2.5 * ( 1 - 0.5 * lerp * 1.5 )
  305. colorFade 0.001
  306. moveGravity 0
  307. Sprite
  308. }
  309. }
  310.  
  311.  
  312. }
  313.  
  314. weapon/grenade/trail
  315. {
  316. color 0.3 0.3 0.3
  317. alpha 0.35
  318. shader smokePuff
  319. rotate 360 * rand
  320. distance 3 {
  321. emitter rand * rand //rand * rand
  322. {
  323. alphaFade 0
  324. size 8 + rand * 2 + lerp * 25
  325. sprite cullNear
  326. }
  327. }
  328. }
  329.  
  330.  
  331. weapon/grenade/impact {
  332. vibrate 20
  333. sound sound/weapons/rocket/rocklx1a.wav
  334. shader gfx/damage/burn_med_mrk
  335. size 100
  336. Decal
  337.  
  338.  
  339. shader rocketExplosion
  340. size 30
  341. color 1 0.75 0
  342. emitter 1 {
  343. // size will goto zero after 0.5 of the time
  344. Sprite
  345. size 30 * clip(2 - 2*lerp)
  346. Light
  347. }
  348.  
  349.  
  350.  
  351. //
  352.  
  353.  
  354.  
  355. color 1 1 1
  356. alpha 0.8
  357. shader flareShader
  358. repeat 16 {
  359. random velocity
  360. scale velocity velocity 250 + rand*50
  361. size 1.6 rand*3.5
  362. emitter 0.6 + rand*0.5 {
  363. colorFade 0.75
  364. Sprite
  365. moveBounce 400 0.75
  366. }
  367. }
  368.  
  369. }
  370.  
  371. //PLASMA--PLASMA--PLASMA--PLASMA--PLASMA--PLASMA--PLASMA--PLASMA--PLASMA--PLASMA--PLASMA--PLASMA--PLASMA--PLASMA--PLASMA--PLASMA--PLASMA--PLASMA--PLASMA
  372.  
  373. weapon/plasma/flash
  374. {
  375. color 0.6 0.6 1
  376. size 80 + rand*32
  377. light
  378. }
  379.  
  380. weapon/plasma/projectile (color 0 0.3 0.6)
  381. {
  382. color 0 0 0.9
  383. size 8
  384. Light
  385. shader flareshader
  386. sprite
  387.  
  388.  
  389. size 8
  390. shader sprites/plasma1
  391. sprite
  392. loopSound "sound/weapons/plasma/lasfly.wav"
  393. }
  394.  
  395. weapon/plasma/trail {
  396.  
  397.  
  398. size 90
  399. color 0.35 0.35 1
  400. Light
  401.  
  402.  
  403. color 0.7 0.7 1
  404. shader flareshader
  405. interval 0.03 {
  406. normalize dir v0
  407. inverse v0
  408. scale v0 velocity 75 + rand * 50
  409. origin0 origin0 + crand * 5
  410. origin1 origin1 + crand * 5
  411. origin2 origin2 + crand * 5
  412. velocity0 crand * 20
  413. velocity1 crand * 20
  414. velocity2 crand * 20
  415. emitter 0.1 + rand * 0.06 {
  416. size 2.5 + crand * 0.5
  417. colorFade 0
  418. moveGravity 0
  419. Sprite
  420.  
  421. interval 0.01 {
  422. origin0 origin0 + crand * 1
  423. origin1 origin1 + crand * 1
  424. origin2 origin2 + crand * 1
  425. velocity0 crand * 30
  426. velocity1 crand * 30
  427. velocity2 crand * 30
  428. shader flareshader
  429. emitter 0.1 + rand * 0.06 {
  430. size 2.5 + crand * 0.5
  431. color 0.7 0.7 1
  432. colorFade 0
  433. moveGravity 0
  434. Sprite
  435. }
  436. }
  437. }
  438. }
  439. }
  440.  
  441. weapon/plasma/impact {
  442. vibrate 3
  443. sound sound/weapons/plasma/plasmx1a.wav
  444.  
  445. shader plasmaExplosion
  446. model models/weaphits/ring02.md3
  447.  
  448.  
  449. rotate rand*360
  450. emitter 0.6 {
  451. dirModel
  452. }
  453. size 12
  454. shader gfx/damage/plasma_mrk
  455. Decal energy
  456.  
  457. width 1
  458. shader flareshader
  459. alpha 1
  460. color 0.7 0.7 1
  461. repeat 18 + 26*rand {
  462. random dir
  463. wobble dir velocity 120 + rand*80
  464. scale velocity velocity 250 + rand*120
  465. size 20*rand
  466. emitter "0.5 * rand" {
  467. colorFade 0.9
  468. spark
  469. }
  470. }
  471.  
  472. alpha 1
  473. color 0.7 0.7 1
  474. repeat 12 + rand*17 {
  475. wobble dir velocity 80 + rand*25
  476. scale velocity velocity 160 + rand*75
  477. size 1 + rand*2
  478. emitter "1 + rand*0.5" {
  479. moveBounce 450 0.6
  480. colorFade 0.7
  481. sprite
  482. }
  483. }
  484.  
  485. color 0 0.2 1
  486. emitter 0.6
  487. {
  488. Sprite
  489. size 100 * clip(2 - 2*lerp)
  490. Light
  491. }
  492. }
  493.  
  494.  
  495.  
  496. //RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG--RG
  497.  
  498. weapon/rail/flash {
  499. color 1 1 1
  500. size 300 + rand*32
  501. light
  502. }
  503.  
  504. weapon/rail/trail {
  505. copy dir v3
  506.  
  507. t0 v3
  508. normalize dir
  509.  
  510. shader flareshader
  511.  
  512. repeat (t0 / 0.75) {
  513. size 0.6 + crand * 1.2
  514. color 0.4 0.4 1
  515.  
  516.  
  517. addScale v1 dir origin loop * t0
  518. add parentOrigin origin origin
  519. origin0 origin0 + crand * 1
  520. origin1 origin1 + crand * 1
  521. origin2 origin2 + crand * 1
  522. velocity0 crand * 1
  523. velocity1 crand * 1
  524. velocity2 crand * 1
  525. emitter 1 {
  526. moveGravity 0
  527. ColorFade 0.7
  528. Sprite
  529. }
  530. }
  531. }
  532.  
  533. weapon/rail/impact {
  534. vibrate 80
  535. sound sound/weapons/plasma/plasmx1a.wav
  536.  
  537. rotate rand*360
  538. shader railExplosion
  539. model models/weaphits/ring02.md3
  540. emitter 0.6 {
  541. dirModel
  542.  
  543. size 40
  544. shader gfx/damage/plasma_mrk
  545. Decal energy
  546. }
  547.  
  548.  
  549. shader flareShader
  550. alpha 0.5
  551. color 0.7 0.7 1 // 1 0 0 // lines
  552. repeat 12 + 20*rand {
  553. width 1
  554. wobble dir velocity 100 + rand*20
  555. scale velocity velocity 200 + rand*50
  556. size 80*rand
  557. emitter "1.5 * rand" {
  558. colorFade 0.9
  559. spark
  560. }
  561. }
  562.  
  563.  
  564. shader flareShader
  565. alpha 0.5
  566. color 0.7 0.7 1
  567. repeat 0 {
  568. wobble dir velocity 10 + rand*20
  569. scale velocity velocity 250 + rand*75
  570. size 8 + rand*2.5
  571. emitter 0.5 + rand*0.5 {
  572. colorFade 0.75
  573. Sprite
  574. moveBounce 400 0.75
  575. }
  576. }
  577. }
  578.  
  579.  
  580. //LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG--LG
  581.  
  582. weapon/lightning/flash {
  583. color 0.6 0.6 1
  584. size 50 + rand*30
  585. light
  586. }
  587.  
  588. weapon/lightning/impact {
  589. vibrate 0
  590. soundList {
  591. sound/weapons/lightning/lg_hit.wav
  592. sound/weapons/lightning/lg_hit2.wav
  593. sound/weapons/lightning/lg_hit3.wav
  594. }
  595.  
  596.  
  597. shader flareshader
  598. alpha 0.8
  599. color 1 0.3 0.1
  600. repeat 1 {
  601. wobble dir velocity 5 + rand*25
  602. scale velocity velocity 250 + rand*50
  603. size 0.8+ rand*1.5
  604. emitter 1 + rand*0.25 {
  605. colorFade 0.75
  606. Sprite
  607. moveBounce 400 0.75
  608. }
  609. }
  610.  
  611. shader flareShader
  612. alpha 0.8
  613. color 1 0.3 0.1
  614. repeat 1 rand*2 {
  615. wobble dir velocity 120
  616. scale velocity velocity 200 + rand*50
  617. size 0 + rand*17
  618. emitter 0.1 + rand*0.4 {
  619. colorFade 0.75
  620. Spark
  621. moveBounce 400 0.75
  622. }
  623. }
  624.  
  625. shader flareShader
  626. alpha 1
  627. color 1 0.3 0.1
  628. repeat 3 + rand*5 {
  629. width 7
  630. wobble dir velocity 120
  631. scale velocity velocity 200 + rand*50
  632. size 4 + rand*7
  633. emitter 0.001 +rand*0.01 {
  634. moveGravity 0
  635. colorFade 1
  636. spark
  637. }
  638. }
  639.  
  640.  
  641. shader gfx/damage/hole_lg_mrk
  642. size 1
  643. decal
  644. }
  645.  
  646.  
  647.  
  648. //GAUNT
  649.  
  650. weapon/gauntlet/flash {
  651. color 0.6 0.6 1
  652. size 30 + rand*22
  653. light
  654. }
  655.  
  656.  
  657. weapon/grapple/flash {
  658. color 1 0.6 0
  659. size 30 + rand*22
  660. light
  661. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement