Skip to content

Commit

Permalink
Remove special code, change loadout with checkpoints in ep2_outland_02
Browse files Browse the repository at this point in the history
  • Loading branch information
ZehMatt committed Jun 2, 2024
1 parent a7978cf commit 79da857
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions gamemode/gametypes/hl2ep2/mapscripts/ep2_outland_02.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ MAPSCRIPT.Checkpoints = {
Condition = function()
return GAMEMODE:GetPreviousMap() ~= "ep2_outland_04"
end,
WeaponAdditions = { "weapon_smg1" },
Trigger = {
Pos = Vector(-2031, -8637, -715),
Mins = Vector(-150, -150, 0),
Expand Down Expand Up @@ -104,17 +105,6 @@ function MAPSCRIPT:PostInit()
end
end

-- Loadout modifier.
local loadoutChange = ents.Create("lambda_lua_logic")
loadoutChange:SetName("lambda_loadout_change")
loadoutChange.OnRunLua = function()
local weps = GAMEMODE:GetMapScript().DefaultLoadout.Weapons
table.insert(weps, "weapon_smg1")
table.insert(weps, "weapon_shotgun")
table.insert(weps, "weapon_pistol")
end
loadoutChange:Spawn()

ents.WaitForEntityByName("trigger_turret2_vcd", function(ent)
ent:Fire("AddOutput", "OnTrigger lambda_loadout_change,RunLua,,0,-1", "0.0")
end)
Expand Down

0 comments on commit 79da857

Please sign in to comment.