Permalink
Browse files

weapon_fists - Hit everything

Fixes not being able to hit props that are nocollided with the player (
for example cs_assault props ) - consistency with the crowbar.
  • Loading branch information...
1 parent 8f6b50b commit 5d4700d8fdd8310522ffb97aefb7130b294009c5 @robotboy655 robotboy655 committed May 6, 2015
Showing with 4 additions and 2 deletions.
  1. +4 −2 garrysmod/lua/weapons/weapon_fists.lua
@@ -91,7 +91,8 @@ function SWEP:DealDamage()
local tr = util.TraceLine( {
start = self.Owner:GetShootPos(),
endpos = self.Owner:GetShootPos() + self.Owner:GetAimVector() * self.HitDistance,
- filter = self.Owner
+ filter = self.Owner,
+ mask = MASK_SHOT_HULL
} )
if ( !IsValid( tr.Entity ) ) then
@@ -100,7 +101,8 @@ function SWEP:DealDamage()
endpos = self.Owner:GetShootPos() + self.Owner:GetAimVector() * self.HitDistance,
filter = self.Owner,
mins = Vector( -10, -10, -8 ),
- maxs = Vector( 10, 10, 8 )
+ maxs = Vector( 10, 10, 8 ),
+ mask = MASK_SHOT_HULL
} )
end

0 comments on commit 5d4700d

Please sign in to comment.