Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function OnEntitySpawn( ent )
- if ent:GetClass() == "generator_gas" then
- if game.GetMap() == "sb_vacuum_rc1" then
- for k, v in pairs(ents.GetAll()) do
- if IsValid(v) and v:GetClass() == "base_sb_planet2" and v:GetSize() == 4096 then
- if v:GetPos():Distance(ent:GetPos()) <= v:GetSize() then
- ent:Remove() -- Remove the gas compressor.
- end
- end
- end
- end
- end
- end
- CAF.AddHook("OnEntitySpawn", OnEntitySpawn)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement