Editing XML/Projectile 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:
[[XML|Back to XML Overview ]]
+
{{XMLs}}
 
 
 
The Projection [[Particle]] XML defines the visual effects as well as part of the mechanics used to for attacks between [[units]].
 
The Projection [[Particle]] XML defines the visual effects as well as part of the mechanics used to for attacks between [[units]].
  
 +
{{TOC limit|2}}
  
 
==XML==
 
==XML==
 +
{{XML_definition_header}}
 
<syntaxhighlight lang="xml">
 
<syntaxhighlight lang="xml">
 
<?xml version="1.0" standalone="yes"?>
 
<?xml version="1.0" standalone="yes"?>
Line 22: Line 23:
 
<energy-max value="20" />
 
<energy-max value="20" />
 
<energy-var value="0" />
 
<energy-var value="0" />
 +
<!-- Start MG Only -->
 
     <child-particles value="true">
 
     <child-particles value="true">
 
     <particle-file path="particle.xml">
 
     <particle-file path="particle.xml">
Line 31: Line 33:
 
     </particle-file>
 
     </particle-file>
 
     </child-particles>
 
     </child-particles>
 +
<!-- End MG Only -->
  
 
<trajectory type="linear">
 
<trajectory type="linear">
Line 114: Line 117:
 
| How many "joints" the projectile will have. At each "joint", it will change direction in a random way.
 
| How many "joints" the projectile will have. At each "joint", it will change direction in a random way.
 
|-
 
|-
 +
| rowspan="7" | Any of the above (GAE Only, all optional)
 +
| start
 +
| Can be either <tt>self</tt> or <tt>target</tt>. Where the projectile starts. Default is self.
 +
|-
 +
| start-offset
 +
| Specify an offset from where the attack starts. Measurements are cells in the game's 3D grid.
 +
|-
 +
| start-offset-var
 +
| Allows you to randomize the offset of the start location of the attack.
 +
|-
 +
| end
 +
| Can be either <tt>self</tt> or <tt>target</tt>. Where the projectile ends. Default is target.
 +
|-
 +
| end-offset
 +
| Specify an offset from where the attack ends. Measurements are cells in the game's 3D grid.
 +
|-
 +
| end-offset-var
 +
| Allows you to randomize the offset of the end location of the attack.
 +
|-
 +
| tracking
 +
| If true, the particle will change course to follow its target. Default is false.
 +
|}
 +
 +
<!-- Current progress -->
 +
 +
===blend-mode===
 +
[[GAE]] supports choosing the OpenGL blend mode of the particles, allowing you to set the source and destination blending from these possible options:
 +
 +
*zero
 +
*one
 +
*src_color
 +
*one_minus_src_color
 +
*dst_color
 +
*one_minus_dst_color
 +
*src_alpha
 +
*one_minus_src_alpha
 +
*dst_alpha
 +
*one_minus_dst_alpha
 +
*constant_color
 +
*one_minus_constant_color
 +
*constant_alpha
 +
*one_minus_constant_alpha
 +
*src_alpha_saturate
  
 
The destination cannot be set to 'src_alpha_saturate'. If none is selected, the default is equal to the source being 'src_alpha' and the destination being 'one'.
 
The destination cannot be set to 'src_alpha_saturate'. If none is selected, the default is equal to the source being 'src_alpha' and the destination being 'one'.
 +
 +
===blend-equation (GAE only)===
 +
[[GAE]] supports choosing the blending equation from these possible options:
 +
 +
*func_add
 +
*func_subtract
 +
*func_reverse_subtract
 +
*min
 +
*max
 +
 +
The default is 'func_add'.
  
 
==See also==
 
==See also==
Line 121: Line 178:
 
*[[Particles]]
 
*[[Particles]]
 
*[[MegaGlest]]
 
*[[MegaGlest]]
 +
*[[GAE]]
 
[[Category:XMLs]]
 
[[Category:XMLs]]

Please note that all contributions to MegaGlest are considered to be released under the Creative Commons Attribution Share Alike (see MegaGlest:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page: