Editing XML/Splash particle
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | Splash particle systems are most commonly used to create special effects from a unit being attacked. | |
+ | <?xml version="1.0" standalone="yes"?> | ||
+ | <splash-particle-system> | ||
+ | <font color="green"><!-- An optional texture used for each particle (what does luminance do exactly?) --></font> | ||
+ | <texture value="true|false" path=".../texture_name.bmp" luminance="true"/> | ||
+ | <font color="green"><!-- An optional model can be used. --></font> | ||
+ | <model value="true|false" path=".../model_name.g3d"/> | ||
+ | <primitive value="quad|line"/> <font color="green">< This shows the shape of the particle. Line is like a line, quad is like a circle. --></font> | ||
+ | <offset x="0" y="0" z="0"/> <font color="green"><!-- This can offset the entire splash from directly in front of the end of the projection where it would normally end. --></font> | ||
+ | <font color="green"><!-- Colors at epicentre (specifically of a particle when it's first created) --></font> | ||
+ | <color red="0.0" green="0.0" blue="1.0" alpha="0.5" /> | ||
+ | <font color="green"><!-- Colors at edge (specifically, the color the particle will become when it runs | ||
+ | out of energy) --></font> | ||
+ | <color-no-energy red="1.0" green="1.0" blue="1.0" alpha="0.0" /> | ||
+ | <size value="1" /> <font color="green"><!-- Particle start size (center) --></font> | ||
+ | <size-no-energy value="2" /> <font color="green"><!-- Ending particle size --></font> | ||
+ | <speed value="5" /> <font color="green"><!-- The Maximum Radius of the explosion --></font> | ||
+ | <gravity value="0"/> <font color="green"><!-- Gravity effects --></font> | ||
+ | <emission-rate value="20" /> <font color="green"><!-- How many particles are emitted --></font> | ||
+ | <energy-max value="30" /> <font color="green"><!-- Energy --></font> | ||
+ | <energy-var value="10" /> <font color="green"><!-- Variation --></font> | ||
+ | <emission-rate-fade value="1"/> <font color="green"><!-- Particles last longer with a lower number / disappear quicker with a higher | ||
+ | number --></font> | ||
+ | <vertical-spread a="0" b="0"/> <font color="green"><!-- Direction splash goes after hitting --></font> | ||
+ | <horizontal-spread a="1" b="0"/> <font color="green"><!-- Direction splash goes after hitting --></font> | ||
+ | </splash-particle-system> | ||
− | + | '''Clarifications''': The energy value is actually the number of server frames (40 per second) the particle will be "alive." As the particle reaches it's end of life, the color will transition from the value specified by <color> to the value specified by <color-no-energy>. Similarly, the size of each particle starts out the value specified by <size> and gradually decreases to <size-no-energy> as it runs out of energy. (And please do correct any of this if you find it to be inaccurate.) | |
− | + | Back to [[XML_Definitions]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[ |