EvilEngine/EGEN: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
No edit summary
No edit summary
Line 1: Line 1:
{{AssetInfobox
{{AssetInfobox
|subtitle=Electric Arc Generator
|subtitle=Electric Arc Generator
|type=[[Placeable]]
|type=[[Entity]]
|objectid=0x29
|objectid=0x29
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie}}
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie
|sourcecode=[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zEGenerator.h zEGenerator.h]}}


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.


==Format==
==Format==
Electric arcs are [[Placeable Asset|placeable assets]], so they start with their 0x54 byte header, then are followed by:
Electric arcs are [[Entity|entity assets]], so they start with their 0x54 byte header, then are followed by:


{| class="wikitable"
{| class="wikitable"

Revision as of 20:01, 30 March 2021

EGEN
Electric Arc Generator
TypeEntity
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 (enum?) damage_type
0x61 byte flags
0x62 byte[2] unknown padding?
0x64 float ontime Active time in seconds.
0x68 Asset ID onAnimID maybe arc type?
Events
0x6C Event[numberOfEvents] Events

Events

  • Arcto
  • On