From: Mario Date: Wed, 15 Mar 2017 10:40:25 +0000 (+1000) Subject: Add skin support to client models X-Git-Tag: xonotic-v0.8.2~50 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f5b2f43e76a4e1d33a228f99ccd67dbe13c4f581;p=xonotic%2Fxonotic-data.pk3dir.git Add skin support to client models --- diff --git a/qcsrc/client/wall.qc b/qcsrc/client/wall.qc index 64916ad8c..7a31265db 100644 --- a/qcsrc/client/wall.qc +++ b/qcsrc/client/wall.qc @@ -136,6 +136,7 @@ NET_HANDLE(ENT_CLIENT_WALL, bool isnew) this.colormap = ReadShort(); else this.colormap = 0; + this.skin = ReadByte(); } if(f & 2) diff --git a/qcsrc/server/g_models.qc b/qcsrc/server/g_models.qc index 3ca062b78..d3f56f5f0 100644 --- a/qcsrc/server/g_models.qc +++ b/qcsrc/server/g_models.qc @@ -99,6 +99,7 @@ bool g_clientmodel_genericsendentity(entity this, entity to, int sf) { if(sf & 0x40) WriteShort(MSG_ENTITY, this.colormap); + WriteByte(MSG_ENTITY, this.skin); } if(sf & BIT(1))