Skip to content

Commit

Permalink
Redid code glowing flats insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
GTD-Carthage committed Oct 24, 2024
1 parent 934c650 commit ecda537
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
2 changes: 2 additions & 0 deletions games/doom/resources.lua
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,8 @@ Glow
T_CL43Y
T_CL43G
T_CL43P
GLOWFLTS
}
Texture "FWATER1", 0a0ac4, 128
Expand Down
1 change: 1 addition & 0 deletions games/heretic/resources.lua
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ Glow
FLTTELE3
FLTTELE4
GLOWFLTS
}
// Texture "FLTWAWA1", 0a0ac4, 128
Expand Down
46 changes: 22 additions & 24 deletions modules/zdoom_otex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,24 @@ OTEX_SPECIAL_RESOURCES =
}
}

OTEX_GLOWING_FLATS =
[[
OBLODA01
OGOOPY01
OICYWA01
OLAVAA01
OLAVAA02
OLAVAB01
OLAVAC01
OLAVAD01
OLAVAE01
OLAVAF01
ONUKEA01
OSLUDG01
OPOOPY01
OTAR__01
OWATER01
]]

function OTEX_PROC_MODULE.setup(self)
PARAM.OTEX_module_activated = true
Expand Down Expand Up @@ -838,30 +856,10 @@ end


function OTEX_PROC_MODULE.all_done()
SCRIPTS.gldefs = ScriptMan_combine_script(SCRIPTS.gldefs,
[[
Glow
{
Flats
{
OBLODA01
OGOOPY01
OICYWA01
OLAVAA01
OLAVAA02
OLAVAB01
OLAVAC01
OLAVAD01
OLAVAE01
OLAVAF01
ONUKEA01
OSLUDG01
OPOOPY01
OTAR__01
OWATER01
}
}
]]
string.gsub(
GAME.RESOURCES.GLOWING_FLATS_GLDEFS,
"GLOWFLTS",
OTEX_GLOWING_FLATS
)
end

Expand Down

0 comments on commit ecda537

Please sign in to comment.