EvilEngine/EGEN: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
No edit summary
m (Seil moved page EGEN to EvilEngine/EGEN)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude>
{{AssetInfobox
{{#vardefine:typeid|EGEN}}<nowiki/>
|subtitle=Electric Arc Generator
{{#vardefine:name|Electric Arc Generator}}<nowiki/>
|type=[[Entity]]
{{#vardefine:type|[[Entity]]}}<nowiki/>
|objectid=0x29
{{#vardefine:basetype|0x29}}<nowiki/>
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie
{{#vardefine:games|Scooby BFBB TSSM}}<nowiki/>
|sourcecode=[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zEGenerator.h zEGenerator.h]}}
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zEGenerator.h zEGenerator.h]}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}


This asset defines an entry for an electric arc generator. The arc is generated from the assets position onto an [[MVPT]] point.
This asset defines an entry for an electric arc generator. The arc is generated from the assets position onto an [[MVPT]] point.
Line 14: Line 18:
! Offset !! Type !! Variable !! Description
! Offset !! Type !! Variable !! Description
|-
|-
| 0x54 || [[Vector3]]? || '''src_dpos''' ||
| 0x54 || [[Vector3]] || '''src_dpos''' ||
|-
|-
| 0x60 || byte (enum?) || '''damage_type''' ||
| 0x60 || byte || '''damage_type''' ||
|-
|-
| 0x61 || byte || '''flags''' ||
| 0x61 || byte || '''flags''' ||
|-
|-
| 0x62 || byte[2] || unknown || padding?
| 0x62 || byte[2] || padding ||
|-
|-
| 0x64 || float || '''ontime''' || Active time in seconds.
| 0x64 || float || '''ontime''' || Active time in seconds.
|-
|-
| 0x68 || [[Asset ID]] || '''onAnimID''' || maybe arc type?
| 0x68 || [[AssetID]] || '''onAnimID''' || maybe arc type?
|-
|-
! colspan="4" | Events
! colspan="4" | Events
Line 36: Line 40:


{{Assets}}
{{Assets}}
{{AutoGameNavs}}


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

Latest revision as of 22:40, 15 September 2022

EGEN
Electric Arc Generator
TypeEntity
Base Type0x29
Games usedNight of 100 Frights

Battle for Bikini Bottom

The SpongeBob SquarePants Movie
Source codezEGenerator.h

This asset defines an entry for an electric arc generator. The arc is generated from the assets position onto an MVPT point.

Format

Electric arcs are entity assets, so they start with their 0x54 byte header, then are followed by:

Offset Type Variable Description
0x54 Vector3 src_dpos
0x60 byte damage_type
0x61 byte flags
0x62 byte[2] padding
0x64 float ontime Active time in seconds.
0x68 AssetID onAnimID maybe arc type?
Events
0x6C Event[numberOfEvents] Events

Events

  • Arcto
  • On