]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
when frozen, immediately give the ice the right origin
authorRudolf Polzer <divverent@alientrap.org>
Wed, 29 Dec 2010 17:03:58 +0000 (18:03 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 29 Dec 2010 17:03:58 +0000 (18:03 +0100)
qcsrc/server/mutators/gamemode_freezetag.qc

index e69a746793b57608cecedbf025bb197d98fd346a..10a7852708fff9d448a3ca0338528678722afc74 100644 (file)
@@ -71,7 +71,11 @@ void freezetag_Freeze()
        ice.frame = floor(random() * 21); // ice model has 20 different looking frames
        setmodel(ice, "models/ice/ice.md3");
 
-       self.movement = '0 0 0';
+       entity oldself;
+       olfself = self;
+       self = ice;
+       freezetag_Ice_Think();
+       self = oldself;
 
        // add waypoint
        WaypointSprite_Spawn("freezetag_frozen", 0, 0, self, '0 0 64', world, self.team, self, waypointsprite_attached, TRUE);