From 1989f9e0309137f5d2af28c8a248a51be34cf030 Mon Sep 17 00:00:00 2001 From: isRyven Date: Wed, 24 Jul 2019 21:41:46 +0300 Subject: [PATCH] fix trap_trace error * added missing argument --- medic-syringe-heal/medic-syringe-heal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/medic-syringe-heal/medic-syringe-heal.lua b/medic-syringe-heal/medic-syringe-heal.lua index 245b884..626269e 100644 --- a/medic-syringe-heal/medic-syringe-heal.lua +++ b/medic-syringe-heal/medic-syringe-heal.lua @@ -113,7 +113,7 @@ function checkMedicSyringeHeal(healer) -- stuck in solid, offset the origin forward if result.startsolid then endpt = multAddVector(muzzlept, 8, forward) - result = et.trap_Trace(muzzlept, nil, nil, healer, et.MASK_SHOT) + result = et.trap_Trace(muzzlept, nil, nil, endpt, healer, et.MASK_SHOT) end -- no hit, give back syringe if result.fraction == 1.0 or result.entityNum >= et.MAX_CLIENTS then