Joined: 09 May 2011 Location: Approaching the Great Pyramid
Posted: Tue Jun 28, 2011 9:49 pm Post subject:
debris question
hello again
I have question about adding special voxel debries to death unit
I have added in Rules.ini on voxel debries list some other things
as Disruptor body, Hover MLRS body, turrets... etc...
but my question is, if I want to add bunch of debries, for example on MMK 2
with
MaxDebris is the upper limit of all spawned debris.
DebrisMaximums is the upper limit of the individual DebrisTypes. The amount of each spawned debristype is always a random value between 0 and the corresponding DebrisMaximum value.
If MaxDebris is smaller than the sum of the DebrisMaximums, then it might happen that not all DebrisTypes are spawned.
In your case you will likely never see more than 4 debris, thus MaxDebris is too high, though it isn't that problematic.
In your example you tell the game that only 0 to 1 (and not more) of each DebrisType should be spawned. All 4 different types can be spawned at the same time as they are together less debris than the set MaxDebris value. _________________ SHP Artist of Twisted Insurrection: Nod buildings
In this case it isn't sure that all Types are spawned, because DebrisMaximums defines max 30 debris (18 3tnkturrets, 8 4tnkturrets, 3 HVRLNCHR and 1 TTNKTURRET), but only max 18 (from MaxDebris) can be spawned in total (thus 3TNKTURRET can reach the limit already, making it impossible that the other types are spawned).
MaxDebris is an upper limit for all spawned debris. Nothing else.
To define in detail which and how much debris are spawned of each type, you use the other two keys.
Also instead of
DebrisTypes=TIRE,TIRE,TIRE,TIRE,PIECE
DebrisMaximums=1,1,1,1,16
you write
DebrisTypes=TIRE,PIECE
DebrisMaximums=4,16
DebrisMaximums is simply a way to restrict the amount of each type, so a unit doesn't spawns 5 turrets and 10 wheels when it explodes, while it has only 1 turret and 4 wheels. _________________ SHP Artist of Twisted Insurrection: Nod buildings
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