Skip to content

Commit

Permalink
Merge pull request #286 from GMLambda/ep2-bare-bones
Browse files Browse the repository at this point in the history
Add ep2 skeleton
  • Loading branch information
ZehMatt authored May 22, 2024
2 parents b8667ab + 6d04065 commit f90f1cb
Show file tree
Hide file tree
Showing 20 changed files with 569 additions and 0 deletions.
88 changes: 88 additions & 0 deletions gamemode/gametypes/hl2ep2.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
if SERVER then
AddCSLuaFile()
end

local GAMETYPE = {}
GAMETYPE.Name = "Half-Life 2: Episode 2"
GAMETYPE.InternalName = "ep2"
GAMETYPE.BaseGameType = "hl2"
GAMETYPE.MapScript = {}
GAMETYPE.MapList = {
"ep2_outland_01",
"ep2_outland_01a",
"ep2_outland_02",
"ep2_outland_03",
"ep2_outland_04",
"ep2_outland_05",
"ep2_outland_06",
"ep2_outland_06a",
"ep2_outland_07",
"ep2_outland_08",
"ep2_outland_09",
"ep2_outland_10",
"ep2_outland_10a",
"ep2_outland_11",
"ep2_outland_11a",
"ep2_outland_11b",
"ep2_outland_12",
"ep2_outland_12a",
}

GAMETYPE.CampaignNames = {
["To the White Forest"] = {
s = 1,
e = 2
},
["This Vortal Coil"] = {
s = 3,
e = 5
},
["Freeman Pontifex"] = {
s = 6,
e = 7
},
["Riding Shotgun"] = {
s = 8,
e = 10
},
["Under the Radar"] = {
s = 11,
e = 13
},
["Our Mutual Fiend"] = {
s = 14,
e = 17
},
["T-Minus One"] = {
s = 18,
e = 18
}
}
GAMETYPE.Localisation = include("hl2ep2/cl_localisation.lua")

function GAMETYPE:InitSettings()
self.Base:InitSettings()
end

function GAMETYPE:LoadCurrentMapScript()
self.Base.LoadMapScript(self, "lambda/gamemode/gametypes/hl2ep2", game.GetMap():lower())
end

function GAMETYPE:GetPlayerLoadout()
return self.MapScript.DefaultLoadout
end

hook.Add("LambdaLoadGameTypes", "HL2EP2GameType", function(gametypes)
gametypes:Add("hl2ep2", GAMETYPE)
end)

if CLIENT then
surface.CreateFont("ClientTitleFont", {
font = "HL2EP2",
size = util.ScreenScaleH(34),
weight = 0,
antialias = true,
additive = true,
custom = true
})
end
4 changes: 4 additions & 0 deletions gamemode/gametypes/hl2ep2/cl_localisation.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if SERVER then AddCSLuaFile() end
local LOCALISATION = {}
LOCALISATION["english"] = {}
return LOCALISATION
28 changes: 28 additions & 0 deletions gamemode/gametypes/hl2ep2/mapscripts/ep2_outland_01.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
if SERVER then
AddCSLuaFile()
end

local MAPSCRIPT = {}
MAPSCRIPT.DefaultLoadout = {
Weapons = {},
Ammo = {},
Armor = 0,
HEV = true
}

MAPSCRIPT.InputFilters = {}
MAPSCRIPT.EntityFilterByClass = {}
MAPSCRIPT.EntityFilterByName = {
}

MAPSCRIPT.GlobalStates = {
}

MAPSCRIPT.Checkpoints = {
}

function MAPSCRIPT:PostInit()
print("-- Incomplete mapscript --")
end

return MAPSCRIPT
28 changes: 28 additions & 0 deletions gamemode/gametypes/hl2ep2/mapscripts/ep2_outland_01a.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
if SERVER then
AddCSLuaFile()
end

local MAPSCRIPT = {}
MAPSCRIPT.DefaultLoadout = {
Weapons = {"weapon_lambda_medkit", "weapon_physcannon"},
Ammo = {},
Armor = 0,
HEV = true
}

MAPSCRIPT.InputFilters = {}
MAPSCRIPT.EntityFilterByClass = {}
MAPSCRIPT.EntityFilterByName = {
}

MAPSCRIPT.GlobalStates = {
}

MAPSCRIPT.Checkpoints = {
}

function MAPSCRIPT:PostInit()
print("-- Incomplete mapscript --")
end

return MAPSCRIPT
28 changes: 28 additions & 0 deletions gamemode/gametypes/hl2ep2/mapscripts/ep2_outland_02.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
if SERVER then
AddCSLuaFile()
end

local MAPSCRIPT = {}
MAPSCRIPT.DefaultLoadout = {
Weapons = {"weapon_lambda_medkit", "weapon_physcannon"},
Ammo = {},
Armor = 0,
HEV = true
}

MAPSCRIPT.InputFilters = {}
MAPSCRIPT.EntityFilterByClass = {}
MAPSCRIPT.EntityFilterByName = {
}

MAPSCRIPT.GlobalStates = {
}

MAPSCRIPT.Checkpoints = {
}

function MAPSCRIPT:PostInit()
print("-- Incomplete mapscript --")
end

return MAPSCRIPT
28 changes: 28 additions & 0 deletions gamemode/gametypes/hl2ep2/mapscripts/ep2_outland_03.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
if SERVER then
AddCSLuaFile()
end

local MAPSCRIPT = {}
MAPSCRIPT.DefaultLoadout = {
Weapons = {"weapon_lambda_medkit", "weapon_physcannon"},
Ammo = {},
Armor = 0,
HEV = true
}

MAPSCRIPT.InputFilters = {}
MAPSCRIPT.EntityFilterByClass = {}
MAPSCRIPT.EntityFilterByName = {
}

MAPSCRIPT.GlobalStates = {
}

MAPSCRIPT.Checkpoints = {
}

function MAPSCRIPT:PostInit()
print("-- Incomplete mapscript --")
end

return MAPSCRIPT
28 changes: 28 additions & 0 deletions gamemode/gametypes/hl2ep2/mapscripts/ep2_outland_04.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
if SERVER then
AddCSLuaFile()
end

local MAPSCRIPT = {}
MAPSCRIPT.DefaultLoadout = {
Weapons = {"weapon_lambda_medkit", "weapon_physcannon"},
Ammo = {},
Armor = 0,
HEV = true
}

MAPSCRIPT.InputFilters = {}
MAPSCRIPT.EntityFilterByClass = {}
MAPSCRIPT.EntityFilterByName = {
}

MAPSCRIPT.GlobalStates = {
}

MAPSCRIPT.Checkpoints = {
}

function MAPSCRIPT:PostInit()
print("-- Incomplete mapscript --")
end

return MAPSCRIPT
28 changes: 28 additions & 0 deletions gamemode/gametypes/hl2ep2/mapscripts/ep2_outland_05.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
if SERVER then
AddCSLuaFile()
end

local MAPSCRIPT = {}
MAPSCRIPT.DefaultLoadout = {
Weapons = {"weapon_lambda_medkit", "weapon_physcannon"},
Ammo = {},
Armor = 0,
HEV = true
}

MAPSCRIPT.InputFilters = {}
MAPSCRIPT.EntityFilterByClass = {}
MAPSCRIPT.EntityFilterByName = {
}

MAPSCRIPT.GlobalStates = {
}

MAPSCRIPT.Checkpoints = {
}

function MAPSCRIPT:PostInit()
print("-- Incomplete mapscript --")
end

return MAPSCRIPT
28 changes: 28 additions & 0 deletions gamemode/gametypes/hl2ep2/mapscripts/ep2_outland_06.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
if SERVER then
AddCSLuaFile()
end

local MAPSCRIPT = {}
MAPSCRIPT.DefaultLoadout = {
Weapons = {"weapon_lambda_medkit", "weapon_physcannon"},
Ammo = {},
Armor = 0,
HEV = true
}

MAPSCRIPT.InputFilters = {}
MAPSCRIPT.EntityFilterByClass = {}
MAPSCRIPT.EntityFilterByName = {
}

MAPSCRIPT.GlobalStates = {
}

MAPSCRIPT.Checkpoints = {
}

function MAPSCRIPT:PostInit()
print("-- Incomplete mapscript --")
end

return MAPSCRIPT
28 changes: 28 additions & 0 deletions gamemode/gametypes/hl2ep2/mapscripts/ep2_outland_06a.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
if SERVER then
AddCSLuaFile()
end

local MAPSCRIPT = {}
MAPSCRIPT.DefaultLoadout = {
Weapons = {"weapon_lambda_medkit", "weapon_physcannon"},
Ammo = {},
Armor = 0,
HEV = true
}

MAPSCRIPT.InputFilters = {}
MAPSCRIPT.EntityFilterByClass = {}
MAPSCRIPT.EntityFilterByName = {
}

MAPSCRIPT.GlobalStates = {
}

MAPSCRIPT.Checkpoints = {
}

function MAPSCRIPT:PostInit()
print("-- Incomplete mapscript --")
end

return MAPSCRIPT
28 changes: 28 additions & 0 deletions gamemode/gametypes/hl2ep2/mapscripts/ep2_outland_07.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
if SERVER then
AddCSLuaFile()
end

local MAPSCRIPT = {}
MAPSCRIPT.DefaultLoadout = {
Weapons = {"weapon_lambda_medkit", "weapon_physcannon"},
Ammo = {},
Armor = 0,
HEV = true
}

MAPSCRIPT.InputFilters = {}
MAPSCRIPT.EntityFilterByClass = {}
MAPSCRIPT.EntityFilterByName = {
}

MAPSCRIPT.GlobalStates = {
}

MAPSCRIPT.Checkpoints = {
}

function MAPSCRIPT:PostInit()
print("-- Incomplete mapscript --")
end

return MAPSCRIPT
28 changes: 28 additions & 0 deletions gamemode/gametypes/hl2ep2/mapscripts/ep2_outland_08.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
if SERVER then
AddCSLuaFile()
end

local MAPSCRIPT = {}
MAPSCRIPT.DefaultLoadout = {
Weapons = {"weapon_lambda_medkit", "weapon_physcannon"},
Ammo = {},
Armor = 0,
HEV = true
}

MAPSCRIPT.InputFilters = {}
MAPSCRIPT.EntityFilterByClass = {}
MAPSCRIPT.EntityFilterByName = {
}

MAPSCRIPT.GlobalStates = {
}

MAPSCRIPT.Checkpoints = {
}

function MAPSCRIPT:PostInit()
print("-- Incomplete mapscript --")
end

return MAPSCRIPT
Loading

0 comments on commit f90f1cb

Please sign in to comment.