Jump to content

Home

So you want to make your ship shoot...


Mr. Chopper

Recommended Posts

Believe it or not, this is actually a very, very simple process. Inside your assets0.pk3 file is a folder called "effects". Inside that folder is another one called blaster, for example. Inside the blaster folder is a bunch of efx files. You got it, fx_runner. Take the shot.efx file and edit it in notepad, to enlarge it to the scale of your ship. For example, this is what I used to make an x-wing fire:

 

// Mr. Chopper's Ship Laser Effect. For use with fighters, vessels or whatever else you create. :)

 

Line

{

origin 8 0 0

origin2 -80 0 0

flags useAlpha

 

width

{

start 7 8

}

 

alpha

{

start 3 3.5

}

 

shader

[

gfx/effects/blaster_blob

]

}

 

// glow

Line

{

origin 16 0 0

origin2 -90 0 0

 

width

{

start 20 25

}

 

alpha

{

start 4 5

}

 

rgb

{

start 0.7 0.0 0.0 0.8 0.2 0.2

}

 

shader

[

gfx/effects/whiteGlow

]

}

 

particle

{

origin -5 0 0

 

size

{

start 8 9

}

 

rgb

{

start 0.7 0.0 0.0 0.9 0.15 0.15

}

 

shader

[

gfx/effects/whiteGlow

]

}

 

The only parameters that need to be changed for the size of the bolt are width and alpha. Then, have fun! :D

Link to comment
Share on other sites

There's also a func_shooter or target_blaster or something like that (I forget the actual name, but it's along those lines) that can let you trigger random shots in any given direction at any specified rate with some degree of spread. The only difference between using these and using an fx_runner is that these blaster bolts will actually deal damage. :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...