Posted: Tue Sep 28, 2010 12:33 am Post subject:
How to create debris for exploding tiberium
There are actually 2 ways to create debris for exploding tiberium.
Way #1:
The warhead defined under C4Warhead in the CombatDamage section isn't only used for crashing aircraft and C4 charges on buildings, but also for the explosions of tiberium.
Thus you can create a new warhead (lets call it TIBEX) and assign it to C4Warhead, so the previously assigned HE warhead stays untouched.
Now you can modify TIBEX as you wish and assign different explosions to the AnimList. If you use art.ini debris that spawn tiberium for these explosions, you have the first way of tiberium debris.
For a start you could use the existing and working CRYSTAL1 - CRYSTAL4 debris. Later you can use these as a pattern to create more and different debris (also explosions which spawn multiple debris).
e.g.
Code:
[CombatDamage]
...
C4Warhead=TIBEX
[Warheads]
...
XX=TIBEX ;use free number instead of XX
Note: the last anim in the AnimList is always used by crashing aircraft, thus this shouldn't get any tiberium debris.
The other anims are used by exploding tiberium according to the Power value of the tiberium and the size of the exploding tiberium patch.
e.g. a stage 12 fullgrown tiberiumpatch explodes bigger than a stage 3 patch
If you give for example [Aboreus] Power=2 it will use the first and second anim listed in the TIBEX warhead.
With Power=10 it uses the 9th, 7th, 5th and 4th listed anim in the warhead.
Vinifera seems to be hardcoded to use Power=17, which uses the 14th,11th,9th,6th and 3rd anim listed in the warhead.
If there are less anims in the warhead than the ones which are supposed to be played by the Power key, the exploding tiberium uses the last anim instead. That's why in vanilla TS, Vinifera is often exploding with EXPLOLRG and only rarely on small tiberiumpatches with EXPLOSML and EXPLOMED.
I won't reveal here exactly which anim is played by which Power value, as it took me several days via trial and error to find the matching explosions.
But since it is already part of the released TI-beta, you can take a look in the inis there.
Since I also can't stop you from copying the code, it would be nice to see a note that you're using "TI's tiberium debris logic" if you release a mod with it.
Way #2:
WW themselves seemed to messed this one up or simply forgot to implement it right.
As you know is there a Debris key on each Tiberiumtype in rules.ini, which has the art.ini debris CRYSTAL1-CRYSTAL4 listed. This key was long presumed to be not working. In fact it does work fine.
The problem is that the debris are only used if a tiberium patch is exploding with an explosion that has TiberiumChainReaction=yes in art.ini.
In vanilla TS the C4Warhead is using only animations which don't use this key.
Thus to make the debris work, give all the listed anims in the C4Warheads AnimList the key TiberiumChainReaction=yes in art.ini.
e.g.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum