]> git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/miscfunctions.qc
Always send the player model / skin to the client, not those of the stomach mesh...
[voretournament/voretournament.git] / data / qcsrc / server / miscfunctions.qc
index d5be06ccc7cd88045263fe89b410eef5f7733845..d2e3942fe5d36a45777bb0a1972a958caef70031 100644 (file)
@@ -2468,8 +2468,8 @@ float portrait_SendEntity(entity to, float sf)
 \r
        WriteByte(MSG_ENTITY, ENT_CLIENT_PORTRAIT);\r
 \r
-       WriteString(MSG_ENTITY, self.owner.model);\r
-       WriteByte(MSG_ENTITY, self.owner.skin);\r
+       WriteString(MSG_ENTITY, self.owner.playermodel);\r
+       WriteByte(MSG_ENTITY, stof(self.owner.playerskin));\r
        WriteString(MSG_ENTITY, self.owner.netname);\r
 \r
        return TRUE;\r
@@ -2483,7 +2483,7 @@ void portrait(entity pl, entity targ)
        e.owner = pl;\r
        e.enemy = targ;\r
 \r
-       Net_LinkEntity(e, FALSE, 0.1, portrait_SendEntity);\r
+       Net_LinkEntity(e, FALSE, 0, portrait_SendEntity);\r
 }\r
 \r
 void shockwave_spawn(string m, vector org, float sz, float t1, float t2)\r