Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Restrusture #1

Merged
merged 2 commits into from
Feb 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
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.
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.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions Dread Scripts (v1.0.3)/romfs/packs/maps/Index.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
s010_cave ........ Artaria
s020_magma ....... Cataris
s030_baselab ..... Dairon
s040_aqua ........ Burenia
s050_forest ...... Ghavoran
s060_quarantine .. Ferenia
s070_basesanc .... Elun
s080_shipyard .... Hanubia
s090_skybase ..... Itorash
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.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Game.ImportLibraryWithName("actors/items/pickup/scripts/pickup.lua", "Pickup")

ItemEnergyTank = {}
setmetatable(ItemEnergyTank, {__index = Pickup})

function ItemEnergyTank.main()
end


function ItemEnergyTank.BeginPlay(_ARG_0_)
Pickup.BeginPlay(_ARG_0_)
end


function ItemEnergyTank.EndPlay(_ARG_0_)
Pickup.EndPlay(_ARG_0_)
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Game.ImportLibraryWithName("actors/items/pickup/scripts/pickup.lua", "Pickup")

ItemMissileTank = {}
setmetatable(ItemMissileTank, {__index = Pickup})

function ItemMissileTank.main()
end


function ItemMissileTank.BeginPlay(_ARG_0_)
Pickup.BeginPlay(_ARG_0_)
end


function ItemMissileTank.EndPlay(_ARG_0_)
Pickup.EndPlay(_ARG_0_)
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Game.ImportLibraryWithName("actors/items/pickup/scripts/pickup.lua", "Pickup")

ItemMissileTankPlus = {}
setmetatable(ItemMissileTankPlus, {__index = Pickup})

function ItemMissileTankPlus.main()
end


function ItemMissileTankPlus.BeginPlay(_ARG_0_)
Pickup.BeginPlay(_ARG_0_)
end


function ItemMissileTankPlus.EndPlay(_ARG_0_)
Pickup.EndPlay(_ARG_0_)
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
function ItemPowerBombTank.main()
end




function ItemPowerBombTank.OnPickedUp(_ARG_0_)
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
function Pickup.main()
end


function Pickup.BeginPlay(_ARG_0_)
if CurrentScenario ~= nil and CurrentScenario.OnPickableItemBeginPlay ~= nil then
CurrentScenario.OnPickableItemBeginPlay(_ARG_0_)
end
end


function Pickup.EndPlay(_ARG_0_)
if CurrentScenario ~= nil and CurrentScenario.OnPickableItemEndPlay ~= nil then
CurrentScenario.OnPickableItemEndPlay(_ARG_0_)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@



function SpawnGroup.main()

end
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@



function SpawnGroup.main()

end
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@



function Trigger.main()

end



function Trigger.Enable(_ARG_0_, _ARG_1_, _ARG_2_)
local oActor = Game.GetActor(_ARG_0_)
if oActor ~= nil then
oActor:SetWantsEnabled(true)
end
end



function Trigger.Disable(_ARG_0_, _ARG_1_, _ARG_2_)
local oActor = Game.GetActor(_ARG_0_)
if oActor ~= nil then
oActor:SetWantsEnabled(false)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Game.ImportLibraryWithName("actors/props/usable/scripts/usable.lua", "Usable")
local LocalG = _G
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
function GrapplePoint.main()
end

function GrapplePoint.OnGrappleBeamAttached(_ARG_0_)
local rng = math.random(2);
Game.PlayEntitySound("weapons/grapple_hit_0" .. rng .. ".wav", _ARG_0_.sName, 0.5, 100, 3000, 1)
end

function GrapplePoint.OnGrappleBeamDetached(_ARG_0_)
end

function GrapplePoint.OnGrapplePullFinished(_ARG_0_, _ARG_1_, _ARG_2_)
if CurrentScenario ~= nil and CurrentScenario.OnGrapplePullFinished ~= nil then
CurrentScenario.OnGrapplePullFinished(_ARG_0_, _ARG_1_)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
Game.ImportLibrary("system/scripts/fxcallbacks.lua", false)

Game.ImportLibrary("actors/props/heatzone/scripts/heatzone.lua", false)

LavaZone = {iInsideCount = 0, sFXLavaZone = "inflames"}




function LavaZone.main()
end


function LavaZone.Reset()

LavaZone.iInsideCount = 0
fxcallbacks.SetFxEnabledOnPlayer(LavaZone.sFXLavaZone, false, false)
end


function LavaZone.OnPlayerDead()
LavaZone.Reset()
end


function LavaZone.OnEnter(_ARG_0_, _ARG_1_, _ARG_2_)
if _ARG_2_ == true then
LavaZone.OnEnter()
end
end


function LavaZone.OnExit(_ARG_0_, _ARG_1_, _ARG_2_)
if _ARG_2_ == true then
LavaZone.OnExit()
end
end



function LavaZone.OnEnter()

utils.LOG(utils.LOGTYPE_LOGIC, "LavaZoneEnter inside count" .. LavaZone.iInsideCount)
if LavaZone.iInsideCount == 0 and not (0 < Game.GetGravitySuitOn()) then
fxcallbacks.SetFxEnabledOnPlayer(LavaZone.sFXLavaZone, true, true)
end

LavaZone.iInsideCount = LavaZone.iInsideCount + 1
end


function LavaZone.OnExit()
utils.LOG(utils.LOGTYPE_LOGIC, "LavaZoneExit inside count" .. LavaZone.iInsideCount)

