From f3cb6bcbccd14720ba46888c078bc69107390c50 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Sat, 16 Sep 2023 03:15:12 +1000 Subject: [PATCH] Fix sticky electro orbs and mines being unhittable on DP master The moving projectiles are configured correctly but when they touch a surface they're deleted and replaced with a sticky projectile. Those weren't configured to be hittable directly, and weren't linked to the area grid so findradius couldn't find them for splash damage. --- qcsrc/common/weapons/weapon/electro.qc | 1 + qcsrc/common/weapons/weapon/minelayer.qc | 1 + 2 files changed, 2 insertions(+) diff --git a/qcsrc/common/weapons/weapon/electro.qc b/qcsrc/common/weapons/weapon/electro.qc index 2c03871ce..280267a9a 100644 --- a/qcsrc/common/weapons/weapon/electro.qc +++ b/qcsrc/common/weapons/weapon/electro.qc @@ -305,6 +305,7 @@ void W_Electro_Orb_Stick(entity this, entity to) newproj.owner = this.owner; newproj.realowner = this.realowner; + PROJECTILE_MAKETRIGGER(newproj); setorigin(newproj, this.origin); setmodel(newproj, MDL_PROJECTILE_ELECTRO); setsize(newproj, this.mins, this.maxs); diff --git a/qcsrc/common/weapons/weapon/minelayer.qc b/qcsrc/common/weapons/weapon/minelayer.qc index c73db2bc2..63c7b9e44 100644 --- a/qcsrc/common/weapons/weapon/minelayer.qc +++ b/qcsrc/common/weapons/weapon/minelayer.qc @@ -18,6 +18,7 @@ void W_MineLayer_Stick(entity this, entity to) newmine.owner = this.owner; newmine.realowner = this.realowner; + PROJECTILE_MAKETRIGGER(newmine); setorigin(newmine, this.origin); setmodel(newmine, MDL_MINELAYER_MINE); setsize(newmine, '-4 -4 -4', '4 4 4'); -- 2.39.2