Make HL2 vehicle turrets do damage?

I’m wanting this addon to cause damage to entities but it doesn’t. I’ve checked the hook and it makes sense but the turrets aren’t registering as a vehicle. Here’s the hook for those who don’t want to download/extract it.



local function FixDamage(target,  dmginfo)
	if ( dmginfo:GetInflictor():IsVehicle()) then
		if dmginfo:GetAmmoType() == 18 then 
			dmginfo:SetDamage(15)
		elseif(dmginfo:GetAmmoType() == 20) then
			dmginfo:SetDamage(3)
		end
	end
end
hook.Add("EntityTakeDamage","VehicleNPCDamageFix", FixDamage)


The damage was fixed in GMod as far as I know, so no addons required. Make sure nothing on your server BLOCKS damage.