Nuclide
Software Development Kit for id Tech
NSDecal.qc File Reference

Functions

void Decals_Init (void)
 
NSDecal Decals_Next (vector pos)
 
void Decals_Place (vector pos, string dname)
 Places a desired decal at the specified position. More...
 
string Decal_Precache (string decalTex)
 
void Decal_Reload (void)
 
void Decal_Parse (void)
 
void Decal_Shutdown (void)
 

Variables

var int autocvar_r_drawdecals = TRUE
 
var int autocvar_sp_decals = 128
 
var int autocvar_mp_decals = 128
 
var int autocvar_cl_decals = 128
 
 enumflags
 
const string g_decal_shader
 
NSDecal g_decals
 

Function Documentation

◆ Decal_Parse()

void Decal_Parse ( void  )

◆ Decal_Precache()

string Decal_Precache ( string  decalTex)

◆ Decal_Reload()

void Decal_Reload ( void  )

◆ Decal_Shutdown()

void Decal_Shutdown ( void  )

◆ Decals_Init()

void Decals_Init ( void  )

◆ Decals_Next()

NSDecal Decals_Next ( vector  pos)

◆ Decals_Place()

void Decals_Place ( vector  pos,
string  dname 
)

Places a desired decal at the specified position.

Variable Documentation

◆ autocvar_cl_decals

var int autocvar_cl_decals = 128

◆ autocvar_mp_decals

var int autocvar_mp_decals = 128

◆ autocvar_r_drawdecals

var int autocvar_r_drawdecals = TRUE

◆ autocvar_sp_decals

var int autocvar_sp_decals = 128

◆ enumflags

enumflags
Initial value:
{
DECALFL_ORIGIN,
DECALFL_ANGLE,
DECALFL_MATERIAL
}

◆ g_decal_shader

const string g_decal_shader
Initial value:
=
"{\n"
"polygonOffset\n"
"{\n"
"clampmap %s\n"
"rgbgen vertex\n"
"blendfunc blend\n"
"}\n"
"}"

◆ g_decals

NSDecal g_decals