35 #define extensions(x) \
41 #define tryext(ext) { \
42 string s = strcat(_fn2, autocvar_cl_simpleitems_postfix, "." #ext); \
43 string cached = HM_gets(ENT_CLIENT_ITEM_simple, s); \
45 HM_sets(ENT_CLIENT_ITEM_simple, s, cached = fexists(s) ? "1" : "0"); \
47 if (cached != "0") { \
49 this.item_simple = 1; \
57 LOG_TRACEF(
"Simple item requested for %s but no model exists for it", this.
mdl);
71 precache_model(this.
model);
72 _setmodel(
this, this.
model);
91 else if(!this.avelocity_y)
94 this.avelocity_y = 180;
96 this.avelocity_y = -90;
106 bobheight = this.origin_z - this.oldorigin_z;
114 this.oldorigin_z -= bobheight;
137 if (bobheight != this.origin_z - this.oldorigin_z)
139 this.origin_z = this.oldorigin_z + bobheight;
140 this.mins_z = this.
m_mins.z - bobheight;
141 this.maxs_z = this.
m_maxs.z - bobheight;
206 if (this.
delay > 0.0625)
226 float bobheight = this.origin_z - this.oldorigin_z;
228 this.origin_z += bobheight;
229 setorigin(
this, this.
origin);
252 setorigin(
this, this.
origin);
265 setorigin(
this, this.
origin);
312 this.item_glowmod_x =
ReadByte() / 255.0;
313 this.item_glowmod_y =
ReadByte() / 255.0;
314 this.item_glowmod_z =
ReadByte() / 255.0;
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void ItemRemove(entity this)
HashMap ENT_CLIENT_ITEM_simple
void ItemSetModel(entity this, bool wantsimple)
void ItemDraw(entity this)
float autocvar_cl_items_animate
float autocvar_cl_items_vehicle_alpha
float autocvar_cl_weapon_stay_alpha
float autocvar_cl_items_fadedist
vector autocvar_cl_items_vehicle_color
vector autocvar_cl_ghost_items_color
float autocvar_cl_ghost_items
float autocvar_cl_simple_items
vector autocvar_cl_weapon_stay_color
IntrusiveList g_drawables
const float IT_DESPAWNFX_TIME
const float SOLID_TRIGGER
const float EF_FULLBRIGHT
#define pointparticles(effect, org, vel, howmany)
ERASEABLE void IL_REMOVE(IntrusiveList this, entity it)
Remove any element, anywhere in the list.
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
#define NET_HANDLE(id, param)
#define ReadAngleVector()
float warpzone_warpzones_exist
void set_movetype(entity this, int mt)
void Movetype_Physics_NoMatchTicrate(entity this, float movedt, bool isclient)
#define SHUTDOWN(func)
before shutdown
#define STATIC_INIT(func)
during worldspawn
#define vdist(v, cmp, f)
Vector distance comparison, avoids sqrt()