UFO: Alien Invasion
Loading...
Searching...
No Matches
localModel_t Struct Reference

local models More...

#include <cl_localentity.h>

Collaboration diagram for localModel_t:
Collaboration graph

Public Member Functions

void setScale (const vec3_t scale_)

Data Fields

char id [MAX_VAR]
char name [MAX_QPATH]
char target [MAX_VAR]
char tagname [MAX_VAR]
char animname [MAX_QPATH]
struct localModel_s * parent
bool inuse
vec3_t origin
vec3_t angles
vec3_t scale
int entnum
int renderEntityNum
int skin
int renderFlags
int frame
int levelflags
animState_t as
lighting_t lighting
void(* think )(struct localModel_s *localModel)
model_tmodel

Detailed Description

local models

Definition at line 206 of file cl_localentity.h.

Member Function Documentation

◆ setScale()

void localModel_t::setScale ( const vec3_t scale_)
inline

Definition at line 235 of file cl_localentity.h.

References scale, and VectorCopy.

Referenced by LM_AddModel().

Field Documentation

◆ angles

vec3_t localModel_t::angles

Definition at line 218 of file cl_localentity.h.

Referenced by LM_AddModel(), and LM_AddToSceneOrder().

◆ animname

char localModel_t::animname[MAX_QPATH]

is this an animated model

Definition at line 212 of file cl_localentity.h.

Referenced by LM_AddToSceneOrder(), LM_Register(), and SP_misc_model().

◆ as

animState_t localModel_t::as

Definition at line 227 of file cl_localentity.h.

Referenced by LM_AddToSceneOrder(), and LM_Register().

◆ entnum

int localModel_t::entnum

entnum from the entity string (if available in the server, they match)

Definition at line 221 of file cl_localentity.h.

Referenced by LM_AddModel().

◆ frame

int localModel_t::frame

which static frame to show (this can't be used if animname is set)

Definition at line 225 of file cl_localentity.h.

Referenced by LM_AddToSceneOrder(), and SP_misc_model().

◆ id

char localModel_t::id[MAX_VAR]

in case this local model is referenced by some other local model (e.g. for tags) - this id is set in the mapeditor

Definition at line 207 of file cl_localentity.h.

Referenced by LM_AddToSceneOrder(), LM_GetByID(), and SP_misc_model().

◆ inuse

bool localModel_t::inuse

Definition at line 215 of file cl_localentity.h.

Referenced by LM_AddModel(), LM_AddToSceneOrder(), and LM_Register().

◆ levelflags

int localModel_t::levelflags

Definition at line 226 of file cl_localentity.h.

Referenced by LM_AddModel(), and LM_AddToSceneOrder().

◆ lighting

lighting_t localModel_t::lighting

Definition at line 228 of file cl_localentity.h.

Referenced by LM_AddToSceneOrder().

◆ model

model_t* localModel_t::model

Definition at line 233 of file cl_localentity.h.

Referenced by LM_AddToSceneOrder(), and LM_Register().

◆ name

char localModel_t::name[MAX_QPATH]

the name of the model file

Definition at line 209 of file cl_localentity.h.

Referenced by LM_AddModel(), and LM_Register().

◆ origin

vec3_t localModel_t::origin

Definition at line 217 of file cl_localentity.h.

Referenced by LM_AddModel(), and LM_AddToSceneOrder().

◆ parent

struct localModel_s* localModel_t::parent

in case a tag should be used to place the model a parent local model id must be given

Definition at line 214 of file cl_localentity.h.

Referenced by LM_AddToSceneOrder(), and LMT_Init().

◆ renderEntityNum

int localModel_t::renderEntityNum

entity number in the renderer entity array

Definition at line 222 of file cl_localentity.h.

Referenced by LM_AddToSceneOrder().

◆ renderFlags

int localModel_t::renderFlags

effect flags

Definition at line 224 of file cl_localentity.h.

Referenced by LM_AddModel(), and LM_AddToSceneOrder().

◆ scale

vec3_t localModel_t::scale

default is 1.0 - no scaling

Definition at line 219 of file cl_localentity.h.

Referenced by LM_AddToSceneOrder(), and setScale().

◆ skin

int localModel_t::skin

Definition at line 223 of file cl_localentity.h.

Referenced by LM_AddToSceneOrder(), and SP_misc_model().

◆ tagname

char localModel_t::tagname[MAX_VAR]

in case a tag should be used to place the model

Definition at line 211 of file cl_localentity.h.

Referenced by LM_AddToSceneOrder(), and SP_misc_model().

◆ target

char localModel_t::target[MAX_VAR]

Definition at line 210 of file cl_localentity.h.

Referenced by LMT_Init(), and SP_misc_model().

◆ think

void(* localModel_t::think) (struct localModel_s *localModel)

is called every frame

Definition at line 231 of file cl_localentity.h.

Referenced by LM_Think(), LMT_Init(), and SP_misc_model().


The documentation for this struct was generated from the following file: