20 if(!veh_hud && (this.ItemStatus & ITS_AVAILABLE))
32 if((!veh_hud) && (this.ItemStatus & ITS_STAYWEP))
53 if(this.ItemStatus & ITS_ANIMATE1)
56 if(this.ItemStatus & ITS_ANIMATE2)
68 if(this.ItemStatus & ITS_ANIMATE1)
75 if(this.ItemStatus & ITS_ANIMATE2)
109 if(!
hud && (this.ItemStatus & ITS_AVAILABLE))
136 if(sf & ISF_LOCATION)
138 vector org = ReadVector();
145 this.
angles = ReadAngleVector();
150 setsize(
this,
'-16 -16 0',
'16 16 48');
155 this.ItemStatus = ReadByte();
159 if(this.ItemStatus & ITS_ALLOWFB)
164 if(this.ItemStatus & ITS_GLOW)
166 if(this.ItemStatus & ITS_AVAILABLE)
197 #define extensions(x) \ 203 #define tryext(ext) { \ 204 string s = strcat(_fn2, autocvar_cl_simpleitems_postfix, "." #ext); \ 205 string cached = HM_gets(ENT_CLIENT_ITEM_simple, s); \ 206 if (cached == "") { \ 207 HM_sets(ENT_CLIENT_ITEM_simple, s, cached = fexists(s) ? "1" : "0"); \ 209 if (cached != "0") { \ 210 strcpy(this.mdl, s); \ 217 LOG_TRACEF(
"Simple item requested for %s but no model exists for it", _fn);
229 precache_model(this.mdl);
230 _setmodel(
this, this.mdl);
232 this.
skin = ReadByte();
234 setsize(
this,
'-16 -16 0',
'16 16 48');
237 if(sf & ISF_COLORMAP)
240 this.item_glowmod_x = ReadByte() / 255.0;
241 this.item_glowmod_y = ReadByte() / 255.0;
242 this.item_glowmod_z = ReadByte() / 255.0;
265 if(this.ItemStatus & ITS_ANIMATE1)
268 if(this.ItemStatus & ITS_ANIMATE2)
float autocvar_cl_ghost_items
vector autocvar_cl_ghost_items_color
float autocvar_cl_animate_items
SHUTDOWN(ENT_CLIENT_ITEM_simple)
float autocvar_cl_simple_items
void Item_PreDraw(entity this)
void Item_SetAlpha(entity this)
float warpzone_warpzones_exist
const float EF_FULLBRIGHT
bool autocvar_cl_ghost_items_vehicle
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
void Movetype_Physics_MatchServer(entity this, bool sloppy)
void ItemRemove(entity this)
vector autocvar_cl_weapon_stay_color
vector(float skel, float bonenum) _skel_get_boneabs_hidden
#define vdist(v, cmp, f)
Vector distance comparison, avoids sqrt()
void ItemDraw(entity this)
float autocvar_cl_weapon_stay_alpha
const float SOLID_TRIGGER
HashMap ENT_CLIENT_ITEM_simple
STATIC_INIT(ENT_CLIENT_ITEM_simple)
bool autocvar_cl_items_nofade
IntrusiveList g_drawables
void set_movetype(entity this, int mt)
NET_HANDLE(ENT_CLIENT_ITEM, bool isnew)