22 this.
colormap = (actor.team - 1) * 0x11;
50 setorigin(
this, this.
origin);
59 setorigin(
this, this.
origin);
103 if(this.
angles !=
'0 0 0')
105 if(this.
mins !=
'0 0 0' || this.
maxs !=
'0 0 0')
153 if(this.bgmscript !=
"")
176 if(!ent.scale) ent.scale = ent.modelscale;
178 if(!ent.solid) ent.solid = (sol);
179 else if(ent.solid < 0) ent.solid =
SOLID_NOT;
189 if(!ent.scale) ent.scale = ent.modelscale;
191 if(!ent.solid) ent.solid = (sol);
192 else if(ent.solid < 0) ent.solid =
SOLID_NOT;
197 ent.nextthink =
time;
198 ent.oldorigin = ent.origin;
200 if(!ent.bgmscriptsustain) ent.bgmscriptsustain = 1;
201 else if(ent.bgmscriptsustain < 0) ent.bgmscriptsustain = 0;
203 ent.default_solid = sol;
224void Ent_Wall_PreDraw(
entity this)
226 float alph = this.
alpha;
247 float player_dist =
vlen(player_dist_math);
266 if(this.bgmscriptangular)
270 this.(fld) = this.saved;
276 this.saved = this.(fld);
284 this.
alpha = 1 - this.
lip * (1 - f);
285 this.(fld) = this.(fld) + this.
movedir * f;
304 if(this.bgmscriptangular)
308 this.(fld) = this.saved;
324 setorigin(
this, this.
origin);
347 setsize(
this, pmin, pmax);
358 setsize(
this, pmin, pmax);
363 this.
scale = ReadShort() / 256.0;
371 setsize(
this, this.
mins, this.
maxs);
377 this.bgmscriptangular = 1;
381 strcpy(this.bgmscript, s);
382 this.bgmscriptangular = 0;
384 if(this.bgmscript !=
"")
386 this.bgmscriptattack =
ReadByte() / 64.0;
387 this.bgmscriptdecay =
ReadByte() / 64.0;
388 this.bgmscriptsustain =
ReadByte() / 255.0;
389 this.bgmscriptrelease =
ReadByte() / 64.0;
406 this.saved = this.(fld);
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void BGMScript_InitEntity(entity e)
float doBGMScript(entity e)
IntrusiveList g_drawables
const float ALPHA_MIN_VISIBLE
const int INITPRIO_DROPTOFLOOR
const float MOVE_NOMONSTERS
float checkpvs(vector viewpos, entity viewee)
void CSQCModel_LOD_Apply(entity this, bool isplayer)
void InterpolateOrigin_Undo(entity this)
snap origin to iorigin2 (actual origin)
void InterpolateOrigin_Note(entity this)
void InterpolateOrigin_Do(entity this)
set origin based on iorigin1 (old pos), iorigin2 (desired pos), and time
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
#define NET_HANDLE(id, param)
#define ReadAngleVector()
#define WriteHeader(to, id)
void Net_LinkEntity(entity e, bool docull, float dt, bool(entity this, entity to, int sendflags) sendfunc)
void g_model_dropbyspawnflags(entity this)
void g_clientmodel_think(entity this)
void g_model_init(entity ent, float sol)
void g_clientmodel_dropbyspawnflags(entity this)
void g_model_setcolormaptoactivator(entity this, entity actor, entity trigger)
bool g_clientmodel_genericsendentity(entity this, entity to, int sf)
void g_clientmodel_setcolormaptoactivator(entity this, entity actor, entity trigger)
void g_clientmodel_use(entity this, entity actor, entity trigger)
void g_clientmodel_init(entity ent, float sol)
float fade_vertical_offset
void Ent_Wall_Remove(entity this)
void Ent_Wall_Draw(entity this)
void set_movetype(entity this, int mt)
const int MOVETYPE_PHYSICS
bool autocvar_physics_ode
void SetBrushEntityModel(entity this, bool with_lod)
#define vdist(v, cmp, f)
Vector distance comparison, avoids sqrt()
void InitializeEntity(entity e, void(entity this) func, int order)