Page 1 of 1

Chunk Properties [Solved]

Posted: Sun May 31, 2009 11:41 am
by Eggman
I was playing around with some of the chunk properties in a vehicle .odf, and I realized that I have no clue what a lot of them control. I was wondering if anyone knew what each of them does. Here are some of the chunk properties I've come across:

ChunkGeometryName = "cis_fly_droidgunship_chunk1" --msh used for the chunk
ChunkNodeName = "" --
ChunkTerrainCollisions = "2" --number of times the chunk bounces off the terrain?
ChunkTerrainEffect = "com_sfx_explosion_lg" --effect played when chunk hits the terrain
ChunkPhysics = "FULL" --
ChunkOmega = "2.0 2.0 2.5" --
ChunkSpeed = "13.0" --
ChunkUpFactor = "1.00" --
ChunkTrailEffect = "com_sfx_chunktrail_sm" --effect emitted by the chunk
ChunkGravity = "1.0 1.0 1.0" --
ChunkVelocityFactor = "0.15" --proportion of the vehicle's velocity when it was destroyed
ChunkBounciness = 0.45 --
ChunkStickiness = 0.25 --
ChunkInitialCollisionSound = "exp_obj_small_debris" --sound played when the chunk hits terrain?

Re: Chunk Properties

Posted: Sun May 31, 2009 12:31 pm
by Fiodis
...And which do you need help with?

Re: Chunk Properties

Posted: Sun May 31, 2009 12:38 pm
by RogueKnight
Fiodis wrote:...And which do you need help with?
I'd assume the ones without definitions next to them.

Re: Chunk Properties

Posted: Sun May 31, 2009 12:45 pm
by Eggman
DarthRogueKnight wrote:
Fiodis wrote:...And which do you need help with?
I'd assume the ones without definitions next to them.
Correct.

Re: Chunk Properties

Posted: Sun May 31, 2009 1:03 pm
by B.I.G_Cookie
I guess:

ChunkSpeed = "13.0" -- the speed of the flying chunk

ChunkGravity = "1.0 1.0 1.0" -- the time until the chunk reaches the ground or the velocity of fall

Re: Chunk Properties

Posted: Sun May 31, 2009 1:08 pm
by Eggman
B.I.G_Cookie wrote:I guess:

ChunkSpeed = "13.0" -- the speed of the flying chunk

ChunkGravity = "1.0 1.0 1.0" -- the time until the chunk reaches the ground or the velocity of fall
That's all what I would assume, but the question comes up with the interaction between ChunkVelocityFactor and ChunkSpeed. It seems to me that they would interfere with each other.

As for ChunkGravity, I'm just not sure what each number controls. Maybe something such as the x,y,z axes?

Re: Chunk Properties

Posted: Sun May 31, 2009 1:12 pm
by Fiodis
DarthRogueKnight wrote:
Fiodis wrote:...And which do you need help with?
I'd assume the ones without definitions next to them.
Ah, silly me.

Gravity would be how steeply it arcs, another example of this is the Thermal Detonator, which only has one number, not being affected by 2 of the 3 axes of motion.

Speed is it's base speed through the air.

NodeName - Possibly unused, form an earlier time when developers were planning to put nodes on vehicles to tell where chunks come from? Also possibly the node where effects come from, if they don't come from the dummyroot.

UpFactor - IDK, but the word "up" tells me it's something to do with its flight path. Careful experimentation may yield results.

Bounciness - Bounciness. How it bounces.

Stickiness - How sticky it is. An example is droid chunks, which stick to terrain and props.
Eggman wrote:ChunkTerrainCollisions = "2" --number of times the chunk bounces off the terrain?
ChunkTerrainEffect = "com_sfx_explosion_lg" --effect played when chunk hits the terrain
The TerrainCollisions may be correct; however I'll note that spaceship chunks pass right through objects. Haven't gotten around to checking if they do likewise for terrain. Probably related to Bounciness and/or Stickiness value.

TerrainEffect - I've never seen any chunk play an effect upon hitting the terrain. Can anyone confirm this?

Eggman wrote:That's all what I would assume, but the question comes up with the interaction between ChunkVelocityFactor and ChunkSpeed. It seems to me that they would interfere with each other.
My hypothesis: Speed is the base value, which is altered by VelocityFactor to get the chunk's final speed. This would be so a spaceship flying extremely fast wouldn't blow up into super-slow chunks, but a spaceship flying extremely slowly wouldn't break up into super-fast chunks.

Re: Chunk Properties

Posted: Sun May 31, 2009 2:24 pm
by AceMastermind
From psych0fred's cis_hover_aat_odf_commented.txt:

Code: Select all

// Chunks are the peices resulting from the vehicle's explosion
CHUNKSECTION            = "CHUNK1" // Defines the chunk
ChunkGeometryName       = "cis_hover_att_Chunk1"    // Defines the mesh file to use for the chunk
ChunkNodeName           = ""    // Defines the hardpoint in the mesh from which the chunk originates
ChunkTerrainCollisions  = "2"   // Defines the number of time the chunk bounces
ChunkTerrainEffect      = "dirtspray"   // Defines the particle effect attached to each bounce
ChunkPhysics            = "FULL"        // Defines the chunk behavior/mass
ChunkOmega              = "1.0 2.0 1.0" // ?? Defines chunk spin???
ChunkBounciness         = 0.35  // Defines rate of upward bounce
ChunkStickiness         = 0.45  // Defines how fast chunk accelerate in bounce 
ChunkSpeed              = "15.0"  // Defines speed of moving chunk
ChunkUpFactor           = "25.00"   // Defines the upward speed of spawned chunk
ChunkTrailEffect        = "mediumsmoketrail"    // Defines the particle effect attached to chunk
Source:
http://www.secretsociety.com/forum/down ... mented.txt

Re: Chunk Properties

Posted: Sun May 31, 2009 2:59 pm
by Eggman
AceMastermind wrote:From psych0fred's cis_hover_aat_odf_commented.txt:

Code: Select all

// Chunks are the peices resulting from the vehicle's explosion
CHUNKSECTION            = "CHUNK1" // Defines the chunk
ChunkGeometryName       = "cis_hover_att_Chunk1"    // Defines the mesh file to use for the chunk
ChunkNodeName           = ""    // Defines the hardpoint in the mesh from which the chunk originates
ChunkTerrainCollisions  = "2"   // Defines the number of time the chunk bounces
ChunkTerrainEffect      = "dirtspray"   // Defines the particle effect attached to each bounce
ChunkPhysics            = "FULL"        // Defines the chunk behavior/mass
ChunkOmega              = "1.0 2.0 1.0" // ?? Defines chunk spin???
ChunkBounciness         = 0.35  // Defines rate of upward bounce
ChunkStickiness         = 0.45  // Defines how fast chunk accelerate in bounce 
ChunkSpeed              = "15.0"  // Defines speed of moving chunk
ChunkUpFactor           = "25.00"   // Defines the upward speed of spawned chunk
ChunkTrailEffect        = "mediumsmoketrail"    // Defines the particle effect attached to chunk
Source:
http://www.secretsociety.com/forum/down ... mented.txt
Ah, thanks. I've been poking around Psych0fred's site a lot lately, I guess I forgot that was there.

Re: Chunk Properties

Posted: Mon Jun 01, 2009 8:42 am
by DarthD.U.C.K.
the chunkomega is the direction in which the chunk flys not the spin