From db73b7b1279efb1d003c19fa8e9b6fd45db4decf Mon Sep 17 00:00:00 2001 From: black Date: Thu, 16 Dec 2004 17:57:04 +0000 Subject: [PATCH] -Now playermodel and playerskin finally work correctly (hopefully). git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4845 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_parse.c | 10 ++++++++++ client.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/cl_parse.c b/cl_parse.c index 3b9f93d8..8629ba12 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -287,6 +287,16 @@ Con_DPrintf("CL_SignonReply: %i\n", cls.signon); MSG_WriteByte (&cls.message, clc_stringcmd); MSG_WriteString (&cls.message, va("pmodel %i\n", cl_pmodel.integer)); } + if (*cl_playermodel.string) + { + MSG_WriteByte (&cls.message, clc_stringcmd); + MSG_WriteString (&cls.message, va("playermodel %s\n", cl_playermodel.string)); + } + if (*cl_playerskin.string) + { + MSG_WriteByte (&cls.message, clc_stringcmd); + MSG_WriteString (&cls.message, va("playerskin %s\n", cl_playerskin.string)); + } MSG_WriteByte (&cls.message, clc_stringcmd); MSG_WriteString (&cls.message, va("rate %i\n", cl_rate.integer)); diff --git a/client.h b/client.h index fd80cd82..d2ba51c3 100644 --- a/client.h +++ b/client.h @@ -598,6 +598,8 @@ extern cvar_t cl_name; extern cvar_t cl_color; extern cvar_t cl_rate; extern cvar_t cl_pmodel; +extern cvar_t cl_playermodel; +extern cvar_t cl_playerskin; extern cvar_t cl_upspeed; extern cvar_t cl_forwardspeed; -- 2.39.2