Garry's Mod

Garry's Mod

27 个评价
Lua Combine Mine
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 实体
插件标签: 角色扮演
文件大小
发表于
更新日期
147.969 KB
2022 年 4 月 15 日 下午 5:22
2023 年 11 月 20 日 上午 8:50
6 项改动说明 ( 查看 )

订阅以下载
Lua Combine Mine

描述
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://psteamcommunity.yuanyoumao.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 条留言
meloncop 3 月 28 日 上午 10:26 
is there a rebel mine?
DoopieWop  [作者] 2024 年 8 月 2 日 上午 11:27 
no its just a lie (yes it works)
watermole 2024 年 8 月 2 日 上午 11:09 
does this actually work guys
The Numbers 2023 年 10 月 22 日 上午 11:14 
Use for impulse framework:

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

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

return false
end)
dima734454 2023 年 2 月 24 日 上午 11:26 
Yes, that's probably even better.
DoopieWop  [作者] 2023 年 2 月 24 日 上午 11:16 
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 2023 年 2 月 24 日 上午 11:08 
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 2022 年 9 月 6 日 下午 2:21 
nothing changed