Skip to content

Commit 9e725cc

Browse files
authored
Merge pull request #373 from GMLambda/medkit-nonsolids
Fix players being able to heal or revive through non-solid brushes
2 parents 0b3a980 + 9a61a8f commit 9e725cc

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Fixed: point_viewcontrol entities on d1_trainstation_01 having incorrect flags set.
88
- Fixed: Force field on d2_coast_07 not disabled after coming back from d2_coast_08.
99
- Fixed: When voting to skip the map that could cause the next map to have important NPC's missing.
10+
- Fixed: Players being able to heal or revive through non-solid brushes.
1011

1112
0.9.28
1213
- Improved: Better prediction handling for the Gravity Gun, should be more responsive with higher ping now.

entities/weapons/weapon_lambda_medkit.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function SWEP:GetActorForHealing()
162162
endpos = endPos,
163163
mins = TRACE_HULL_MINS,
164164
maxs = TRACE_HULL_MAXS,
165-
mask = MASK_SHOT_HULL,
165+
mask = bit.bor(MASK_SHOT_HULL, MASK_PLAYERSOLID),
166166
filter = owner
167167
})
168168

@@ -188,7 +188,7 @@ function SWEP:GetActorForReviving()
188188
endpos = endPos,
189189
mins = TRACE_HULL_MINS * 5,
190190
maxs = TRACE_HULL_MAXS * 5,
191-
mask = MASK_SHOT_HULL,
191+
mask = bit.bor(MASK_SHOT_HULL, MASK_PLAYERSOLID),
192192
filter = owner
193193
})
194194

0 commit comments

Comments
 (0)