]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Turn cp_bob_dmg into a float
authorterencehill <piuntn@gmail.com>
Sun, 27 Dec 2020 14:00:44 +0000 (15:00 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 27 Dec 2020 14:00:44 +0000 (15:00 +0100)
qcsrc/common/gamemodes/gamemode/onslaught/cl_controlpoint.qc

index e08ea810109fce2aa6f9eefb1e22542e781508c9..cce889f89f780756250f64d9f9a0bb430d62ae29 100644 (file)
@@ -10,7 +10,7 @@
 .vector cp_origin, cp_bob_origin;
 .float cp_bob_spd;
 
-.vector cp_bob_dmg;
+.float cp_bob_dmg_z;
 
 .vector punchangle;
 
@@ -79,7 +79,7 @@ void cpicon_draw(entity this)
                this.angles_y = this.angles_y + 45 * frametime;
        }
 
-       setorigin(this, this.cp_origin + this.cp_bob_origin + this.cp_bob_dmg);
+       setorigin(this, this.cp_origin + this.cp_bob_origin + eZ * this.cp_bob_dmg_z);
 }
 
 void cpicon_damage(entity this, float hp)