EvilEngine/BOUL

From Heavy Iron Modding
Revision as of 08:13, 4 December 2018 by Battlepedia>Seil (→‎Format)
BOUL
Boulder
TypePlaceable
Games usedThe Incredibles

This asset defines an entry for boulders such as the ones thrown by cannons.

Format

Boulders are placeable assets, so they start with their 0x54 byte header, then are followed by:

Offset Type Description
0x54 float Gravity
0x58 float Mass
0x5C float Bounciness
0x60 float Friction
0x64 float Unknown
0x68 float Max Linear Velocity
0x6C float Max Angular Velocity
0x70 float Angular Friction
0x74 float Min Bounce Velocity - If Y velocity is below this when hitting the ground, it gets reset to 0.
0x78 int Flags
  • 1 - Can Hit Walls - If false, dies on hitting a wall.
  • 2 - Damage Player
  • 4 - something related to destructible objects
  • 8 - Damage NPCs
  • 16 -
  • 32 - Die on OOB Surfaces
  • 64 -
  • 128 -
  • 256 - Die on Player Attack
  • 512 - Die after Lifetime - If false, same effect as setting Lifetime to 0 (infinity).
0x7C float Lifetime in seconds. If 0, lifetime is infinity and Can Hit Walls is forced on. Note that it can still die on OOB surfaces and player attack.
0x80 int Unknown (always 1)
0x84 AssetID (Sound) Bounce Sound
0x88 float[5] Unknown
Events
0x9C Event[numberOfEvents] Events

Events