precache_model(this.mdl);
_setmodel(this, this.mdl);
+ this.skin = ReadByte();
+
setsize(this, '-16 -16 0', '16 16 48');
}
CLASS(Pickup, GameItem)
#ifdef GAMEQC
ATTRIB(Pickup, m_model, Model);
+ ATTRIB(Pickup, m_skin, int);
+ ATTRIB(Pickup, m_color, vector);
ATTRIB(Pickup, m_sound, Sound, SND_ITEMPICKUP);
#endif
ATTRIB(Pickup, netname, string);
LOG_TRACE("^1WARNING!^7 this.mdl is unset for item ", this.classname, "expect a crash just about now");
WriteString(MSG_ENTITY, this.mdl);
+ WriteByte(MSG_ENTITY, bound(0, this.skin, 255));
}
-
if(sf & ISF_COLORMAP)
{
WriteShort(MSG_ENTITY, this.colormap);
setmodel(this, MDL_Null); // precision set below
//this.effects |= EF_LOWPRECISION;
+ // support skinned models for powerups
+ this.skin = def.m_skin;
+ this.glowmod = def.m_color;
+
setsize (this, this.pos1 = def.m_mins, this.pos2 = def.m_maxs);
this.SendFlags |= ISF_SIZE;