Glass Map Asset: Difference between revisions
Created page with "__NOTOC__ Category:Assets Category:MW3 Category:Ghosts The glass_map asset is part of the D3DBSP system produced by Radiant, and appears to be Infinity Ward's vers..." |
No edit summary |
||
| Line 5: | Line 5: | ||
The glass_map asset is part of the D3DBSP system produced by Radiant, and appears to be Infinity Ward's version of Treyarch's [[:Glasses_Asset|glasses]] asset. It was added on Modern Warfare 3 and remained unchanged on Ghosts. | The glass_map asset is part of the D3DBSP system produced by Radiant, and appears to be Infinity Ward's version of Treyarch's [[:Glasses_Asset|glasses]] asset. It was added on Modern Warfare 3 and remained unchanged on Ghosts. | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
struct | struct G_GlassName | ||
{ | { | ||
char *nameStr; | |||
scr_string_t name; | |||
unsigned | unsigned __int16 pieceCount; | ||
unsigned | unsigned __int16 *pieceIndices; | ||
}; | }; | ||
struct | struct __declspec(align(8)) G_GlassData | ||
{ | { | ||
G_GlassPiece *glassPieces; | |||
unsigned int pieceCount; | |||
unsigned __int16 damageToWeaken; | |||
unsigned int | unsigned __int16 damageToDestroy; | ||
unsigned int glassNameCount; | |||
G_GlassName *glassNames; | |||
char pad[108]; | |||
}; | }; | ||
| Line 26: | Line 27: | ||
{ | { | ||
const char * name; | const char * name; | ||
G_GlassData *g_glassData; | |||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 05:34, 22 December 2014
The glass_map asset is part of the D3DBSP system produced by Radiant, and appears to be Infinity Ward's version of Treyarch's glasses asset. It was added on Modern Warfare 3 and remained unchanged on Ghosts.
struct G_GlassName
{
char *nameStr;
scr_string_t name;
unsigned __int16 pieceCount;
unsigned __int16 *pieceIndices;
};
struct __declspec(align(8)) G_GlassData
{
G_GlassPiece *glassPieces;
unsigned int pieceCount;
unsigned __int16 damageToWeaken;
unsigned __int16 damageToDestroy;
unsigned int glassNameCount;
G_GlassName *glassNames;
char pad[108];
};
struct GlassWorld
{
const char * name;
G_GlassData *g_glassData;
};