From: Mircea Kitsune Date: Mon, 25 Feb 2013 15:23:10 +0000 (+0200) Subject: Update player sounds when selecting a character of the same model but a different... X-Git-Tag: xonotic-v0.7.0~62^2~33 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=62235594863059c5ad9fa7b1d8fa5bef1e21dbfd;p=xonotic%2Fxonotic-data.pk3dir.git Update player sounds when selecting a character of the same model but a different skin (per-skin voices) --- 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))