LavaZone.iInsideCount = LavaZone.iInsideCount - 1
if LavaZone.iInsideCount == 0 and not (0 < Game.GetGravitySuitOn()) then
fxcallbacks.SetFxEnabledOnPlayer(LavaZone.sFXLavaZone, false, false)
end
if LavaZone.iInsideCount < 0 then
LavaZone.iInsideCount = 0
end
end


function LavaZone.OnDisable()
LavaZone.Reset()
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
function Usable.main()
end

function Usable.ShowDialogChoice(_ARG_0_, _ARG_1_)
Usable._oUsableObject = _ARG_0_
GUI.LaunchMessage(_ARG_1_, "Usable.OnDialogAccepted", "Usable.OnDialogDeclined")
end

function Usable.OnDialogAccepted()
Usable._oUsableObject.USABLE:OnDialogAccepted()
end

function Usable.OnDialogDeclined()
Usable._oUsableObject.USABLE:OnDialogDeclined()
end

function Usable.ShowDialogCanNotUse(_ARG_0_, _ARG_1_)
Usable._oUsableObject = _ARG_0_
GUI.LaunchMessage(_ARG_1_, "Usable.OnCanNotUseAccepted", "")
end

function Usable.OnCanNotUseAccepted()
Usable._oUsableObject.USABLE:OnCanNotUseAccepted()
end

function Usable.ShowDialogUseSuccess(_ARG_0_, _ARG_1_)
Usable._oUsableObject = _ARG_0_
GUI.LaunchMessage(_ARG_1_, "Usable.OnDialogUseSuccess", "")
end

function Usable.OnDialogUseSuccess()
Usable._oUsableObject.USABLE:OnUseSuccessAccepted()
end

function Usable.Discover(_ARG_0_)
local oActor = Game.GetActor(_ARG_0_)
if oActor ~= nil then
local oUsable = oActor.USABLE
if oUsable ~= nil then
oUsable:Discover()
end
end
end
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function Autclast.main()
end


function Autclast.LaunchDamageSound(_ARG_0_)
end
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
function Emmy.main()
end
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
fxcallbacks = { lfxenabled = {} }


function fxcallbacks.SetFxEnabledOnPlayer(_ARG_0_, _ARG_1_, _ARG_2_)
local players = {
Game.GetDefaultPlayer(),
Game.GetSecondaryPlayer()
}
for _FORV_7_, _FORV_8_ in ipairs(players) do
if _FORV_8_ ~= nil then
local fx = _FORV_8_.FX
if fx ~= nil then
fx:SetEffectEnabled(_ARG_0_, _ARG_1_, _ARG_2_)
if _ARG_1_ then
table.insert(fxcallbacks.lfxenabled, _ARG_0_)
else
for _FORV_13_, _FORV_14_ in ipairs(fxcallbacks.lfxenabled) do
if _FORV_14_ == _ARG_0_ then
table.remove(fxcallbacks.lfxenabled, _FORV_13_)
end
end
end
end
end
end
end


function fxcallbacks.OnPlayerChange()
local players = {
Game.GetDefaultPlayer(),
Game.GetSecondaryPlayer()
}
for _FORV_4_, _FORV_5_ in ipairs(players) do
if _FORV_5_ ~= nil then
local fx = _FORV_5_.FX
if fx ~= nil then
for _FORV_10_, _FORV_11_ in ipairs(fxcallbacks.lfxenabled) do
fx:SetEffectEnabled(_FORV_11_, true, true)
end
end
end
end
end


function fxcallbacks.OnPlayerDead()
fxcallbacks.lfxenabled = {}
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Game.ImportLibraryWithName("actors/items/pickup/scripts/pickup.lua", "Pickup")

ItemEnergyTank = {}
setmetatable(ItemEnergyTank, {__index = Pickup})

function ItemEnergyTank.main()
end


function ItemEnergyTank.BeginPlay(_ARG_0_)
Pickup.BeginPlay(_ARG_0_)
end


function ItemEnergyTank.EndPlay(_ARG_0_)
Pickup.EndPlay(_ARG_0_)
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Game.ImportLibraryWithName("actors/items/pickup/scripts/pickup.lua", "Pickup")

ItemMissileTank = {}
setmetatable(ItemMissileTank, {__index = Pickup})

function ItemMissileTank.main()
end


function ItemMissileTank.BeginPlay(_ARG_0_)
Pickup.BeginPlay(_ARG_0_)
end


function ItemMissileTank.EndPlay(_ARG_0_)
Pickup.EndPlay(_ARG_0_)
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Game.ImportLibraryWithName("actors/items/pickup/scripts/pickup.lua", "Pickup")

ItemMissileTankPlus = {}
setmetatable(ItemMissileTankPlus, {__index = Pickup})

function ItemMissileTankPlus.main()
end


function ItemMissileTankPlus.BeginPlay(_ARG_0_)
Pickup.BeginPlay(_ARG_0_)
end


function ItemMissileTankPlus.EndPlay(_ARG_0_)
Pickup.EndPlay(_ARG_0_)
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
function ItemPowerBombTank.main()
end




function ItemPowerBombTank.OnPickedUp(_ARG_0_)
end
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function ItemSphereDiffusionBeam.main()
end




function ItemSphereDiffusionBeam.OnOpen(_ARG_0_)
Game.PlayEntitySoundContinueOnDead("generic/itemsphere_crack.wav", _ARG_0_.sName, 1, 500, 5000, 1.5)
end
Loading