Skip to content

Commit 4b302a1

Browse files
committed
Initial commit
0 parents  commit 4b302a1

File tree

159 files changed

+27987
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+27987
-0
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License
2+
3+
Copyright (c) 2021-2022 Phillip "Antidote" Stephens
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

areastoplay.lc.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Game.DoFile("gui/scripts/scenariodata/scenariodata.lua")
2+
ScenarioData.tAreasToPlay = {
3+
CheckpointData("Cave", "s010_cave", "", "", true),
4+
CheckpointData("Magma", "s020_magma", "pt_official", "magma_start", true),
5+
CheckpointData("Base Lab", "s030_baselab", "pt_official", "base_start", true),
6+
CheckpointData("Aqua", "s040_aqua", "pt_official", "aqua_start", true),
7+
CheckpointData("Forest", "s050_forest", "pt_official", "forest_start", true),
8+
CheckpointData("Quarantine", "s060_quarantine", "pt_official", "quarantine_start", true),
9+
CheckpointData("Sanctuary", "s070_basesanc", "pt_official", "sanc_start", true),
10+
CheckpointData("Shipyard", "s080_shipyard", "pt_official", "shipyard_start", true),
11+
CheckpointData("Sky Base", "s090_skybase", "pt_official", "skybase_start", true)
12+
}

autclast.lc.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function Autclast.main()
2+
end
3+
4+
5+
function Autclast.LaunchDamageSound(_ARG_0_)
6+
end

autector.lc.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function Autool.main()
2+
end
3+
4+
5+
function Autool.LaunchDamageSound(_ARG_0_)
6+
end

autool.lc.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function Autool.main()
2+
end
3+
4+
5+
function Autool.LaunchDamageSound(_ARG_0_)
6+
end

autsharp.lc.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function Autsharp.main()
2+
end
3+
4+
5+
function Autsharp.LaunchDamageSound(_ARG_0_)
6+
end

blindfly.lc.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function PoisonFly.main()
2+
end
3+
4+
5+
function PoisonFly.LaunchDamageSound(_ARG_0_)
6+
end

camerafxpresets.lc.lua

Lines changed: 258 additions & 0 deletions
Large diffs are not rendered by default.

caterzillaspawngroup.lc.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
3+
4+
function SpawnGroup.main()
5+
6+
end

cinematics.lc.lua

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
Game.ImportLibrary("gui/scripts/cinematics_items.lua")
2+
cinematics = cinematics ~= nil and cinematics or {}
3+
4+
5+
6+
7+
8+
9+
10+
function cinematics.OnCutsceneStarted(_ARG_0_, _ARG_1_)
11+
if not _ARG_1_ then
12+
local cinematic = cinematics.GetCinematicDefFromPath(_ARG_0_)
13+
if cinematic ~= nil then
14+
cinematics.SetCinematicUnlocked(cinematic.sCutscene, true)
15+
end
16+
end
17+
end
18+
19+
20+
function cinematics.GetCinematicDefFromPath(_ARG_0_)
21+
local ret;
22+
local match = string.match(_ARG_0_, "/(.-)/")
23+
utils.LOG(utils.LOGTYPE_DEFAULT, "Searching cinematic " .. match)
24+
25+
26+
27+
for _FORV_6_, _FORV_7_ in ipairs(cinematics_items.tDefs.tGeneral.aItems) do
28+
if _FORV_7_.sCutscene == match then
29+
ret = _FORV_7_
30+
break
31+
end
32+
end
33+
return ret
34+
end
35+
36+
37+
function cinematics.SetCinematicUnlocked(_ARG_0_, _ARG_1_)
38+
local unlocked = cinematics.IsCinematicUnlocked(_ARG_0_)
39+
Blackboard.SetProp("CINEMATICS", _ARG_0_, "b", _ARG_1_)
40+
end
41+
42+
43+
function cinematics.HasAnyUnlockedCinematic()
44+
local ret = false
45+
46+
for _FORV_4_, _FORV_5_ in ipairs(cinematics_items.tDefs.tGeneral.aItems) do
47+
if cinematics.IsCinematicUnlocked(_FORV_5_.sCutscene) then
48+
ret = true
49+
break
50+
end
51+
end
52+
53+
return ret
54+
end
55+
56+
57+
function cinematics.HasAnyNewUnlockedCinematic()
58+
local ret = false
59+
60+
for _FORV_4_, _FORV_5_ in ipairs(cinematics_items.tDefs.tGeneral.aItems) do
61+
if cinematics.IsCinematicNew(_FORV_5_.sCutscene) then
62+
ret = true
63+
break
64+
end
65+
end
66+
67+
return ret
68+
end
69+
70+
71+
function cinematics.IsCinematicNew(_ARG_0_)
72+
return cinematics.IsCinematicUnlocked(_ARG_0_) and ProfileBlackboard.GetProp("CINEMATICS", _ARG_0_ .. "_NEW") ~= false
73+
end
74+
75+
76+
function cinematics.IsCinematicUnlocked(_ARG_0_)
77+
78+
if Blackboard.GetProp("GAME", "I_AM_A_CHEATER") then
79+
return true
80+
end
81+
return Blackboard.GetProp("CINEMATICS", _ARG_0_) == true
82+
end

0 commit comments

Comments
 (0)