Guest User

Untitled

a guest
Jan 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. function GM:InitPostEntity()
  2. self.PrisonerSpawnPoints = {}
  3. self.PrisonerSpawnPoints = ents.FindByClass("info_player_prisoner")
  4. self.PrisonerSpawnPoints = table.Add(self.PrisonerSpawnPoints, ents.FindByClass("info_player_terrorist"))
  5. self.PrisonerSpawnPoints = table.Add(self.PrisonerSpawnPoints, ents.FindByClass("info_player_rebel"))
  6. --Change these to the actual spawnpoints for the maps. It should be terrorist though, since most all jailbreaks were made for CS:S
  7. self.GuardSpawnPoints = {}
  8. self.GuardSpawnPoints = ents.FindByClass("info_player_guard")
  9. self.GuardSpawnPoints = table.Add( self.GuardSpawnPoints, ents.FindByClass("info_player_combine"))
  10.  
  11. local mapname = game.GetMap()
  12. --For CS:S Maps, If your enough of a derp to use them.
  13. --COUGH DARK COUGH
  14. if string.find(mapname, "cs_") then
  15. self.PrisonerSpawnPoints = table.Add(self.PrisonerSpawnPoints, ents.FindByClass("info_player_counterterrorist"))
  16. self.GuardSpawnPoints = table.Add( self.GuardSpawnPoints, ents.FindByClass("info_player_terrorist"))
  17. else -- all other maps (AKA - Your shitty DM maps.)
  18. self.PrisonerSpawnPoints = table.Add(self.PrisonerSpawnPoints, ents.FindByClass("info_player_terrorist"))
  19. self.GuardSpawnPoints = table.Add(self.GuardSpawnPoints, ents.FindByClass("info_player_counterterrorist"))
  20. end
  21. if #self.GuardSpawnPoints <= 0 then
  22. self.GuardSpawnPoints = ents.FindByClass("info_player_start")
  23. end
  24. if #self.PrisonerSpawnPoints <= 0 then
  25. self.PrisonerSpawnPoints = ents.FindByClass("info_player_start")
  26. end
  27. end
Add Comment
Please, Sign In to add comment