WriteShort(MSG_ENTITY, compressShortVector(this.dest));
WriteShort(MSG_ENTITY, this.count);
WriteByte(MSG_ENTITY, this.cnt);
+ WriteShort(MSG_ENTITY, bound(0, this.fade_end, 65535));
return true;
}
void Draw_RainSnow(entity this)
{
- vector maxdist = '1 1 1' * autocvar_cl_rainsnow_maxdrawdist;
+ float drawdist = ((this.fade_end) ? this.fade_end : autocvar_cl_rainsnow_maxdrawdist);
+ vector maxdist = '1 1 1' * drawdist;
vector effbox_min = vec_to_max(view_origin - maxdist, this.origin + this.mins);
vector effbox_max = vec_to_min(view_origin + maxdist, this.origin + this.maxs);
this.velocity = decompressShortVector(ReadShort());
this.count = ReadShort();
this.glow_color = ReadByte(); // color
+ this.fade_end = ReadShort();
return = true;