]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/monsters.qc
Fix monster color resetting when it respawns
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / monsters.qc
index 768c65990ac31e476e3a7deeb13bbcf89dc39f50..e88116a4e18a9cfdb7dcfa3e78d762adc35c2de4 100644 (file)
@@ -227,6 +227,8 @@ void monster_changeteam()
        
        if(self.team)
                self.colormap = 1024 + (self.team - 1) * 17;
+       else
+               self.colormap = 1024;
 }
 
 void monster_die()
@@ -290,11 +292,11 @@ void ent_monster()
                self.angles_y = ReadAngle();
                
                self.skin = ReadByte();
+               self.team = ReadByte();
                
                monster_precache(self.monsterid);
                monster_construct();
-               self.colormap = 1024;
-               self.glowmod = '0 1 1'; 
+               monster_changeteam();
        }
        
        if(sf & MSF_ANG)