Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ------------- MACHINEGUN
- weapon/machinegun/impact {
- soundList {
- sound/weapons/machinegun/ric1.wav
- sound/weapons/machinegun/ric2.wav
- sound/weapons/machinegun/ric3.wav
- }
- //Bullet mark on the wall
- emitter 1000 {
- shader gfx/damage/bullet_mrk
- size 8
- decal
- }
- //explosion cone with animating shader
- size 1
- shader bulletExplosion
- model "models/weaphits/bullet.md3"
- rotate rand*360
- emitter 0.6 {
- dirModel
- }
- //a sprites shooting up from impact surface
- repeat rand*3 {
- wobble dir velocity 10 + rand*30
- scale velocity velocity 200 + rand*50
- size 2*rand
- shader flareShader
- alpha 0.8
- color 1 0.75 0.6
- emitter "5.6 + rand*0.3" {
- moveGravity 200
- moveBounce 200 0.7
- colorFade 0.6
- Sprite
- }
- }
- }
- // ------------- SHOTGUN
- weapon/shotgun/impact {
- vibrate 1
- //Bullet mark on the wall, shotgun ones are smaller
- shader gfx/damage/bullet_mrk
- size 6
- Decal
- //explosion cone with animating shader
- size 1
- shader bulletExplosion
- model models/weaphits/bullet.md3
- rotate rand*360
- emitter 0.6 {
- dirModel
- }
- //a sprites shooting up from impact surface
- repeat rand*3 {
- wobble dir velocity 10 + rand*30
- scale velocity velocity 200 + rand*50
- size 1 + rand
- shader flareShader
- alpha 0.8
- color 1 0.75 0.6
- emitter "1.6 + rand*0.3" {
- moveGravity 200
- moveBounce 200 0.7
- colorFade 00
- Sprite
- }
- }
- repeat 1 {
- wobble dir velocity 10 + rand*30
- scale velocity velocity 200 + rand*50
- width 1
- size 8 * rand
- shader flareShader
- alpha 0.8
- color 1 0.75 0.6
- emitter "0.6 + rand*1.3" {
- moveGravity 200
- moveBounce 200 0.7
- colorFade 0
- Spark
- }
- }
- }
- // ------------- GRENADE
- weapon/grenade/impact {
- vibrate 70
- sound sound/weapons/rocket/rocklx1a.wav
- //Mark on the wall, using direction from parent
- shader gfx/damage/burn_med_mrk
- size 64
- Decal
- shader rocketExplosion
- color 1 0.75 0
- rotate rand*360
- emitter 0.55 {
- // size will goto zero after 0.5 of the time
- size 30
- Sprite
- size 300 * clip(2 - 2*lerp)
- Light
- }
- repeat 70 {
- wobble dir velocity 300*rand
- scale velocity velocity 400 + rand*50
- width 2
- size 8 + rand
- shader lglsFlare
- alpha 0.5
- color 1 0.75 0
- emitter "0.9 + rand*0.3" {
- moveGravity 200
- moveBounce 300 0.75
- colorFade 0
- Spark
- }
- }
- repeat 350 {
- wobble dir velocity 360*rand
- scale velocity velocity 70 + rand*50
- size 2 + rand
- shader lglsFlare
- alpha 0.5
- color 1 0.25 0
- emitter "4 + rand*0.3" {
- moveGravity 300
- colorFade 0
- Sprite
- }
- }
- //
- width 3
- shader flareShader
- alpha 1
- color 0.6 0.3 0.1
- repeat 30 + 20*rand {
- random dir
- wobble dir velocity 100 + rand*20
- // scale velocity velocity 200 + rand*50
- size 70+100*rand
- emitter "1.5 * rand" {
- colorFade 0
- moveGravity 0
- spark
- }
- }
- // big particles
- alpha 0.75
- color 1 0.5 0.25
- shader lglsFlare
- repeat 16 {
- wobble dir velocity 45*rand
- scale velocity velocity 0
- size 45 * rand
- emitter "0.3 + rand*0.7" {
- moveGravity 0
- moveBounce 100 0.5
- colorFade 0
- Sprite
- }
- }
- }
- // ------------- ROCKET
- weapon/rocket/trail {
- color 0.6 0.3 0
- size 8
- Light
- shader flareshader
- sprite
- color 1 0.5 0.1
- size 100
- Light
- alpha 0.25
- color 0 0 0
- shader smokePuff
- rotate 360 * rand
- distance 3 + rand * 2
- {
- emitter rand * 0.7 //rand * 0.8
- {
- alphaFade 0
- size 8 + rand * 2 + lerp * 25
- sprite cullNear
- }
- }
- repeat 4 {
- width 2
- shader flareShader
- alpha 0.8
- color 1 0.2 0.1
- random dir
- wobble dir velocity 50 + rand*70
- scale velocity velocity 100 + rand*100
- size 15*rand
- emitter "0.05 * rand * rand" {
- //moveGravity 150
- colorFade 0
- spark cullNear
- }
- shader flareShader
- alpha 0.8
- random dir
- wobble dir velocity 50 + rand*70
- scale velocity velocity 100 + rand*100
- size 3*rand
- emitter "0.05 * rand * rand" {
- //moveGravity 150
- colorFade 0
- sprite cullNear
- }
- shader flareShader
- alpha 0.8
- wobble dir velocity 50 + rand*70
- scale velocity velocity 100 + rand*100
- size 3*rand
- emitter "0.07 * rand * rand" {
- //moveGravity 150
- colorFade 0
- quad cullNear
- }
- }
- }
- weapon/rocket/impact {
- vibrate 70
- sound sound/weapons/rocket/rocklx1a.wav
- shader gfx/damage/burn_med_mrk
- size 64
- Decal
- shader rocketExplosion
- color 1 0.75 0
- rotate rand*360
- emitter 1 {
- normalize dir v0
- addScale origin v0 origin 7
- // size will goto zero after 0.5 of the time
- size 35 //* clip(2 - 1.6*lerp)
- Sprite //depthhack
- size 300 * clip(2 - 2*lerp)
- Light
- }
- // big particles
- alpha 0.75
- color 1 0.5 0.25
- shader lglsFlare
- repeat 3 {
- wobble dir velocity 45*rand
- scale velocity velocity 0
- size 25 * rand
- emitter "0.1 + rand" {
- colorFade 0
- Sprite
- }
- }
- // small particles
- alpha 0.75
- color 0.75 0.5 0.25
- shader lglsPrt
- repeat 75 {
- random velocity
- scale velocity velocity 350 + rand * 50
- size 0.25 + rand * 0.25
- emitter 2 + rand {
- moveGravity 300
- moveBounce 100 0.75
- colorFade 0
- Sprite
- }
- }
- // medium particles
- alpha 0.75
- color 0.75 0.5 0.25
- shader lglsPrt
- repeat 75 {
- random velocity
- scale velocity velocity 250 + rand * 50
- size 0.75 + rand * 0.75
- emitter 2 + rand {
- moveGravity 400
- moveBounce 100 0.75
- colorFade 0
- Sprite
- }
- }
- }
- // ------------- LIGHTNING
- weapon/lightning/impact {
- vibrate 0
- soundList {
- sound/weapons/lightning/lg_hit.wav
- sound/weapons/lightning/lg_hit2.wav
- sound/weapons/lightning/lg_hit3.wav
- }
- shader flareshader
- alpha 0.8
- color 1 0.3 0.1
- repeat 1 {
- wobble dir velocity 5 + rand*25
- scale velocity velocity 250 + rand*50
- size 0.75+ rand*1.5
- emitter 1 + rand*1.55 {
- colorFade 0
- Sprite
- moveBounce 400 0.75
- }
- }
- shader flareShader
- alpha 0.75
- color 1 0.8 0.7
- distance 3 {
- random velocity
- scale velocity velocity 150 + rand * 50
- size 0.25 + rand * 1.25
- emitter 1 + rand {
- moveBounce 400 0.75
- colorFade 0
- Sprite
- }
- }
- }
- // ------------- RAIL
- weapon/rail/trail {
- size r_railCoreWidth*1
- shader railCore
- emitter cg_railTrailTime * 0.001 {
- colorFade 0
- Beam
- }
- size r_railCoreWidth*0.1
- shader railCore
- emitter cg_railTrailTime * 0.001 {
- colorFade 0
- Beam
- }
- shader railDisc
- //color2 is stored in the parent input structure, retrieve it like this
- pushparent color2
- pop color
- //Do a spiral around the rail direction
- //Get length in t0
- t0 dir
- normalize dir
- //Create a perpendicular vector to the beam
- perpendicular dir v0
- //Radius around center
- scale v0 v0 1.75
- size 1.1
- //Set the rotate around angle to start value
- t1 rand*360
- //Go through length of beam in repeat steps
- repeat ( t0 / 4 ) {
- rotatearound v0 dir v1 t1
- //Slightly increase beyond regular 10 it so they don't all line up
- t1 t1 + 10.1
- addScale v1 dir origin loop * t0
- add parentOrigin origin origin
- emitter 0.5 + loop * t1 * 0.0002 {
- //5 radius + 6
- addScale origin v1 origin lerp * 2
- colorFade 0
- Sprite
- }
- }
- }
- weapon/rail/impact {
- vibrate 30
- sound sound/weapons/plasma/plasmx1a.wav
- rotate rand * 360
- shader railExplosion
- model models/weaphits/ring02.md3
- emitter 0.6 {
- dirModel
- }
- size 12
- shader gfx/damage/plasma_mrk
- Decal energy
- alpha 1
- color 0.5 0.5 0.75
- shader flareShader
- repeat 25 {
- random velocity
- scale velocity velocity 150 + rand * 50
- size 6 + rand * 1.5
- emitter 0.3 + rand*0.7 {
- moveBounce 400 0.75
- colorFade 0.75
- Spark
- }
- }
- width 2.5
- shader flareShader
- alpha 1
- color 0.4 0.4 0.8
- repeat 20 + 20*rand {
- random dir
- wobble dir velocity 100 + rand*20
- size 100*rand
- emitter "1.5 * rand" {
- colorFade 0
- moveGravity 0
- spark
- }
- }
- }
- // ------------- PLASMA
- weapon/plasma/trail {
- width 4
- shader flareShader
- alpha 0.8
- color 0.1 0.2 1
- random dir
- wobble dir velocity 50 + rand*70
- scale velocity velocity 100 + rand*100
- size 25*rand
- emitter "0.05 * rand * rand" {
- //moveGravity 150
- colorFade 0.4
- spark cullNear
- }
- shader flareShader
- alpha 0.8
- random dir
- wobble dir velocity 50 + rand*70
- scale velocity velocity 100 + rand*100
- size 5*rand
- emitter "0.05 * rand * rand" {
- //moveGravity 150
- colorFade 0.4
- sprite cullNear
- }
- shader flareShader
- alpha 0.8
- wobble dir velocity 50 + rand*70
- scale velocity velocity 100 + rand*100
- size 5*rand
- emitter "0.06 * rand * rand" {
- //moveGravity 150
- colorFade 0.4
- quad cullNear
- }
- }
- weapon/plasma/impact {
- vibrate 30
- sound sound/weapons/plasma/plasmx1a.wav
- size 18
- shader gfx/damage/plasma_mrk
- Decal energy
- width 2
- shader flareShader
- alpha 1
- color 0 0.3 0.6
- repeat 20 + 20*rand {
- random dir
- wobble dir velocity 100 + rand*20
- // scale velocity velocity 200 + rand*50
- size 80*rand
- emitter "1.5 * rand" {
- colorFade 0
- spark
- }
- }
- // small particles
- alpha 0.75
- color 0.25 0.5 1
- shader lglsPrt
- repeat 10 {
- random velocity
- scale velocity velocity 150 + rand * 50
- size 1 + rand * 1.5
- emitter 2 + rand {
- moveBounce 400 0.75
- colorFade 0.75
- Sprite
- }
- }
- // big particles
- alpha 0.75
- color 0 0.25 1
- shader lglsFlare
- repeat 2 {
- random velocity
- scale velocity velocity 70 + rand * 50
- size 20 * rand
- emitter 2 + rand {
- moveBounce 400 0.75
- colorFade 0
- Sprite
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement