From: Mario Date: Sun, 24 Jul 2016 20:43:26 +0000 (+1000) Subject: Fix damagetext and make shockwave initial shot origin use antilag (for accuracy) X-Git-Tag: xonotic-v0.8.2~700^2~36 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a9afb8644ca56fd949556d59348b9bf80a290acf;p=xonotic%2Fxonotic-data.pk3dir.git Fix damagetext and make shockwave initial shot origin use antilag (for accuracy) --- diff --git a/qcsrc/common/mutators/mutator/damagetext/damagetext.qc b/qcsrc/common/mutators/mutator/damagetext/damagetext.qc index 3cca0d9d1..4694bcbf7 100644 --- a/qcsrc/common/mutators/mutator/damagetext/damagetext.qc +++ b/qcsrc/common/mutators/mutator/damagetext/damagetext.qc @@ -150,7 +150,7 @@ NET_HANDLE(damagetext, bool isNew) } } } - NEW(DamageText, group, location, health, armor, deathtype, friendlyfire); + make_impure(NEW(DamageText, group, location, health, armor, deathtype, friendlyfire)); } } #endif diff --git a/qcsrc/common/weapons/weapon/shockwave.qc b/qcsrc/common/weapons/weapon/shockwave.qc index 80adb45da..499453ecd 100644 --- a/qcsrc/common/weapons/weapon/shockwave.qc +++ b/qcsrc/common/weapons/weapon/shockwave.qc @@ -366,7 +366,7 @@ void W_Shockwave_Attack(entity actor) float i, queue = 0; // set up the shot direction - W_SetupShot(actor, false, 3, SND_LASERGUN_FIRE, CH_WEAPON_B, WEP_CVAR(shockwave, blast_damage)); + W_SetupShot(actor, true, 3, SND_LASERGUN_FIRE, CH_WEAPON_B, WEP_CVAR(shockwave, blast_damage)); vector attack_endpos = (w_shotorg + (w_shotdir * WEP_CVAR(shockwave, blast_distance))); WarpZone_TraceLine(w_shotorg, attack_endpos, MOVE_NOMONSTERS, actor); vector attack_hitpos = trace_endpos;