22 this.
colormap = (actor.team - 1) * 0x11;
50 setorigin(
this, this.
origin);
59 setorigin(
this, this.
origin);
104 if(this.
angles !=
'0 0 0')
106 if(this.
mins !=
'0 0 0' || this.
maxs !=
'0 0 0')
154 if(this.bgmscript !=
"")
177 if(!ent.scale) ent.scale = ent.modelscale;
179 if(!ent.solid) ent.solid = (sol);
180 else if(ent.solid < 0) ent.solid =
SOLID_NOT;
190 if(!ent.scale) ent.scale = ent.modelscale;
192 if(!ent.solid) ent.solid = (sol);
193 else if(ent.solid < 0) ent.solid =
SOLID_NOT;
198 ent.nextthink =
time;
199 ent.oldorigin = ent.origin;
201 if(!ent.bgmscriptsustain) ent.bgmscriptsustain = 1;
202 else if(ent.bgmscriptsustain < 0) ent.bgmscriptsustain = 0;
204 ent.default_solid = sol;
225void Ent_Wall_PreDraw(
entity this)
227 float alph = this.
alpha;
248 float player_dist =
vlen(player_dist_math);
267 if(this.bgmscriptangular)
271 this.(fld) = this.saved;
277 this.saved = this.(fld);
285 this.
alpha = 1 - this.
lip * (1 - f);
286 this.(fld) = this.(fld) + this.
movedir * f;
305 if(this.bgmscriptangular)
309 this.(fld) = this.saved;
325 setorigin(
this, this.
origin);
348 setsize(
this, pmin, pmax);
359 setsize(
this, pmin, pmax);
364 this.
scale = ReadShort() / 256.0;
372 setsize(
this, this.
mins, this.
maxs);
378 this.bgmscriptangular = 1;
382 strcpy(this.bgmscript, s);
383 this.bgmscriptangular = 0;
385 if(this.bgmscript !=
"")
387 this.bgmscriptattack =
ReadByte() / 64.0;
388 this.bgmscriptdecay =
ReadByte() / 64.0;
389 this.bgmscriptsustain =
ReadByte() / 255.0;
390 this.bgmscriptrelease =
ReadByte() / 64.0;
407 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)