I did some playing around with the
particle effects today.. after a semi-failed attempt to make a hyper fast
cannon that blows through ships, i decided to make flak.. not those wimpy
lasers, but real exploding shells. I have no hosting though, and no idea
how to take screenshots ingame, so you'll have to put this in manually.
first, make a new file in your
universe\engine\particles folder named "weapons_mod.prt", then
paste this into it:
Code:
|
///////////////////////////// flakburst
//////////////////////////////////
PARTICLE "Flakburst"
duration 0.1
EMITTER
sphere 0
maxcount [10,15]
velocity [500,1000]
EMIT
duration [0.1,0.2]
EMITTER
sphere 0
distanceperiod 10
velocity [10,20]
EMIT
duration
5
SEQUENCE
type #ANI_SMOKE_A
fps [5,8]
startframe [10,16]
size {dur 4 lerp [400,600],900}
color <0.5,0.5,0.5> {dur 4 lerpto <0,0,0>}
rotation {cont vel [/10,40]}
END
END
END
END
END
EMITTER
sphere 0
maxcount 1
velocity 0
EMIT
duration 0.2
FLARE
type 10
size 500
color
<1,0.7,0.5>
colorb
<1,0.2,0>
END
END
END
END
|
that done, go to universe\engine folder and open
up(or create) the "mod_efx.ini" and past this in it:
Code:
|
EFX 296 // Flakcannon
FLARE
Type 11
Size 80
Color 1 0.5 0
ColorB 1 0.2 0
Decay .4
ShakeFactor .2
FLARE
STRIP
Texture 12
Length 35
Radius 20
Color 0.8 0.6 0.5
Decay .4
STRIP
SOUND
Index 73 74
Level .95
SOUND
EFX
EFX 297 //
FLARE
Type 8
Size 15
Color 1 1 1
FLARE
EFX
EFX 298 //
PARTICLE "Flakburst" 1
SOUND
Index 4 12
Level 1
SOUND
EFX
|
for the last part you'll need to change your
tacticstype.ini file.. you can do the one for skirmisher if you want rather
than the main to test this out. be sure to make a backup before you play
around in it!
here's what you need to do.. find the devicetype
entries for your flak turrets... in the main tacticstypes search for
weap_flak(laser ring) and/or weap_flak2(laserglobe). when you find them,
replace whats in the entry with the entries for Start, Travel, and End
with:
Code:
|
Start 2 0 296 1
Travel 2 3000 297 1
End 1 0 298 1
|
if you make up your own efx numbers and dont copy and
paste the last, be sure to change the first number in the Travel entry with
a 2, or the effect wont work properly(wont crash, just wont look cool ).
also, if you've made any new efx with the numbers
296, 297, and 298 you'll have to make up new numbers for mine.
last thing, the graphic can get intense and bog down
your system if you have a lot of flak turrets firing. if that happens,
double the EnergyIn and DamageHull values in tacticstypes for the flak
turrets you changed to slow down the rate of fire. the increased damage
will cover for it.
Screenshots! Thanks Geo
Last edited by CutterJohn on Sun Mar 13, 2005 10:13
pm; edited 2 times in total
|