Skip to content

Commit

Permalink
Only block missile crush damage
Browse files Browse the repository at this point in the history
  • Loading branch information
StyledStrike committed Dec 14, 2024
1 parent 95bd054 commit b349c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/glide/server/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ hook.Add( "EntityTakeDamage", "Glide.OverrideDamage", function( target, dmginfo
-- Don't let missiles deal crush damage
local inflictor = dmginfo:GetInflictor()

if IsValid( inflictor ) and inflictor:GetClass() == "glide_missile" then
if IsValid( inflictor ) and inflictor:GetClass() == "glide_missile" and dmginfo:IsDamageType( 1 ) then
return true
end

Expand Down

0 comments on commit b349c30

Please sign in to comment.