Advertisement
Guest User

AF

a guest
Oct 18th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.20 KB | None | 0 0
  1. spawn_positions = {sp1 = ,
  2. sp2 = ,
  3. sp3 = ,
  4. sp4 = ,
  5. sp5 = ,
  6. sp6 = ,
  7. sp7 = ,
  8. sp8 = ,
  9. sp9 = ,
  10. sp10 = ,
  11. sp11 = ,
  12. sp12 = ,
  13. sp13 = ,
  14. sp14 = ,
  15. sp15 = ,
  16. sp16 = ,
  17. sp17 = ,
  18. sp18 = ,
  19. sp19 = ,
  20. sp20 = ,
  21. sp21 = ,
  22. sp22 = ,
  23. sp23 = ,}
  24. for k, v in pairs(spawn_positions) do
  25. local spawn_art = math.random(1, 100)
  26. if spawn_art <= 5 then
  27. local s_class = math.random(1, 5)
  28. if s_class == 1 then
  29. local ent = ents.Create("psi_field")
  30. ent:SetPos(v)
  31. ent:SetAngles(Angle(0,0,0))
  32. ent:Spawn()
  33. ent:Activate()
  34. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  35. elseif s_class == 2 then
  36. local ent = ents.Create("control")
  37. ent:SetPos(v)
  38. ent:SetAngles(Angle(0,0,0))
  39. ent:Spawn()
  40. ent:Activate()
  41. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  42. elseif s_class == 3 then
  43. local ent = ents.Create("dummy_battery")
  44. ent:SetPos(v)
  45. ent:SetAngles(Angle(0,0,0))
  46. ent:Spawn()
  47. ent:Activate()
  48. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  49. elseif s_class == 4 then
  50. local ent = ents.Create("ballon")
  51. ent:SetPos(v)
  52. ent:SetAngles(Angle(0,0,0))
  53. ent:Spawn()
  54. ent:Activate()
  55. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  56. elseif s_class == 5 then
  57. local ent = ents.Create("compass")
  58. ent:SetPos(v)
  59. ent:SetAngles(Angle(0,0,0))
  60. ent:Spawn()
  61. ent:Activate()
  62. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  63. end
  64. elseif spawn_art > 5 and spawn_art <= 25 then
  65. local a_class = math.random(1, 6)
  66. if a_class == 1 then
  67. local ent = ents.Create("crystal")
  68. ent:SetPos(v)
  69. ent:SetAngles(Angle(0,0,0))
  70. ent:Spawn()
  71. ent:Activate()
  72. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  73. elseif a_class == 2 then
  74. local ent = ents.Create("eye")
  75. ent:SetPos(v)
  76. ent:SetAngles(Angle(0,0,0))
  77. ent:Spawn()
  78. ent:Activate()
  79. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  80. elseif a_class == 3 then
  81. local ent = ents.Create("fireball")
  82. ent:SetPos(v)
  83. ent:SetAngles(Angle(0,0,0))
  84. ent:Spawn()
  85. ent:Activate()
  86. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  87. elseif a_class == 4 then
  88. local ent = ents.Create("glass")
  89. ent:SetPos(v)
  90. ent:SetAngles(Angle(0,0,0))
  91. ent:Spawn()
  92. ent:Activate()
  93. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  94. elseif a_class == 5 then
  95. local ent = ents.Create("fire")
  96. ent:SetPos(v)
  97. ent:SetAngles(Angle(0,0,0))
  98. ent:Spawn()
  99. ent:Activate()
  100. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  101. elseif a_class == 6 then
  102. local ent = ents.Create("electra_flash")
  103. ent:SetPos(v)
  104. ent:SetAngles(Angle(0,0,0))
  105. ent:Spawn()
  106. ent:Activate()
  107. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  108. end
  109. elseif spawn_art > 25 and spawn_art <= 55 then
  110. local b_class = math.random(1, 7)
  111. if b_class == 1 then
  112. local ent = ents.Create("goldfish")
  113. ent:SetPos(v)
  114. ent:SetAngles(Angle(0,0,0))
  115. ent:Spawn()
  116. ent:Activate()
  117. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  118. elseif b_class == 2 then
  119. local ent = ents.Create("medusa")
  120. ent:SetPos(v)
  121. ent:SetAngles(Angle(0,0,0))
  122. ent:Spawn()
  123. ent:Activate()
  124. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  125. elseif b_class == 3 then
  126. local ent = ents.Create("gravi")
  127. ent:SetPos(v)
  128. ent:Spawn()
  129. ent:Activate()
  130. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  131. elseif b_class == 4 then
  132. local ent = ents.Create("fuzz kolobok")
  133. ent:SetPos(v)
  134. ent:SetAngles(Angle(0,0,0))
  135. ent:Spawn()
  136. ent:Activate()
  137. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  138. elseif b_class == 5 then
  139. local ent = ents.Create("dummy_glassbeads")
  140. ent:SetPos(v)
  141. ent:SetAngles(Angle(0,0,0))
  142. ent:Spawn()
  143. ent:Activate()
  144. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  145. elseif b_class == 6 then
  146. local ent = ents.Create("mincer_meat")
  147. ent:SetPos(v)
  148. ent:SetAngles(Angle(0,0,0))
  149. ent:Spawn()
  150. ent:Activate()
  151. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  152. elseif b_class == 7 then
  153. local ent = ents.Create("electra_moonlight")
  154. ent:SetPos(v)
  155. ent:SetAngles(Angle(0,0,0))
  156. ent:Spawn()
  157. ent:Activate()
  158. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  159. end
  160. elseif spawn_art > 55 and spawn_art <= 100 then
  161. local c_class = math.random(1, 9)
  162. if c_class == 1 then
  163. local ent = ents.Create("nightstar")
  164. ent:SetPos(v)
  165. ent:SetAngles(Angle(0,0,0))
  166. ent:Spawn()
  167. ent:Activate()
  168. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  169. elseif c_class == 2 then
  170. local ent = ents.Create("dummy_dummy")
  171. ent:SetPos(v)
  172. ent:SetAngles(Angle(0,0,0))
  173. ent:Spawn()
  174. ent:Activate()
  175. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  176. elseif c_class == 3 then
  177. local ent = ents.Create("ice")
  178. ent:SetPos(v)
  179. ent:SetAngles(Angle(0,0,0))
  180. ent:Spawn()
  181. ent:Activate()
  182. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  183. elseif c_class == 4 then
  184. local ent = ents.Create("soul")
  185. ent:SetPos(v)
  186. ent:SetAngles(Angle(0,0,0))
  187. ent:Spawn()
  188. ent:Activate()
  189. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  190. elseif c_class == 5 then
  191. local ent = ents.Create("electra_sparkler")
  192. ent:SetPos(v)
  193. ent:SetAngles(Angle(0,0,0))
  194. ent:Spawn()
  195. ent:Activate()
  196. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  197. elseif c_class == 6 then
  198. local ent = ents.Create("blood")
  199. ent:SetPos(v)
  200. ent:SetAngles(Angle(0,0,0))
  201. ent:Spawn()
  202. ent:Activate()
  203. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  204. elseif c_class == 7 then
  205. local ent = ents.Create("crystal_flower")
  206. ent:SetPos(v)
  207. ent:SetAngles(Angle(0,0,0))
  208. ent:Spawn()
  209. ent:Activate()
  210. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  211. elseif c_class == 8 then
  212. local ent = ents.Create("crystal_plant")
  213. ent:SetPos(v)
  214. ent:SetAngles(Angle(0,0,0))
  215. ent:Spawn()
  216. ent:Activate()
  217. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  218. elseif c_class == 9 then
  219. local ent = ents.Create("vyvert")
  220. ent:SetPos(v)
  221. ent:SetAngles(Angle(0,0,0))
  222. ent:Spawn()
  223. ent:Activate()
  224. timer.Simple(900, function () if !IsValid(ent) then return end ent:Remove() end)
  225. end
  226. end
  227. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement