afxModelData

consoledoc.h

A datablock that specifies a Model effect.

More...

Public Attributes

float

An alpha multiplier used to set maximum opacity of the model.

LinearColorF
float
int
int
bool
bool
string

Rename one or more texture tags in the model. Texture tags are what link a model's textures to materials.

filename

The name of an animation sequence to play in the model.

float

An offset in seconds indicating a starting point for the animation sequence specified by the sequence field. A rate of 1.0 (rather than sequenceRate) is used to convert from seconds to the thread offset.

float

The rate of playback for the sequence.

bool

Sets whether the model casts a shadow.

float
float
int

deprecated

float
filename

The name of a .dts format file to use for the model.

bool

deprecated

bool
bool

deprecated

Detailed Description

A datablock that specifies a Model effect.

A Model effect is a lightweight client-only geometry object useful for effect-driven props.

Public Attributes

float alphaMult 

An alpha multiplier used to set maximum opacity of the model.

LinearColorF customAmbientLighting 

deprecated

bool customAmbientSelfIllumination 

deprecated

float fogMult 
int forceOffMaterialFlags 

deprecated

int forceOnMaterialFlags 

deprecated

bool overrideLightingOptions 

deprecated

bool receiveLMLighting 

deprecated

bool receiveSunLight 
string remapTextureTags 

Rename one or more texture tags in the model. Texture tags are what link a model's textures to materials.

Field should be a string containing space-separated remapping tokens. A remapping token is two names separated by a colon, ':'. The first name should be a texture-tag that exists in the model, while the second is a new name to replace it. The string can have any number of remapping tokens as long as the total string length does not exceed 255.

filename sequence 

The name of an animation sequence to play in the model.

float sequenceOffset 

An offset in seconds indicating a starting point for the animation sequence specified by the sequence field. A rate of 1.0 (rather than sequenceRate) is used to convert from seconds to the thread offset.

float sequenceRate 

The rate of playback for the sequence.

bool shadowEnable 

Sets whether the model casts a shadow.

float shadowMaxVisibleDistance 

deprecated

float shadowProjectionDistance 

deprecated

int shadowSize 

deprecated

float shadowSphereAdjust 

deprecated

filename shapeFile 

The name of a .dts format file to use for the model.

bool textureFiltering 

deprecated

bool useAdaptiveSelfIllumination 

deprecated

bool useCustomAmbientLighting 

deprecated

bool useVertexAlpha 

deprecated