]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Freezetag: team colored ice with full starting alpha
authorterencehill <piuntn@gmail.com>
Mon, 4 Mar 2013 18:01:52 +0000 (19:01 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 4 Mar 2013 18:01:52 +0000 (19:01 +0100)
qcsrc/server/mutators/gamemode_freezetag.qc

index c7b5f2a898cd40d2690679cbdc078e94945de93a..94c27bc1b813e7f88d499944e459350c7ba9c248 100644 (file)
@@ -2,7 +2,7 @@
 .float freezetag_frozen_timeout;
 .float freezetag_revive_progress;
 .entity freezetag_ice;
-#define ICE_MAX_ALPHA 0.6
+#define ICE_MAX_ALPHA 1
 #define ICE_MIN_ALPHA 0.1
 float freezetag_teams;
 
@@ -207,6 +207,7 @@ void freezetag_Freeze(entity attacker)
        ice.nextthink = time;
        ice.frame = floor(random() * 21); // ice model has 20 different looking frames
        ice.alpha = ICE_MAX_ALPHA;
+       ice.colormod = TeamColor(self.team);
        setmodel(ice, "models/ice/ice.md3");
 
        self.freezetag_ice = ice;