coastline 0.0.4
Loading...
Searching...
No Matches
damagetexture.h File Reference

The damage textures of the vehicles of the PC release. More...

This graph shows which files directly or indirectly include this file:

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.

Detailed Description

The damage textures of the vehicles of the PC release.

Macro Definition Documentation

◆ DAMAGE_TEXTURE_MAX_LEVEL

#define DAMAGE_TEXTURE_MAX_LEVEL   3

The highest level of damage of IncrementDamageTextureLevel().

◆ DAMAGE_TEXTURE_COUNT

#define DAMAGE_TEXTURE_COUNT   8

The number of damage textures of IncrementDamageTextureLevel().

Function Documentation

◆ 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.

Parameters
nTextureThe damage texture, below DAMAGE_TEXTURE_COUNT.
pnEntriesThe entry of each damage texture.
pnLevelsThe level of damage of each damage texture.
Ghidra address:
BRD3D: 0x10074ed0
Ghidra address:
BRGlide: 0x1006e130

◆ ApplyRandomAdjacentDamageTexture()

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.

Parameters
nTextureThe damage texture, below DAMAGE_TEXTURE_COUNT.
pnEntriesThe entry of each damage texture.
pnLevelsThe level of damage of each damage texture.
Ghidra address:
BRD3D: 0x10074e40
Ghidra address:
BRGlide: 0x1006e0a0

◆ ClearDamageTextureEntries()

void ClearDamageTextureEntries ( void )

Clear g_anDamageTextureEntries.

Ghidra address:
BRD3D: 0x10074e00
Ghidra address:
BRGlide: 0x1006e060

◆ CopyDamageTextureEntries()

void CopyDamageTextureEntries ( int * pnEntries)

Copy g_anDamageTextureEntries.

Parameters
pnEntriesReceives the DAMAGE_TEXTURE_COUNT texture entries.
Ghidra address:
BRD3D: 0x10074e20
Ghidra address:
BRGlide: 0x1006e080

Variable Documentation

◆ g_anDamageTextureEntries

int g_anDamageTextureEntries[DAMAGE_TEXTURE_COUNT]
extern

The texture entries of the damage textures of the vehicles.

Ghidra address:
BRD3D: 0x11829850
Ghidra address:
BRGlide: 0x1186c968