Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Sat Apr 20, 2024 1:02 am
All times are UTC + 0
debris question
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Exley
Commander


Joined: 09 May 2011
Location: Approaching the Great Pyramid

PostPosted: Tue Jun 28, 2011 9:49 pm    Post subject:  debris question Reply with quote  Mark this post and the followings unread

hello again Very Happy

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

Code:

MaxDebris=18
DebrisTypes=3TNKTURRET,4TNKTURRET,HVRLNCHR,TTNKTURRET
DebrisMaximums=1,1,1,1


is this DebrisMaximums is good setup-ed/written (1,1,1,1) ?
and what is the number limit for MaxDebris= in TS ?

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Tue Jun 28, 2011 10:02 pm    Post subject: Reply with quote  Mark this post and the followings unread

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

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Exley
Commander


Joined: 09 May 2011
Location: Approaching the Great Pyramid

PostPosted: Tue Jun 28, 2011 10:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

hmm so you're saying that number 18 or even 30 means nothing
if I don't manually add 18 DebrisTypes parts like

TIRE,TIRE,TIRE,WHATEVER, ... and 18 times ?

_________________
Quote:

how did we end up here ?

this place is horrible ...

smells like balls ...


Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Wed Jun 29, 2011 5:04 am    Post subject: Reply with quote  Mark this post and the followings unread

No. Not the sum of the DebrisTypes has to be lower than MaxDebris, but the sum of DebrisMaximums.

MaxDebris=18
DebrisTypes=3TNKTURRET,4TNKTURRET,HVRLNCHR,TTNKTURRET
DebrisMaximums=18,8,3,1

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

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Exley
Commander


Joined: 09 May 2011
Location: Approaching the Great Pyramid

PostPosted: Wed Jun 29, 2011 11:35 am    Post subject: Reply with quote  Mark this post and the followings unread

this is very nice explanation, thank you again Very Happy

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 0.1715s ][ Queries: 11 (0.0091s) ][ Debug on ]