From: MirceaKitsune Date: Tue, 15 Nov 2011 21:19:08 +0000 (+0200) Subject: Make player and weapon glow flicker when power is down X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6b19b6344e615371602a8fb2eab8a63b47811089;p=voretournament%2Fvoretournament.git Make player and weapon glow flicker when power is down --- diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 2d4488d4..6fb96a71 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -2637,6 +2637,8 @@ void PlayerPreThink (void) { // set weapon and player glowmod self.glowmod = colormapPaletteColor(self.clientcolors & 0x0F, TRUE) * 2; + if(self.armorvalue < cvar("g_power")) + self.glowmod = self.glowmod * random(); // make glow flicker when power is down self.weaponentity_glowmod = self.glowmod; }