| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | local shared = require 'SAMemory.shared' |
| |
|
| | shared.require 'vector3d' |
| | shared.require 'CEntity' |
| | shared.require 'FxSystem_c' |
| |
|
| | shared.ffi.cdef[[ |
| | typedef struct CFire |
| | { |
| | struct |
| | { |
| | unsigned char bActive : 1; |
| | unsigned char bCreatedByScript : 1; |
| | unsigned char bMakesNoise : 1; |
| | unsigned char bBeingExtinguished : 1; |
| | unsigned char bFirstGeneration : 1; |
| | } nFlags; |
| | char _pad0; |
| | short nScriptReferenceIndex; |
| | vector3d vecPosition; |
| | CEntity *pEntityTarget; |
| | CEntity *pEntityCreator; |
| | unsigned int nTimeToBurn; |
| | float fStrength; |
| | char nNumGenerationsAllowed; |
| | unsigned char nRemovalDist; |
| | char _pad1[2]; |
| | FxSystem_c *pFxSystem; |
| | } CFire; |
| | ]] |
| |
|
| | shared.validate_size('CFire', 0x28) |
| |
|