From ca9b32a13aaea249d3b5a90a10aaae170bf6aad5 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 18 Oct 2016 17:22:23 +1000 Subject: [PATCH] Other half of the fix --- qcsrc/common/wepent.qc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/wepent.qc b/qcsrc/common/wepent.qc index fa6c37d7a..1b6e40778 100644 --- a/qcsrc/common/wepent.qc +++ b/qcsrc/common/wepent.qc @@ -119,13 +119,21 @@ MACRO_END #undef X } + bool wepent_customize(entity this, entity client) + { + //entity e = WaypointSprite_getviewentity(client); + .entity weaponentity = this.owner.weaponentity_fld; + return client.(weaponentity) == this.owner; + } + void wepent_link(entity wep) { entity e = new(wepent_sender); e.owner = wep; setthink(e, wepent_think); e.nextthink = time; - e.drawonlytoclient = wep.owner; + //e.drawonlytoclient = wep.owner; + setcefc(e, wepent_customize); Net_LinkEntity(e, false, 0, wepent_send); } -- 2.39.2