From 62235594863059c5ad9fa7b1d8fa5bef1e21dbfd Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Mon, 25 Feb 2013 17:23:10 +0200 Subject: [PATCH] Update player sounds when selecting a character of the same model but a different skin (per-skin voices) --- qcsrc/server/cl_client.qc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 1c4f220e2..be5138c92 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -618,8 +618,11 @@ void FixPlayermodel() self.skin = stof(self.playerskin); } - if(chmdl || oldskin != self.skin) - self.species = player_getspecies(); // model or skin has changed + if(chmdl || oldskin != self.skin) // model or skin has changed + { + self.species = player_getspecies(); // update species + UpdatePlayerSounds(); // update skin sounds + } if(!teamplay) if(strlen(autocvar_sv_defaultplayercolors)) -- 2.39.2