EvilEngine/LITE: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
Battlepedia>Igorseabra4
(Created page with "{{AssetInfobox |subtitle=Light |type=Object |objectid=0x05 |games=Night of 100 Frights}} ==Format== {| class="wikitable" ! Offset !! Type !! Variable !! Description |- |...")
 
m (Seil moved page LITE to EvilEngine/LITE)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude>
{{AssetInfobox
{{#vardefine:typeid|LITE}}<nowiki/>
|subtitle=Light
{{#vardefine:name|Light}}<nowiki/>
|type=[[Object]]
{{#vardefine:type|[[Base]]}}<nowiki/>
|objectid=0x05
{{#vardefine:basetype|0x25}}<nowiki/>
|games=Night of 100 Frights}}
{{#vardefine:games|Scooby BFBB}}<nowiki/>
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zLight.h zLight.h]}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}


==Format==
==Format==
Line 9: Line 14:
! Offset !! Type !! Variable !! Description
! Offset !! Type !! Variable !! Description
|-
|-
| 0x08 || byte || unknown ||
| 0x08 || unsigned char || '''lightType''' ||
* 0 - Point
* 1 - Spot
* 2 - Point
* 3 - Point
|-
|-
| 0x09 || byte || unknown ||
| 0x09 || unsigned char || '''lightEffect''' ||
* 0 - None
* 1 - None
* 2 - Flicker Slow
* 3 - Flicker
* 4 - Flicker Erratic
* 5 - Strobe Slow
* 6 - Strobe
* 7 - Strobe Fast
* 8 - Dim Slow
* 9 - Dim
* 10 - Dim Fast
* 11 - Half Dim Slow
* 12 - Half Dim
* 13 - Half Dim Fast
* 14 - Random Col Slow
* 15 - Random Col
* 16 - Random Col Fast
* 17 - Cauldron
|-
|-
| 0x0A || byte || unknown ||
| 0x0A || unsigned char[2] || '''lightPad''' || Padding
|-
|-
| 0x0B || byte || unknown ||
| 0x0C || unsigned int || '''lightFlags''' ||
* 0x08 - Environment (light affects BSP/JSP)
* 0x20 - On (light is turned on)
|-
|-
| 0x0C || int || unknown ||
| 0x10 || float[4] || '''lightColor''' || RGBA color of light
|-
|-
| 0x10 || float || unknown ||
| 0x20 || [[Vector3]] || '''lightDir''' || Light rotation
|-
|-
| 0x14 || float || unknown ||
| 0x2C || float || '''lightConeAngle''' || Cone angle for spotlight (in radians)
|-
|-
| 0x18 || float || unknown ||
| 0x30 || [[Vector3]] || '''lightSphere.center''' || Light position
|-
|-
| 0x1C || float || unknown ||
| 0x3C || float || '''lightSphere.r''' || Radius of light (how far the light reaches)
|-
|-
| 0x40 || [[AssetID]] || '''attachID''' || An optional ID of an Entity to attach the light to. The light will be moved to the entity's position + 1 Y unit every frame (lightSphere.center is ignored)
| 0x20 || float || unknown ||
|-
| 0x24 || float || unknown ||
|-
| 0x28 || float || unknown ||
|-
| 0x2C || float || unknown ||
|-
| 0x30 || [[Vector3]] || '''position''' ||
|-
| 0x3C || float || unknown ||
|-
| 0x40 || float || unknown ||
|-
|-
! colspan="4" | Events
! colspan="4" | Events
Line 45: Line 62:
| 0x44 || Event[numberOfEvents] || '''[[Events]]''' ||
| 0x44 || Event[numberOfEvents] || '''[[Events]]''' ||
|}
|}

{{Assets}}
{{AutoGameNavs}}


[[Category:Asset]]
[[Category:Asset]]

Latest revision as of 22:43, 15 September 2022

LITE
Light
TypeBase
Base Type0x25
Games usedNight of 100 Frights
Battle for Bikini Bottom
Source codezLight.h

Format

Offset Type Variable Description
0x08 unsigned char lightType
  • 0 - Point
  • 1 - Spot
  • 2 - Point
  • 3 - Point
0x09 unsigned char lightEffect
  • 0 - None
  • 1 - None
  • 2 - Flicker Slow
  • 3 - Flicker
  • 4 - Flicker Erratic
  • 5 - Strobe Slow
  • 6 - Strobe
  • 7 - Strobe Fast
  • 8 - Dim Slow
  • 9 - Dim
  • 10 - Dim Fast
  • 11 - Half Dim Slow
  • 12 - Half Dim
  • 13 - Half Dim Fast
  • 14 - Random Col Slow
  • 15 - Random Col
  • 16 - Random Col Fast
  • 17 - Cauldron
0x0A unsigned char[2] lightPad Padding
0x0C unsigned int lightFlags
  • 0x08 - Environment (light affects BSP/JSP)
  • 0x20 - On (light is turned on)
0x10 float[4] lightColor RGBA color of light
0x20 Vector3 lightDir Light rotation
0x2C float lightConeAngle Cone angle for spotlight (in radians)
0x30 Vector3 lightSphere.center Light position
0x3C float lightSphere.r Radius of light (how far the light reaches)
0x40 AssetID attachID An optional ID of an Entity to attach the light to. The light will be moved to the entity's position + 1 Y unit every frame (lightSphere.center is ignored)
Events
0x44 Event[numberOfEvents] Events