]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add skin support to client models
authorMario <mario@smbclan.net>
Wed, 15 Mar 2017 10:40:25 +0000 (20:40 +1000)
committerMario <mario@smbclan.net>
Wed, 15 Mar 2017 10:40:25 +0000 (20:40 +1000)
qcsrc/client/wall.qc
qcsrc/server/g_models.qc

index 64916ad8c17d05251f940ed0ae9e02e340ffb8bf..7a31265db9d6a549f5c72ef86c8dff2dde75da78 100644 (file)
@@ -136,6 +136,7 @@ NET_HANDLE(ENT_CLIENT_WALL, bool isnew)
                        this.colormap = ReadShort();
                else
                        this.colormap = 0;
+               this.skin = ReadByte();
        }
 
        if(f & 2)
index 3ca062b78430e338f003d53f4f80b3496dbe42cb..d3f56f5f04424f55b9eb77c3a40fc92422ea7175 100644 (file)
@@ -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))