WeaponCamo Asset: Difference between revisions
Created page with "__NOTOC__ Category:Assets Category:BO2 The weapon camo asset was added alongside the attachment and unique attachment assets. <syntaxhighlight lang="cpp"> struct inter..." |
No edit summary |
||
| Line 4: | Line 4: | ||
The weapon camo asset was added alongside the attachment and unique attachment assets. | The weapon camo asset was added alongside the attachment and unique attachment assets. | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
struct | struct WeaponCamoSet | ||
{ | { | ||
GfxImage *solidCamoImage; | |||
GfxImage *patternCamoImage; | |||
vec2_t patternOffset; | |||
float patternScale; | |||
}; | }; | ||
struct | struct WeaponCamoMaterial | ||
{ | { | ||
unsigned __int16 replaceFlags; | |||
unsigned __int16 numBaseMaterials; | |||
Material **baseMaterials; | |||
Material **camoMaterials; | |||
float shaderConsts[8]; | |||
}; | }; | ||
struct | struct WeaponCamoMaterialSet | ||
{ | { | ||
unsigned int numMaterials; | |||
WeaponCamoMaterial *materials; | |||
}; | }; | ||
struct WeaponCamo | struct WeaponCamo | ||
{ | { | ||
const char *name; | |||
GfxImage *solidBaseImage; | |||
GfxImage *patternBaseImage; | |||
WeaponCamoSet *camoSets; | |||
unsigned int numCamoSets; | |||
WeaponCamoMaterialSet *camoMaterials; | |||
unsigned int numCamoMaterials; | |||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Source Format == | == Source Format == | ||
There is currently no known source format for the camo asset. The currently accepted one is extensionless raw text files located at "raw/camo/" that contain the setting names and new values separated by backslashes. The first entry identifies the file and for camos, "CAMOFILE" is used. | There is currently no known source format for the camo asset. The currently accepted one is extensionless raw text files located at "raw/camo/" that contain the setting names and new values separated by backslashes. The first entry identifies the file and for camos, "CAMOFILE" is used. | ||
Latest revision as of 00:52, 21 December 2014
The weapon camo asset was added alongside the attachment and unique attachment assets.
struct WeaponCamoSet
{
GfxImage *solidCamoImage;
GfxImage *patternCamoImage;
vec2_t patternOffset;
float patternScale;
};
struct WeaponCamoMaterial
{
unsigned __int16 replaceFlags;
unsigned __int16 numBaseMaterials;
Material **baseMaterials;
Material **camoMaterials;
float shaderConsts[8];
};
struct WeaponCamoMaterialSet
{
unsigned int numMaterials;
WeaponCamoMaterial *materials;
};
struct WeaponCamo
{
const char *name;
GfxImage *solidBaseImage;
GfxImage *patternBaseImage;
WeaponCamoSet *camoSets;
unsigned int numCamoSets;
WeaponCamoMaterialSet *camoMaterials;
unsigned int numCamoMaterials;
};Source Format
There is currently no known source format for the camo asset. The currently accepted one is extensionless raw text files located at "raw/camo/" that contain the setting names and new values separated by backslashes. The first entry identifies the file and for camos, "CAMOFILE" is used.