Garry's Mod

Garry's Mod

Lua Combine Mine
8 Comments
meloncop 28 Mar @ 10:26am 
is there a rebel mine?
DoopieWop  [author] 2 Aug, 2024 @ 11:27am 
no its just a lie (yes it works)
watermole 2 Aug, 2024 @ 11:09am 
does this actually work guys
The Numbers 22 Oct, 2023 @ 11:14am 
Use for impulse framework:

hook.Add("CombineMineIsFriend", "ImmunityForMe", function(mine, target)

if target:IsPlayer() then
return target:IsCP()
end

return false
end)
dima734454 24 Feb, 2023 @ 11:26am 
Yes, that's probably even better.
DoopieWop  [author] 24 Feb, 2023 @ 11:16am 
you can also do this, just keep in mind, administrator for example would still be targeted.
function Schema/PLUGIN:CombineMineIsFriend(mine, ent)
return ent.IsCombine and ent:IsCombine()
end
dima734454 24 Feb, 2023 @ 11:08am 
Use for Helix

hook.Add("CombineMineIsFriend", "ImmunityForMe", function(mine, otherEntity)

if otherEntity:IsPlayer() then
return otherEntity:Team() == FACTION_MPF or FACTION_OTA
end

return false
end)
Sparrow 6 Sep, 2022 @ 2:21pm 
nothing changed