File size: 922 Bytes
7e9dc27 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | --[[
Project: SA Memory (Available from https://blast.hk/)
Developers: LUCHARE, FYP
Special thanks:
plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses.
Copyright (c) 2018 BlastHack.
]]
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)
|