/* * Copyright 2010 Andrew Theis. All rights reserved. * * This file contains all settings and functions that are shared between the client and server. */ // Include the required lua files. include("sh_config.lua") include("sh_player.lua") // Include the configuration for this map. if file.Exists("../gamemodes/prop_hunt/gamemode/maps/"..game.GetMap()..".lua") || file.Exists("../lua_temp/prop_hunt/gamemode/maps/"..game.GetMap()..".lua") then include("maps/"..game.GetMap()..".lua") end // Fretta! DeriveGamemode("fretta") IncludePlayerClasses() // Information about the gamemode. GM.Name = "Prop Hunt" GM.Author = "AMT" GM.Email = "theis.andrew@gmail.com" GM.Website = "http://www.andrewtheis.net/tag/prop-hunt" // Help info. GM.Help = [[Prop Hunt is a twist on the classic backyard game Hide and Seek. As a Prop you have ]]..HUNTER_BLINDLOCK_TIME..[[ seconds to replicate an existing prop on the map and then find a good hiding spot. Press [E] to replicate the prop you are looking at. Your health is scaled based on the size of the prop you replicate. As a Hunter you will be blindfolded for the first ]]..HUNTER_BLINDLOCK_TIME..[[ seconds of the round while the Props hide. When your blindfold is taken off, you will need to find props controlled by players and kill them. Damaging non-player props will lower your health significantly. However, killing a Prop will increase your health by ]]..HUNTER_KILL_BONUS..[[ points. Both teams can press [F3] to play a taunt sound.]] // Fretta configuration. GM.AutomaticTeamBalance = true GM.AddFragsToTeamScore = true GM.CanOnlySpectateOwnTeam = true GM.Data = {} GM.EnableFreezeCam = true GM.GameLength = GAME_TIME GM.NoAutomaticSpawning = true GM.NoNonPlayerPlayerDamage = true GM.NoPlayerPlayerDamage = true GM.RoundBased = true GM.RoundLimit = ROUNDS_PER_MAP GM.RoundLength = ROUND_TIME GM.RoundPreStartTime = 0 GM.SelectModel = false GM.SuicideString = "couldn't take the pressure and committed suicide." GM.TeamBased = true // Called on gamemdoe initialization to create teams. function GM:CreateTeams() if !GAMEMODE.TeamBased then return end TEAM_HUNTERS = 1 team.SetUp(TEAM_HUNTERS, "Hunters", Color(150, 205, 255, 255)) team.SetSpawnPoint(TEAM_HUNTERS, {"info_player_counterterrorist", "info_player_combine", "info_player_deathmatch", "info_player_axis"}) team.SetClass(TEAM_HUNTERS, {"Hunter"}) TEAM_PROPS = 2 team.SetUp(TEAM_PROPS, "Props", Color(255, 60, 60, 255)) team.SetSpawnPoint(TEAM_PROPS, {"info_player_terrorist", "info_player_rebel", "info_player_deathmatch", "info_player_allies"}) team.SetClass(TEAM_PROPS, {"Prop"}) end