mirror of
https://github.com/etlegacy/etlegacy-lua-scripts.git
synced 2024-12-01 08:31:49 +00:00
fix trap_trace error
* added missing argument
This commit is contained in:
parent
c4f8211060
commit
1989f9e030
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ function checkMedicSyringeHeal(healer)
|
||||||
-- stuck in solid, offset the origin forward
|
-- stuck in solid, offset the origin forward
|
||||||
if result.startsolid then
|
if result.startsolid then
|
||||||
endpt = multAddVector(muzzlept, 8, forward)
|
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
|
end
|
||||||
-- no hit, give back syringe
|
-- no hit, give back syringe
|
||||||
if result.fraction == 1.0 or result.entityNum >= et.MAX_CLIENTS then
|
if result.fraction == 1.0 or result.entityNum >= et.MAX_CLIENTS then
|
||||||
|
|
Loading…
Reference in a new issue