]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Make player and weapon glow flicker when power is down
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 15 Nov 2011 21:19:08 +0000 (23:19 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 15 Nov 2011 21:19:08 +0000 (23:19 +0200)
data/qcsrc/server/cl_client.qc

index 2d4488d4a0f2408f2664280e2e3a4216ed06fb5d..6fb96a71a52c372b58e395f905d704677c981774 100644 (file)
@@ -2637,6 +2637,8 @@ void PlayerPreThink (void)
                        {\r
                                // set weapon and player glowmod\r
                                self.glowmod = colormapPaletteColor(self.clientcolors & 0x0F, TRUE) * 2;\r
+                               if(self.armorvalue < cvar("g_power"))\r
+                                       self.glowmod = self.glowmod * random(); // make glow flicker when power is down\r
                                self.weaponentity_glowmod = self.glowmod;\r
                        }\r
 \r