From: terencehill Date: Sun, 27 Dec 2020 14:00:44 +0000 (+0100) Subject: Turn cp_bob_dmg into a float X-Git-Tag: xonotic-v0.8.5~618 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=937599c7e334235384cc319be71904f7efbf0eb2;p=xonotic%2Fxonotic-data.pk3dir.git Turn cp_bob_dmg into a float --- diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/cl_controlpoint.qc b/qcsrc/common/gamemodes/gamemode/onslaught/cl_controlpoint.qc index e08ea8101..cce889f89 100644 --- a/qcsrc/common/gamemodes/gamemode/onslaught/cl_controlpoint.qc +++ b/qcsrc/common/gamemodes/gamemode/onslaught/cl_controlpoint.qc @@ -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)