From: TimePath Date: Wed, 30 Sep 2015 01:41:51 +0000 (+1000) Subject: Vehicles: fix racer cannon damage ownership X-Git-Tag: xonotic-v0.8.2~1874^2~33 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e1c1d641a6cc87722e110e58539f54c062a0bd27;p=xonotic%2Fxonotic-data.pk3dir.git Vehicles: fix racer cannon damage ownership --- diff --git a/qcsrc/common/vehicles/vehicle/racer.qc b/qcsrc/common/vehicles/vehicle/racer.qc index 92c3e7fdb..dad0fd12e 100644 --- a/qcsrc/common/vehicles/vehicle/racer.qc +++ b/qcsrc/common/vehicles/vehicle/racer.qc @@ -57,13 +57,13 @@ METHOD(RacerAttack, wr_think, bool(entity thiswep, bool fire1, bool fire2)) { veh.vehicle_energy -= autocvar_g_vehicle_racer_cannon_cost; veh.wait = time; } - if (isPlayer) W_SetupShot_Dir(self, v_forward, false, 0, SND(Null), CH_WEAPON_B, 0); + if (isPlayer) W_SetupShot_Dir(player, v_forward, false, 0, SND(Null), CH_WEAPON_B, 0); vector org = w_shotorg; vector dir = w_shotdir; entity bolt = vehicles_projectile(EFFECT_RACER_MUZZLEFLASH.eent_eff_name, SND(LASERGUN_FIRE), org, normalize(v_forward + randomvec() * autocvar_g_vehicle_racer_cannon_spread) * autocvar_g_vehicle_racer_cannon_speed, autocvar_g_vehicle_racer_cannon_damage, autocvar_g_vehicle_racer_cannon_radius, autocvar_g_vehicle_racer_cannon_force, 0, - DEATH_VH_WAKI_GUN, PROJECTILE_WAKICANNON, 0, true, true, self.owner); + DEATH_VH_WAKI_GUN, PROJECTILE_WAKICANNON, 0, true, true, player); bolt.velocity = normalize(dir) * autocvar_g_vehicle_racer_cannon_speed; weapon_thinkf(WFRAME_FIRE1, 0, w_ready); }