[nexuiz-commits] r7130 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Jun 30 09:36:51 EDT 2009
Author: div0
Date: 2009-06-30 09:36:51 -0400 (Tue, 30 Jun 2009)
New Revision: 7130
Modified:
trunk/data/qcsrc/server/cl_client.qc
trunk/data/qcsrc/server/cl_player.qc
Log:
some player CEFC fixes
Modified: trunk/data/qcsrc/server/cl_client.qc
===================================================================
--- trunk/data/qcsrc/server/cl_client.qc 2009-06-30 13:20:00 UTC (rev 7129)
+++ trunk/data/qcsrc/server/cl_client.qc 2009-06-30 13:36:51 UTC (rev 7130)
@@ -394,6 +394,11 @@
LOD reduction
=============
*/
+void Client_uncustomizeentityforclient()
+{
+ self.modelindex = self.modelindex_lod0;
+ self.skin = self.skinindex;
+}
float Client_customizeentityforclient()
{
entity modelsource;
@@ -611,7 +616,7 @@
self.punchangle = '0 0 0';
self.punchvector = '0 0 0';
self.oldvelocity = self.velocity;
- self.customizeentityforclient = Client_customizeentityforclient;
+ SetCustomizer(self, Client_customizeentityforclient, Client_uncustomizeentityforclient);
self.team = -1;
@@ -883,7 +888,7 @@
WriteByte(MSG_ONE, TE_CSQC_SPAWN);
});
- self.customizeentityforclient = Client_customizeentityforclient;
+ SetCustomizer(self, Client_customizeentityforclient, Client_uncustomizeentityforclient);
self.model = "";
FixPlayermodel();
Modified: trunk/data/qcsrc/server/cl_player.qc
===================================================================
--- trunk/data/qcsrc/server/cl_player.qc 2009-06-30 13:20:00 UTC (rev 7129)
+++ trunk/data/qcsrc/server/cl_player.qc 2009-06-30 13:36:51 UTC (rev 7130)
@@ -59,6 +59,8 @@
self.takedamage = oldself.takedamage;
self.think = oldself.think;
self.customizeentityforclient = oldself.customizeentityforclient;
+ self.uncustomizeentityforclient = oldself.uncustomizeentityforclient;
+ self.uncustomizeentityforclient_set = oldself.uncustomizeentityforclient_set;
if (keepvelocity == 1)
self.velocity = oldself.velocity;
self.oldvelocity = self.velocity;
More information about the nexuiz-commits
mailing list