Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spawn_positions = {sp1 = ,
- sp2 = ,
- sp3 = ,
- sp4 = ,
- sp5 = ,
- sp6 = ,
- sp7 = ,
- sp8 = ,
- sp9 = ,
- sp10 = ,
- sp11 = ,
- sp12 = ,
- sp13 = ,
- sp14 = ,
- sp15 = ,
- sp16 = ,
- sp17 = ,
- sp18 = ,
- sp19 = ,
- sp20 = ,
- sp21 = ,
- sp22 = ,
- sp23 = ,}
- for k, v in pairs(spawn_positions) do
- local spawn_art = math.random(1, 100)
- if spawn_art <= 5 then
- local s_class = math.random(1, 5)
- if s_class == 1 then
- local ent = ents.Create("psi_field")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif s_class == 2 then
- local ent = ents.Create("control")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif s_class == 3 then
- local ent = ents.Create("dummy_battery")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif s_class == 4 then
- local ent = ents.Create("ballon")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif s_class == 5 then
- local ent = ents.Create("compass")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- end
- elseif spawn_art > 5 and spawn_art <= 25 then
- local a_class = math.random(1, 6)
- if a_class == 1 then
- local ent = ents.Create("crystal")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif a_class == 2 then
- local ent = ents.Create("eye")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif a_class == 3 then
- local ent = ents.Create("fireball")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif a_class == 4 then
- local ent = ents.Create("glass")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif a_class == 5 then
- local ent = ents.Create("fire")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif a_class == 6 then
- local ent = ents.Create("electra_flash")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- end
- elseif spawn_art > 25 and spawn_art <= 55 then
- local b_class = math.random(1, 7)
- if b_class == 1 then
- local ent = ents.Create("goldfish")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif b_class == 2 then
- local ent = ents.Create("medusa")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif b_class == 3 then
- local ent = ents.Create("gravi")
- ent:SetPos(v)
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif b_class == 4 then
- local ent = ents.Create("fuzz kolobok")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif b_class == 5 then
- local ent = ents.Create("dummy_glassbeads")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif b_class == 6 then
- local ent = ents.Create("mincer_meat")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif b_class == 7 then
- local ent = ents.Create("electra_moonlight")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- end
- elseif spawn_art > 55 and spawn_art <= 100 then
- local c_class = math.random(1, 9)
- if c_class == 1 then
- local ent = ents.Create("nightstar")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif c_class == 2 then
- local ent = ents.Create("dummy_dummy")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif c_class == 3 then
- local ent = ents.Create("ice")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif c_class == 4 then
- local ent = ents.Create("soul")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif c_class == 5 then
- local ent = ents.Create("electra_sparkler")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif c_class == 6 then
- local ent = ents.Create("blood")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif c_class == 7 then
- local ent = ents.Create("crystal_flower")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif c_class == 8 then
- local ent = ents.Create("crystal_plant")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- elseif c_class == 9 then
- local ent = ents.Create("vyvert")
- ent:SetPos(v)
- ent:SetAngles(Angle(0,0,0))
- ent:Spawn()
- ent:Activate()
- timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement