Add IW4 ImpactFx loading code

This commit is contained in:
Jan
2020-09-09 11:58:42 +02:00
parent ceeb1832cd
commit b4756c3688
6 changed files with 32 additions and 12 deletions

View File

@ -102,7 +102,7 @@ namespace IW4
// struct WeaponCompleteDef;
// struct SndDriverGlobals;
struct FxEffectDef;
// struct FxImpactTable;
struct FxImpactTable;
struct RawFile;
struct StringTable;
@ -143,7 +143,7 @@ namespace IW4
// WeaponCompleteDef* weapon;
// SndDriverGlobals* sndDriverGlobals;
FxEffectDef* fx;
// FxImpactTable* impactFx;
FxImpactTable* impactFx;
RawFile* rawfile;
StringTable* stringTable;
// LeaderboardDef* leaderboardDef;
@ -1627,6 +1627,18 @@ namespace IW4
int lmapLookupStart;
};
struct FxImpactEntry
{
FxEffectDef* nonflesh[31];
FxEffectDef* flesh[4];
};
struct FxImpactTable
{
const char* name;
FxImpactEntry* table;
};
#ifndef __zonecodegenerator
}
#endif