|
coastline 0.0.4
|
The damage textures of the vehicles of the PC release. More...

Go to the source code of this file.
Macros | |
| #define | DAMAGE_TEXTURE_MAX_LEVEL 3 |
| The highest level of damage of IncrementDamageTextureLevel(). | |
| #define | DAMAGE_TEXTURE_COUNT 8 |
| The number of damage textures of IncrementDamageTextureLevel(). | |
Functions | |
| void | IncrementDamageTextureLevel (int nTexture, const int *pnEntries, int *pnLevels) |
| Raise the level of damage of a damage texture by one, up to DAMAGE_TEXTURE_MAX_LEVEL, and load the texture again. | |
| void | ApplyRandomAdjacentDamageTexture (int nTexture, const int *pnEntries, int *pnLevels) |
| Raise the level of damage of a damage texture or of one of its two neighbours, wrapping at the ends, chosen at random from those below DAMAGE_TEXTURE_MAX_LEVEL. | |
| void | ClearDamageTextureEntries (void) |
| Clear g_anDamageTextureEntries. | |
| void | CopyDamageTextureEntries (int *pnEntries) |
| Copy g_anDamageTextureEntries. | |
Variables | |
| int | g_anDamageTextureEntries [DAMAGE_TEXTURE_COUNT] |
| The texture entries of the damage textures of the vehicles. | |
The damage textures of the vehicles of the PC release.
| #define DAMAGE_TEXTURE_MAX_LEVEL 3 |
The highest level of damage of IncrementDamageTextureLevel().
| #define DAMAGE_TEXTURE_COUNT 8 |
The number of damage textures of IncrementDamageTextureLevel().
| void IncrementDamageTextureLevel | ( | int | nTexture, |
| const int * | pnEntries, | ||
| int * | pnLevels ) |
Raise the level of damage of a damage texture by one, up to DAMAGE_TEXTURE_MAX_LEVEL, and load the texture again.
| nTexture | The damage texture, below DAMAGE_TEXTURE_COUNT. |
| pnEntries | The entry of each damage texture. |
| pnLevels | The level of damage of each damage texture. |
| void ApplyRandomAdjacentDamageTexture | ( | int | nTexture, |
| const int * | pnEntries, | ||
| int * | pnLevels ) |
Raise the level of damage of a damage texture or of one of its two neighbours, wrapping at the ends, chosen at random from those below DAMAGE_TEXTURE_MAX_LEVEL.
| nTexture | The damage texture, below DAMAGE_TEXTURE_COUNT. |
| pnEntries | The entry of each damage texture. |
| pnLevels | The level of damage of each damage texture. |
| void ClearDamageTextureEntries | ( | void | ) |
Clear g_anDamageTextureEntries.
| void CopyDamageTextureEntries | ( | int * | pnEntries | ) |
Copy g_anDamageTextureEntries.
| pnEntries | Receives the DAMAGE_TEXTURE_COUNT texture entries. |
|
extern |
The texture entries of the damage textures of the vehicles.