include("ships.lua")
GM.Name 	= "Dark Skies"
GM.Author 	= "Lap"
GM.Email 	= "l_a_p@hotmail.com"
GM.Website 	= ""
GM.Help		= "Space Combat! Use F3 to spawn"
 
GM.Data = {}
 
DeriveGamemode( "fretta" )

GM.TeamBased = true					// Team based game or a Free For All game?
GM.AllowAutoTeam = true
GM.AllowSpectating = true
GM.SecondsBetweenTeamSwitches = 10
GM.GameLength = 15
GM.RoundLimit = 10					// Maximum amount of rounds to be played in round based games
GM.VotingDelay = 10				// Delay between end of game, and vote. if you want to display any extra screens before the vote pops up
 
GM.NoPlayerSuicide = false
GM.NoPlayerDamage = false
GM.NoPlayerSelfDamage = false		// Allow players to hurt themselves?
GM.NoPlayerTeamDamage = true		// Allow team-members to hurt each other?
GM.NoPlayerPlayerDamage = false 	// Allow players to hurt each other?
GM.NoNonPlayerPlayerDamage = false 	// Allow damage from non players (physics, fire etc)
GM.NoPlayerFootsteps = true		// When true, all players have silent footsteps
GM.PlayerCanNoClip = true			// When true, players can use noclip without sv_cheats
GM.TakeFragOnSuicide = false			// -1 frag on suicide
 
GM.MaximumDeathLength = 20			// Player will respawn if death length > this (can be 0 to disable)
GM.MinimumDeathLength = 10			// Player has to be dead for at least this long
GM.AutomaticTeamBalance = false     // Teams will be periodically balanced 
GM.ForceJoinBalancedTeams = true	// Players won't be allowed to join a team if it has more players than another team
GM.RealisticFallDamage = false
GM.AddFragsToTeamScore = true		// Adds player's individual kills to team score (must be team based)
 
GM.NoAutomaticSpawning = true		// Players don't spawn automatically when they die, some other system spawns them
GM.RoundBased = true				// Round based, like CS
GM.RoundLength = 600 * 2					// Round length, in seconds
GM.RoundPreStartTime = 5			// Preperation time before a round starts
GM.RoundPostLength = 5				// Seconds to show the 'x team won!' screen at the end of a round
GM.RoundEndsWhenOneTeamAlive = false	// CS Style rules
 
GM.EnableFreezeCam = false			// TF2 Style Freezecam
GM.DeathLingerTime = 3				// The time between you dying and it going into spectator mode, 0 disables
 
GM.SelectModel = false               // Can players use the playermodel picker in the F1 menu?
GM.SelectColor = false				// Can players modify the colour of their name? (ie.. no teams)
 
GM.PlayerRingSize = 48              // How big are the colored rings under the player's feet (if they are enabled) ?
GM.HudSkin = "SimpleSkin"
 
GM.ValidSpectatorModes = { OBS_MODE_CHASE, OBS_MODE_IN_EYE, OBS_MODE_ROAMING }
GM.ValidSpectatorEntities = { "worldspawn","ds_s_phalanx", "ds_s_battlecruiser", "ds_s_firefin", "ds_s_centius", "ds_s_claw", "ds_s_deimos","ds_s_faclon", "ds_s_teardrop"  }	// Entities we can spectate
GM.CanOnlySpectateOwnTeam = false // you can only spectate players on your own team
 
TEAM_ORANGE = 1
TEAM_GREEN = 2


function GM:CreateTeams()

	if ( !GAMEMODE.TeamBased ) then return end
	
	team.SetUp( TEAM_ORANGE, "Team Orange", Color( 255, 200, 50 ), true )
	team.SetSpawnPoint( TEAM_ORANGE, { "info_player_start", "info_player_terrorist", "info_player_counterterrorist" } )
	
	team.SetUp( TEAM_GREEN, "Team Green", Color( 70, 230, 70 ) )
	team.SetSpawnPoint( TEAM_GREEN, { "info_player_start", "info_player_terrorist", "info_player_counterterrorist" }, true )
end
