Chunk Properties [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Chunk Properties [Solved]

Post 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?
Last edited by Eggman on Sun May 31, 2009 12:45 pm, edited 1 time in total.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Chunk Properties

Post by Fiodis »

...And which do you need help with?
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: Chunk Properties

Post by RogueKnight »

Fiodis wrote:...And which do you need help with?
I'd assume the ones without definitions next to them.
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Re: Chunk Properties

Post by Eggman »

DarthRogueKnight wrote:
Fiodis wrote:...And which do you need help with?
I'd assume the ones without definitions next to them.
Correct.
User avatar
B.I.G_Cookie
High General
High General
Posts: 839
Joined: Sun Feb 22, 2009 4:28 pm
Games I'm Playing :: Battlefield 4
Location: Frankfurt, Germany

Re: Chunk Properties

Post 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
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Re: Chunk Properties

Post 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?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Chunk Properties

Post 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.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Chunk Properties

Post 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
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Re: Chunk Properties

Post 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.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Chunk Properties

Post by DarthD.U.C.K. »

the chunkomega is the direction in which the chunk flys not the spin
Post Reply