No compressors on spawn planet
clark Feb 1st, 2013 68 Never
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.
- CAF.AddHook("OnEntitySpawn", OnEntitySpawn)
RAW Paste Data