PieceTrailCEGTag: Difference between revisions

From Spring
Jump to navigationJump to search
Pxtl (talk | contribs)
New page: From Kloot: In case you missed the changelog entry, this can now be done using the new unit FBI tags pieceTrailCEGTag and pieceTrailCEGRange (where Tag is a string and Range is an integer...
 
Flozi (talk | contribs)
m uncategorise as CEG, delete?
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{deprecated}}
This is replaced by [[Gamedev:UnitDefs#pieceExplosionGenerators]]
'''Old way does not to work anymore.'''
Related thread with example and a way to easily convert from old to new system:
http://springrts.com/phpbb/viewtopic.php?f=14&t=27554
----
original page below
----
From Kloot:
From Kloot:


In case you missed the changelog entry, this can now be
In case you missed the changelog entry, this can now be done using the new unit FBI tags pieceTrailCEGTag and pieceTrailCEGRange (where Tag is a string and Range is
done using the new unit FBI tags pieceTrailCEGTag and
an integer). If Tag is given, each piece of an exploding unit randomly loads one of <pieceTrailCEGRange> CEG's whose tag starts with the prefix <pieceTrailCEGTag> and
pieceTrailCEGRange (where Tag is a string and Range is
ends with a number in the range [0, pieceTrailCEGRange - 1]:<br/>
an integer). If Tag is given, each piece of an exploding
unit randomly loads one of <pieceTrailCEGRange> CEG's
whose tag starts with the prefix <pieceTrailCEGTag> and
ends with a number in the range [0, pieceTrailCEGRange - 1]:


Code:
Code:<br/>
<code>
<code>
// CEG definitions
// CEG definitions<br/>
[Fire0]
[Fire0]<br/>
  ...
...<br/>
[Fire1]
[Fire1]<br/>
  ...
...<br/>
[Fire2]
[Fire2]<br/>
  ...
...<br/>
[Fire3]
[Fire3]<br/>
  ...
...<br/>
 
</code>


Code:
<code>
// unit FBI
pieceTrailCEGTag = "Fire";
pieceTrailCEGRange = 4;
</code>
</code>
<br/>
Code:<br/>
<code><br/>
// unit FBI<br/>
pieceTrailCEGTag = "Fire";<br/>
pieceTrailCEGRange = 4;<br/>
</code><br/>


If range is 1 (default) then you only need Fire0 defined,
If range is 1 (default) then you only need Fire0 defined,
otherwise all possible <pieceTrailCEGRange> tags are
otherwise all possible <pieceTrailCEGRange> tags are
expected to be valid.
expected to be valid.
Thread about this: [http://springrts.com/phpbb/viewtopic.php?f=9&t=12879&start=20]

Latest revision as of 17:39, 5 October 2014

Warning! This page is outdated! The information displayed may no longer be valid, or has not been updated in a long time. Please refer to a different page for current information.


This is replaced by Gamedev:UnitDefs#pieceExplosionGenerators

Old way does not to work anymore.

Related thread with example and a way to easily convert from old to new system: http://springrts.com/phpbb/viewtopic.php?f=14&t=27554


original page below


From Kloot:

In case you missed the changelog entry, this can now be done using the new unit FBI tags pieceTrailCEGTag and pieceTrailCEGRange (where Tag is a string and Range is an integer). If Tag is given, each piece of an exploding unit randomly loads one of <pieceTrailCEGRange> CEG's whose tag starts with the prefix <pieceTrailCEGTag> and ends with a number in the range [0, pieceTrailCEGRange - 1]:

Code:
// CEG definitions
[Fire0]
...
[Fire1]
...
[Fire2]
...
[Fire3]
...


Code:

// unit FBI
pieceTrailCEGTag = "Fire";
pieceTrailCEGRange = 4;

If range is 1 (default) then you only need Fire0 defined, otherwise all possible <pieceTrailCEGRange> tags are expected to be valid.

Thread about this: [1]