]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Apply a server-side trail to Electro orbs when they become sticky, fixes #2582 919/head
authorMario <mario.mario@y7mail.com>
Fri, 30 Jul 2021 00:50:34 +0000 (10:50 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 30 Jul 2021 00:50:34 +0000 (10:50 +1000)
qcsrc/common/weapons/weapon/electro.qc

index 9409819e9c15b8569fa5623ede91e841984224dc..3c6f32e618201989264f4e404129693b35060377 100644 (file)
@@ -295,6 +295,7 @@ void W_Electro_Orb_Stick(entity this, entity to)
        setmodel(newproj, MDL_PROJECTILE_ELECTRO);
        setsize(newproj, this.mins, this.maxs);
        newproj.angles = vectoangles(-trace_plane_normal); // face against the surface
+       newproj.traileffectnum = _particleeffectnum(EFFECT_TR_NEXUIZPLASMA.eent_eff_name);
 
        newproj.movedir = -trace_plane_normal;