Garry's Mod

Garry's Mod

27 ratings
Lua Combine Mine
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Entity
Addon Tags: Roleplay
File Size
Posted
Updated
147.969 KB
15 Apr, 2022 @ 5:22pm
20 Nov, 2023 @ 8:50am
6 Change Notes ( view )

Subscribe to download
Lua Combine Mine

Description
GitHub: https://github.com/DoopieWop/lua_combine_mine

Recreation of the Half-Life 2 Combine Mine in Lua.

The reason why this was made is because the original mine doesn't let you change the disposition it has towards other entities. Mainly something for Half-Life 2 Roleplay.

Adds an entity called "Lua Combine Mine" with class "lua_combine_mine"

Replacement: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2794975771

For developers:

Hook: CombineMineIsFriend(Entity mine, Entity otherEntity)

For hammer, all the available output/input options and keyvalues work.
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)
THE ROARING KNIGHT 6 Sep, 2022 @ 2:21pm 
nothing changed