Skip to content

Commit 2e54cd2

Browse files
authored
Merge pull request #1 from MrMendelli/main
Initial Restrusture
2 parents 4b302a1 + b9b1d99 commit 2e54cd2

File tree

274 files changed

+1804
-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.

274 files changed

+1804
-0
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
s010_cave ........ Artaria
2+
s020_magma ....... Cataris
3+
s030_baselab ..... Dairon
4+
s040_aqua ........ Burenia
5+
s050_forest ...... Ghavoran
6+
s060_quarantine .. Ferenia
7+
s070_basesanc .... Elun
8+
s080_shipyard .... Hanubia
9+
s090_skybase ..... Itorash
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Game.ImportLibraryWithName("actors/items/pickup/scripts/pickup.lua", "Pickup")
2+
3+
ItemEnergyTank = {}
4+
setmetatable(ItemEnergyTank, {__index = Pickup})
5+
6+
function ItemEnergyTank.main()
7+
end
8+
9+
10+
function ItemEnergyTank.BeginPlay(_ARG_0_)
11+
Pickup.BeginPlay(_ARG_0_)
12+
end
13+
14+
15+
function ItemEnergyTank.EndPlay(_ARG_0_)
16+
Pickup.EndPlay(_ARG_0_)
17+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Game.ImportLibraryWithName("actors/items/pickup/scripts/pickup.lua", "Pickup")
2+
3+
ItemMissileTank = {}
4+
setmetatable(ItemMissileTank, {__index = Pickup})
5+
6+
function ItemMissileTank.main()
7+
end
8+
9+
10+
function ItemMissileTank.BeginPlay(_ARG_0_)
11+
Pickup.BeginPlay(_ARG_0_)
12+
end
13+
14+
15+
function ItemMissileTank.EndPlay(_ARG_0_)
16+
Pickup.EndPlay(_ARG_0_)
17+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Game.ImportLibraryWithName("actors/items/pickup/scripts/pickup.lua", "Pickup")
2+
3+
ItemMissileTankPlus = {}
4+
setmetatable(ItemMissileTankPlus, {__index = Pickup})
5+
6+
function ItemMissileTankPlus.main()
7+
end
8+
9+
10+
function ItemMissileTankPlus.BeginPlay(_ARG_0_)
11+
Pickup.BeginPlay(_ARG_0_)
12+
end
13+
14+
15+
function ItemMissileTankPlus.EndPlay(_ARG_0_)
16+
Pickup.EndPlay(_ARG_0_)
17+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
function ItemPowerBombTank.main()
2+
end
3+
4+
5+
6+
7+
function ItemPowerBombTank.OnPickedUp(_ARG_0_)
8+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
function Pickup.main()
2+
end
3+
4+
5+
function Pickup.BeginPlay(_ARG_0_)
6+
if CurrentScenario ~= nil and CurrentScenario.OnPickableItemBeginPlay ~= nil then
7+
CurrentScenario.OnPickableItemBeginPlay(_ARG_0_)
8+
end
9+
end
10+
11+
12+
function Pickup.EndPlay(_ARG_0_)
13+
if CurrentScenario ~= nil and CurrentScenario.OnPickableItemEndPlay ~= nil then
14+
CurrentScenario.OnPickableItemEndPlay(_ARG_0_)
15+
end
16+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
3+
4+
function SpawnGroup.main()
5+
6+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
3+
4+
function SpawnGroup.main()
5+
6+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
3+
4+
function Trigger.main()
5+
6+
end
7+
8+
9+
10+
function Trigger.Enable(_ARG_0_, _ARG_1_, _ARG_2_)
11+
local oActor = Game.GetActor(_ARG_0_)
12+
if oActor ~= nil then
13+
oActor:SetWantsEnabled(true)
14+
end
15+
end
16+
17+
18+
19+
function Trigger.Disable(_ARG_0_, _ARG_1_, _ARG_2_)
20+
local oActor = Game.GetActor(_ARG_0_)
21+
if oActor ~= nil then
22+
oActor:SetWantsEnabled(false)
23+
end
24+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Game.ImportLibraryWithName("actors/props/usable/scripts/usable.lua", "Usable")
2+
local LocalG = _G
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
function GrapplePoint.main()
2+
end
3+
4+
function GrapplePoint.OnGrappleBeamAttached(_ARG_0_)
5+
local rng = math.random(2);
6+
Game.PlayEntitySound("weapons/grapple_hit_0" .. rng .. ".wav", _ARG_0_.sName, 0.5, 100, 3000, 1)
7+
end
8+
9+
function GrapplePoint.OnGrappleBeamDetached(_ARG_0_)
10+
end
11+
12+
function GrapplePoint.OnGrapplePullFinished(_ARG_0_, _ARG_1_, _ARG_2_)
13+
if CurrentScenario ~= nil and CurrentScenario.OnGrapplePullFinished ~= nil then
14+
CurrentScenario.OnGrapplePullFinished(_ARG_0_, _ARG_1_)
15+
end
16+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
Game.ImportLibrary("system/scripts/fxcallbacks.lua", false)
2+
3+
Game.ImportLibrary("actors/props/heatzone/scripts/heatzone.lua", false)
4+
5+
LavaZone = {iInsideCount = 0, sFXLavaZone = "inflames"}
6+
7+
8+
9+
10+
function LavaZone.main()
11+
end
12+
13+
14+
function LavaZone.Reset()
15+
16+
LavaZone.iInsideCount = 0
17+
fxcallbacks.SetFxEnabledOnPlayer(LavaZone.sFXLavaZone, false, false)
18+
end
19+
20+
21+
function LavaZone.OnPlayerDead()
22+
LavaZone.Reset()
23+
end
24+
25+
26+
function LavaZone.OnEnter(_ARG_0_, _ARG_1_, _ARG_2_)
27+
if _ARG_2_ == true then
28+
LavaZone.OnEnter()
29+
end
30+
end
31+
32+
33+
function LavaZone.OnExit(_ARG_0_, _ARG_1_, _ARG_2_)
34+
if _ARG_2_ == true then
35+
LavaZone.OnExit()
36+
end
37+
end
38+
39+
40+
41+
function LavaZone.OnEnter()
42+
43+
utils.LOG(utils.LOGTYPE_LOGIC, "LavaZoneEnter inside count" .. LavaZone.iInsideCount)
44+
if LavaZone.iInsideCount == 0 and not (0 < Game.GetGravitySuitOn()) then
45+
fxcallbacks.SetFxEnabledOnPlayer(LavaZone.sFXLavaZone, true, true)
46+
end
47+
48+
LavaZone.iInsideCount = LavaZone.iInsideCount + 1
49+
end
50+
51+
52+
function LavaZone.OnExit()
53+
utils.LOG(utils.LOGTYPE_LOGIC, "LavaZoneExit inside count" .. LavaZone.iInsideCount)
54+
55+
LavaZone.iInsideCount = LavaZone.iInsideCount - 1
56+
if LavaZone.iInsideCount == 0 and not (0 < Game.GetGravitySuitOn()) then
57+
fxcallbacks.SetFxEnabledOnPlayer(LavaZone.sFXLavaZone, false, false)
58+
end
59+
if LavaZone.iInsideCount < 0 then
60+
LavaZone.iInsideCount = 0
61+
end
62+
end
63+
64+
65+
function LavaZone.OnDisable()
66+
LavaZone.Reset()
67+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
function Usable.main()
2+
end
3+
4+
function Usable.ShowDialogChoice(_ARG_0_, _ARG_1_)
5+
Usable._oUsableObject = _ARG_0_
6+
GUI.LaunchMessage(_ARG_1_, "Usable.OnDialogAccepted", "Usable.OnDialogDeclined")
7+
end
8+
9+
function Usable.OnDialogAccepted()
10+
Usable._oUsableObject.USABLE:OnDialogAccepted()
11+
end
12+
13+
function Usable.OnDialogDeclined()
14+
Usable._oUsableObject.USABLE:OnDialogDeclined()
15+
end
16+
17+
function Usable.ShowDialogCanNotUse(_ARG_0_, _ARG_1_)
18+
Usable._oUsableObject = _ARG_0_
19+
GUI.LaunchMessage(_ARG_1_, "Usable.OnCanNotUseAccepted", "")
20+
end
21+
22+
function Usable.OnCanNotUseAccepted()
23+
Usable._oUsableObject.USABLE:OnCanNotUseAccepted()
24+
end
25+
26+
function Usable.ShowDialogUseSuccess(_ARG_0_, _ARG_1_)
27+
Usable._oUsableObject = _ARG_0_
28+
GUI.LaunchMessage(_ARG_1_, "Usable.OnDialogUseSuccess", "")
29+
end
30+
31+
function Usable.OnDialogUseSuccess()
32+
Usable._oUsableObject.USABLE:OnUseSuccessAccepted()
33+
end
34+
35+
function Usable.Discover(_ARG_0_)
36+
local oActor = Game.GetActor(_ARG_0_)
37+
if oActor ~= nil then
38+
local oUsable = oActor.USABLE
39+
if oUsable ~= nil then
40+
oUsable:Discover()
41+
end
42+
end
43+
end
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
function Emmy.main()
2+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
fxcallbacks = { lfxenabled = {} }
2+
3+
4+
function fxcallbacks.SetFxEnabledOnPlayer(_ARG_0_, _ARG_1_, _ARG_2_)
5+
local players = {
6+
Game.GetDefaultPlayer(),
7+
Game.GetSecondaryPlayer()
8+
}
9+
for _FORV_7_, _FORV_8_ in ipairs(players) do
10+
if _FORV_8_ ~= nil then
11+
local fx = _FORV_8_.FX
12+
if fx ~= nil then
13+
fx:SetEffectEnabled(_ARG_0_, _ARG_1_, _ARG_2_)
14+
if _ARG_1_ then
15+
table.insert(fxcallbacks.lfxenabled, _ARG_0_)
16+
else
17+
for _FORV_13_, _FORV_14_ in ipairs(fxcallbacks.lfxenabled) do
18+
if _FORV_14_ == _ARG_0_ then
19+
table.remove(fxcallbacks.lfxenabled, _FORV_13_)
20+
end
21+
end
22+
end
23+
end
24+
end
25+
end
26+
end
27+
28+
29+
function fxcallbacks.OnPlayerChange()
30+
local players = {
31+
Game.GetDefaultPlayer(),
32+
Game.GetSecondaryPlayer()
33+
}
34+
for _FORV_4_, _FORV_5_ in ipairs(players) do
35+
if _FORV_5_ ~= nil then
36+
local fx = _FORV_5_.FX
37+
if fx ~= nil then
38+
for _FORV_10_, _FORV_11_ in ipairs(fxcallbacks.lfxenabled) do
39+
fx:SetEffectEnabled(_FORV_11_, true, true)
40+
end
41+
end
42+
end
43+
end
44+
end
45+
46+
47+
function fxcallbacks.OnPlayerDead()
48+
fxcallbacks.lfxenabled = {}
49+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Game.ImportLibraryWithName("actors/items/pickup/scripts/pickup.lua", "Pickup")
2+
3+
ItemEnergyTank = {}
4+
setmetatable(ItemEnergyTank, {__index = Pickup})
5+
6+
function ItemEnergyTank.main()
7+
end
8+
9+
10+
function ItemEnergyTank.BeginPlay(_ARG_0_)
11+
Pickup.BeginPlay(_ARG_0_)
12+
end
13+
14+
15+
function ItemEnergyTank.EndPlay(_ARG_0_)
16+
Pickup.EndPlay(_ARG_0_)
17+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Game.ImportLibraryWithName("actors/items/pickup/scripts/pickup.lua", "Pickup")
2+
3+
ItemMissileTank = {}
4+
setmetatable(ItemMissileTank, {__index = Pickup})
5+
6+
function ItemMissileTank.main()
7+
end
8+
9+
10+
function ItemMissileTank.BeginPlay(_ARG_0_)
11+
Pickup.BeginPlay(_ARG_0_)
12+
end
13+
14+
15+
function ItemMissileTank.EndPlay(_ARG_0_)
16+
Pickup.EndPlay(_ARG_0_)
17+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Game.ImportLibraryWithName("actors/items/pickup/scripts/pickup.lua", "Pickup")
2+
3+
ItemMissileTankPlus = {}
4+
setmetatable(ItemMissileTankPlus, {__index = Pickup})
5+
6+
function ItemMissileTankPlus.main()
7+
end
8+
9+
10+
function ItemMissileTankPlus.BeginPlay(_ARG_0_)
11+
Pickup.BeginPlay(_ARG_0_)
12+
end
13+
14+
15+
function ItemMissileTankPlus.EndPlay(_ARG_0_)
16+
Pickup.EndPlay(_ARG_0_)
17+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
function ItemPowerBombTank.main()
2+
end
3+
4+
5+
6+
7+
function ItemPowerBombTank.OnPickedUp(_ARG_0_)
8+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
function ItemSphereDiffusionBeam.main()
2+
end
3+
4+
5+
6+
7+
function ItemSphereDiffusionBeam.OnOpen(_ARG_0_)
8+
Game.PlayEntitySoundContinueOnDead("generic/itemsphere_crack.wav", _ARG_0_.sName, 1, 500, 5000, 1.5)
9+
end

0 commit comments

Comments
 (0)