Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GM:InitPostEntity()
- self.PrisonerSpawnPoints = {}
- self.PrisonerSpawnPoints = ents.FindByClass("info_player_prisoner")
- self.PrisonerSpawnPoints = table.Add(self.PrisonerSpawnPoints, ents.FindByClass("info_player_terrorist"))
- self.PrisonerSpawnPoints = table.Add(self.PrisonerSpawnPoints, ents.FindByClass("info_player_rebel"))
- --Change these to the actual spawnpoints for the maps. It should be terrorist though, since most all jailbreaks were made for CS:S
- self.GuardSpawnPoints = {}
- self.GuardSpawnPoints = ents.FindByClass("info_player_guard")
- self.GuardSpawnPoints = table.Add( self.GuardSpawnPoints, ents.FindByClass("info_player_combine"))
- local mapname = game.GetMap()
- --For CS:S Maps, If your enough of a derp to use them.
- --COUGH DARK COUGH
- if string.find(mapname, "cs_") then
- self.PrisonerSpawnPoints = table.Add(self.PrisonerSpawnPoints, ents.FindByClass("info_player_counterterrorist"))
- self.GuardSpawnPoints = table.Add( self.GuardSpawnPoints, ents.FindByClass("info_player_terrorist"))
- else -- all other maps (AKA - Your shitty DM maps.)
- self.PrisonerSpawnPoints = table.Add(self.PrisonerSpawnPoints, ents.FindByClass("info_player_terrorist"))
- self.GuardSpawnPoints = table.Add(self.GuardSpawnPoints, ents.FindByClass("info_player_counterterrorist"))
- end
- if #self.GuardSpawnPoints <= 0 then
- self.GuardSpawnPoints = ents.FindByClass("info_player_start")
- end
- if #self.PrisonerSpawnPoints <= 0 then
- self.PrisonerSpawnPoints = ents.FindByClass("info_player_start")
- end
- end
Add Comment
Please, Sign In to add comment