EvilEngine/ONEL: Difference between revisions
Content added Content deleted
m (Seil moved page ONEL to EvilEngine/ONEL) |
No edit summary |
||
Line 11: | Line 11: | ||
==Format== |
==Format== |
||
===xOneLinerAsset=== |
===xOneLinerAsset=== |
||
<source lang=cpp> |
|||
class xOneLinerAsset |
|||
{ |
|||
public: |
|||
unsigned int oneLinerPlayerCount; |
|||
xOneLiner player; |
|||
}; |
|||
</source> |
|||
{| class="wikitable" |
{| class="wikitable" |
||
! Offset !! Type !! Variable !! Description |
! Offset !! Type !! Variable !! Description |
||
|- |
|- |
||
| 0x00 || |
| 0x00 || u32 || '''oneLinerPlayerCount''' || Amount of entries. |
||
|} |
|} |
||
===xOneLiner=== |
===xOneLiner=== |
||
<source lang=cpp> |
|||
class xOneLiner |
|||
{ |
|||
public: |
|||
unsigned int m_soundGroupNameHash; |
|||
float m_fSoundStartDelay; |
|||
float m_fTimeSpan; |
|||
float m_fTimeLastPlayed; |
|||
unsigned int m_uNumPlays; |
|||
float m_fDelayBetweenPlays; |
|||
float m_fProbability; |
|||
float m_fDefaultDuration; |
|||
float m_fLastDuration; |
|||
unsigned int m_uMaxPlays; |
|||
iSndGroupHandle m_soundGroupHandle; |
|||
xOneLinerManager* m_pOLManager; |
|||
signed short m_eventType; |
|||
signed short m_bPlaysInMusicChannel; |
|||
BasicInform* m_pData; |
|||
ePlayerType m_playerType; |
|||
testerPlayer m_testerData; |
|||
}; |
|||
</source> |
|||
<source lang=cpp> |
|||
enum ePlayerType |
|||
{ |
|||
eALWAYS, |
|||
eCOUNTER, |
|||
eCHECKER, |
|||
eTESTER, |
|||
ePLAYER_TYPE_SIZE |
|||
}; |
|||
</source> |
|||
<source lang=cpp> |
|||
class testerPlayer |
|||
{ |
|||
public: |
|||
signed int firstParam; |
|||
float secondParam; |
|||
}; |
|||
</source> |
|||
{| class="wikitable" |
{| class="wikitable" |
||
! Offset !! Type !! Variable !! Description |
! Offset !! Type !! Variable !! Description |
||
|- |
|- |
||
| 0x00 || [[AssetID]] || '''m_soundGroupNameHash''' || |
| 0x00 || [[AssetID]] || '''m_soundGroupNameHash''' || [[SGRP]] |
||
|- |
|- |
||
| 0x04 || |
| 0x04 || f32 || '''m_fSoundStartDelay''' || |
||
|- |
|- |
||
| 0x08 || |
| 0x08 || f32 || '''m_fTimeSpan''' || |
||
|- |
|- |
||
| 0x0C || |
| 0x0C || f32 || '''m_fTimeLastPlayed''' || |
||
|- |
|- |
||
| 0x10 || |
| 0x10 || u32 || '''m_uNumPlays''' || Number of plays. |
||
|- |
|- |
||
| 0x14 || |
| 0x14 || f32 || '''m_fDelayBetweenPlays''' || |
||
|- |
|- |
||
| 0x18 || |
| 0x18 || f32 || '''m_fProbability''' || |
||
|- |
|- |
||
| 0x1C || |
| 0x1C || f32 || '''m_fDefaultDuration''' || |
||
|- |
|- |
||
| 0x20 || |
| 0x20 || f32 || '''m_fLastDuration''' || |
||
|- |
|- |
||
| 0x24 || |
| 0x24 || u32 || '''m_uMaxPlays''' || Max amount of plays. |
||
|- |
|- |
||
| 0x28 || iSndGroupHandle || '''m_soundGroupHandle''' || |
| 0x28 || iSndGroupHandle || '''m_soundGroupHandle''' || |
||
Line 47: | Line 97: | ||
| 0x2C || xOneLinerManager || '''m_pOLManager''' || |
| 0x2C || xOneLinerManager || '''m_pOLManager''' || |
||
|- |
|- |
||
| 0x30 || |
| 0x30 || s16 || '''m_eventType''' || |
||
|- |
|- |
||
| 0x32 || |
| 0x32 || s16 || '''m_bPlaysInMusicChannel''' || |
||
|- |
|- |
||
| 0x34 || BasicInform || '''m_pData''' || |
| 0x34 || BasicInform || '''m_pData''' || |
||
Line 55: | Line 105: | ||
| 0x38 || ePlayerType || '''m_playerType''' || |
| 0x38 || ePlayerType || '''m_playerType''' || |
||
|- |
|- |
||
| 0x3C || |
| 0x3C || s32 || '''firstParam''' || |
||
|- |
|- |
||
| 0x40 || |
| 0x40 || f32 || '''secondParam''' || |
||
|} |
|} |
||
Latest revision as of 00:45, 24 March 2024
ONEL | |
---|---|
One-Liner | |
Type | Binary |
Games used | The Incredibles |
Format
xOneLinerAsset
class xOneLinerAsset
{
public:
unsigned int oneLinerPlayerCount;
xOneLiner player;
};
Offset | Type | Variable | Description |
---|---|---|---|
0x00 | u32 | oneLinerPlayerCount | Amount of entries. |
xOneLiner
class xOneLiner
{
public:
unsigned int m_soundGroupNameHash;
float m_fSoundStartDelay;
float m_fTimeSpan;
float m_fTimeLastPlayed;
unsigned int m_uNumPlays;
float m_fDelayBetweenPlays;
float m_fProbability;
float m_fDefaultDuration;
float m_fLastDuration;
unsigned int m_uMaxPlays;
iSndGroupHandle m_soundGroupHandle;
xOneLinerManager* m_pOLManager;
signed short m_eventType;
signed short m_bPlaysInMusicChannel;
BasicInform* m_pData;
ePlayerType m_playerType;
testerPlayer m_testerData;
};
enum ePlayerType
{
eALWAYS,
eCOUNTER,
eCHECKER,
eTESTER,
ePLAYER_TYPE_SIZE
};
class testerPlayer
{
public:
signed int firstParam;
float secondParam;
};
Offset | Type | Variable | Description |
---|---|---|---|
0x00 | AssetID | m_soundGroupNameHash | SGRP |
0x04 | f32 | m_fSoundStartDelay | |
0x08 | f32 | m_fTimeSpan | |
0x0C | f32 | m_fTimeLastPlayed | |
0x10 | u32 | m_uNumPlays | Number of plays. |
0x14 | f32 | m_fDelayBetweenPlays | |
0x18 | f32 | m_fProbability | |
0x1C | f32 | m_fDefaultDuration | |
0x20 | f32 | m_fLastDuration | |
0x24 | u32 | m_uMaxPlays | Max amount of plays. |
0x28 | iSndGroupHandle | m_soundGroupHandle | |
0x2C | xOneLinerManager | m_pOLManager | |
0x30 | s16 | m_eventType | |
0x32 | s16 | m_bPlaysInMusicChannel | |
0x34 | BasicInform | m_pData | |
0x38 | ePlayerType | m_playerType | |
0x3C | s32 | firstParam | |
0x40 | f32 | secondParam |