Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Skydusk
SRB2
Compare revisions
next to abbdd18db7aca9ce5bbdfcfee11cec91a4217c7c
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
Acelite/SRB2
Select target project
No results found
abbdd18db7aca9ce5bbdfcfee11cec91a4217c7c
Select Git revision
Branches
conditionslua
customudmffields
freevideolibtohud
gamehooks
gamehooks2
getcustomexit
levelendhooks
levelheaderfades
menuforcustomcvars
metadata
next
tbscommunity
12 results
Swap
Target
STJr/SRB2
Select target project
STJr/SRB2
Sryder/SRB2
wolfy852/SRB2
Alpha2244/SRB2
Inuyasha/SRB2
yoshibot/SRB2
TehRealSalt/SRB2
PrisimaTF/SRB2
Hatninja/SRB2
SteelT/SRB2
james/SRB2
ShaderWraith/SRB2
SinnamonLat/SRB2
mazmazz_/SRB2
filpAM/SRB2
chaoloveicemdboy/SRB2
Whooa21/SRB2
Machturne/SRB2
Golden/SRB2
Tatsuru/SRB2
Snu/SRB2
Zwip-Zwap_Zapony/SRB2
fickleheart/SRB2
alphaRexJames/SRB2
JJK/SRB2
diskpoppy/SRB2
Hannu_Hanhi/SRB2
ZipperQR/SRB2
kays/SRB2
spherallic/SRB2
Zippy_Zolton/SRB2
namiishere/SRB2
Ors/SRB2
SMS_Alfredo/SRB2
sonic_edge/SRB2
lavla/SRB2
ashi/SRB2
X.organic/SRB2
Fafabis/SRB2
Meziu/SRB2
v-rob/SRB2
tertu/SRB2
bitten2up/SRB2
flarn2006/SRB2
Krabs/SRB2
clairebun/SRB2
Lactozilla/SRB2
thehackstack/SRB2
Spice/SRB2
win8linux/SRB2
JohnFrostFox/SRB2
talktoneon726/SRB2
Wane/SRB2
Lamibe/SRB2
spectrumuk2/srb-2
nerdyminer18/srb-2
256nil/SRB2
ARJr/SRB2
Alam/SRB2
Zenya/srb-2-marathon-demos
Acelite/srb-2-archivedmodifications
MIDIMan/SRB2
Lach/SRB2
Frostiikin/bounce-tweaks
Jaden/SRB2
Tyron/SRB2
Astronight/SRB2
Mari0shi06/SRB2
aiire/SRB2
Galactice/SRB2
srb2-ports/srb2-dreamcast
sdasdas/SRB2
chreas/srb-2-vr
StarManiaKG/the-story-of-sinically-rocketing-and-botching-the-2nd
LoganAir/SRB2
NepDisk/srb-2
alufolie91/SRB2
Felicia.iso/SRB2
twi/SRB2
BarrelsOFun/SRB2
Speed2411/SRB2
Leather_Realms/SRB2
Ayemar/SRB2
Acelite/SRB2
VladDoc/SRB2
kaldrum/model-features
strawberryfox417/SRB2
Lugent/SRB2
Jisk/SRB2
Rem/SRB2
Refrag/SRB2
Henry_3230/srb-3230
TehPuertoRicanSpartan2/tprs-srb2
Leminn/srb-2-marathon-stuff
chromaticpipe2/SRB2
MiguelGustavo15/SRB2
Maru/srb-2-tests
SilicDev/SRB2
UnmatchedBracket/SRB2
HybridDog/SRB2
xordspar0/SRB2
jsjhbewfhh/SRB2
Fancy2209/SRB2
Lorsoen/SRB2
shindoukin/SRB2
GamerOfDays/SRB2
Craftyawesome/SRB2
tenshi-tensai-tennoji/SRB2
Scarfdudebalder/SRB2
luigi-budd/srb-2-fix-interplag-lockon
mskluesner/SRB2
johnpetersa19/SRB2
Pheazant/SRB2
chromaticpipe2/srb2classic
romoney5/SRB2
PAS/SRB2Classic
BlueStaggo/SRB2
117 results
next
Select Git revision
Branches
1392-2-2-15-attempting-to-draw-a-hud-graphic-with-the-same-lump-name-as-a-lua-script-crashes-the
21-installer-nodd
2210-pre1
2210-pre2
2210-rc1
2210-rc2
2210-rc3
2211-pre1
2211-pre2
2211-rc1
2212-pre1
2212-pre2
2212-pre3
2212-rc1
2213
2214-pre1
2214-pre2
2214-pre3
2214-pre4
2_2_12
64-gl-log
COM_ImmedExecute-lua
DJGPP
accel-momentum
acs
action-args
alpha-fixes
any-resolution
appveyor
blend-locking
blentran
blua-unary-not-fix
boost-tickrate
bustablesoundz
cleanup-opengl
cleanupmusic
clipmidtex
cmake-valgrind
crawlacommander-sprites
custom-map-names
custom-teams
cutscene-cleanup
dd-music-bypass
dd-music-fix
delfile2
deprecate-lua-dedicated-server
dpl-2
dropshadows-spawning
dynabsp
emblem-drawing
exchndl-xp-fix
extra-textures
few-kart-lua-changes
ffloorclip
fix-167
fix-cvar-conflicts
fix-opengl-parameter-crash
fix-opengl-shear-roll
flipfuncpointers
fof-lightlist-fixes
font-FUCK
frictionrefactor
fuck-macros-1
gamepad-luakeydown
gamepad-morefixes
gamepad_experiments
gametype-refactor
gametype-refactor-1
gametype-refactor-player-spawns
ghost-networking
gif-splitting
grr-lj
hitboxviewer
hwr-texture-cache-refactor
hwrender2
improve-439
increase-maxconditionsets
increase-packet-tics
input-display
input-display-translucency
io
joystick-juggling-maz
just-in-case
keycodes-only
ksf-wadfiles
ld413-mp-fix
levelstruct
libpng-version-support
linedef-actions
lj-test
lol-states
loopedsounds
lower-unpegged-fix
lua-change-gametype
lua-command-netids
lua-gfx-2
lua-gfx-sprites
lua-local
makefile-auto-mingw-gcc
makefile-tinkering
Tags
SRB2_release_2.1
SRB2_release_2.1.1
SRB2_release_2.1.10
SRB2_release_2.1.11
SRB2_release_2.1.12
SRB2_release_2.1.14
SRB2_release_2.1.15
SRB2_release_2.1.16
SRB2_release_2.1.16a
SRB2_release_2.1.17
SRB2_release_2.1.18
SRB2_release_2.1.19
SRB2_release_2.1.2
SRB2_release_2.1.20
SRB2_release_2.1.21
SRB2_release_2.1.22
SRB2_release_2.1.23
SRB2_release_2.1.24
SRB2_release_2.1.25
SRB2_release_2.1.3
SRB2_release_2.1.4
SRB2_release_2.1.5
SRB2_release_2.1.6
SRB2_release_2.1.7
SRB2_release_2.1.8
SRB2_release_2.1.9
SRB2_release_2.2.0
SRB2_release_2.2.1
SRB2_release_2.2.10
SRB2_release_2.2.11
SRB2_release_2.2.12
SRB2_release_2.2.13
SRB2_release_2.2.15
SRB2_release_2.2.2
SRB2_release_2.2.3
SRB2_release_2.2.4
SRB2_release_2.2.5
SRB2_release_2.2.6
SRB2_release_2.2.7
SRB2_release_2.2.8
SRB2_release_2.2.9
td-release-v1.0.0
142 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
Add G_GetCustomExitVars
· a83d9294
Sky Dusk
authored
4 months ago
a83d9294
Oops, accidently deleted while copying.
· d3ec5be5
Sky Dusk
authored
4 months ago
d3ec5be5
Removal of NOHUD and INLEVEL macros, function should be harmless in both cases
· abbdd18d
Sky Dusk
authored
4 months ago
abbdd18d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/doomstat.h
+1
-0
1 addition, 0 deletions
src/doomstat.h
src/g_game.c
+3
-1
3 additions, 1 deletion
src/g_game.c
src/lua_baselib.c
+21
-5
21 additions, 5 deletions
src/lua_baselib.c
src/p_setup.c
+1
-0
1 addition, 0 deletions
src/p_setup.c
with
26 additions
and
6 deletions
src/doomstat.h
View file @
abbdd18d
...
@@ -249,6 +249,7 @@ extern textprompt_t *textprompts[MAX_PROMPTS];
...
@@ -249,6 +249,7 @@ extern textprompt_t *textprompts[MAX_PROMPTS];
// For the Custom Exit linedef.
// For the Custom Exit linedef.
extern
INT16
nextmapoverride
;
extern
INT16
nextmapoverride
;
extern
UINT8
skipstats
;
extern
UINT8
skipstats
;
extern
UINT8
luakeepcutscenes
;
extern
INT16
nextgametype
;
extern
INT16
nextgametype
;
extern
UINT32
ssspheres
;
// Total # of spheres in a level
extern
UINT32
ssspheres
;
// Total # of spheres in a level
...
...
This diff is collapsed.
Click to expand it.
src/g_game.c
View file @
abbdd18d
...
@@ -160,6 +160,7 @@ textprompt_t *textprompts[MAX_PROMPTS];
...
@@ -160,6 +160,7 @@ textprompt_t *textprompts[MAX_PROMPTS];
INT16
nextmapoverride
;
INT16
nextmapoverride
;
UINT8
skipstats
;
UINT8
skipstats
;
UINT8
luakeepcutscenes
;
INT16
nextgametype
=
-
1
;
INT16
nextgametype
=
-
1
;
// Pointers to each CTF flag
// Pointers to each CTF flag
...
@@ -3159,6 +3160,7 @@ void G_DoReborn(INT32 playernum)
...
@@ -3159,6 +3160,7 @@ void G_DoReborn(INT32 playernum)
nextmapoverride
=
gamemap
;
nextmapoverride
=
gamemap
;
countdown2
=
TICRATE
;
countdown2
=
TICRATE
;
skipstats
=
2
;
skipstats
=
2
;
luakeepcutscenes
=
0
;
for
(
i
=
0
;
i
<
MAXPLAYERS
;
i
++
)
for
(
i
=
0
;
i
<
MAXPLAYERS
;
i
++
)
{
{
...
@@ -4209,7 +4211,7 @@ void G_AfterIntermission(void)
...
@@ -4209,7 +4211,7 @@ void G_AfterIntermission(void)
if
((
gametyperules
&
GTR_CUTSCENES
)
&&
mapheaderinfo
[
gamemap
-
1
]
->
cutscenenum
if
((
gametyperules
&
GTR_CUTSCENES
)
&&
mapheaderinfo
[
gamemap
-
1
]
->
cutscenenum
&&
!
modeattacking
&&
!
modeattacking
&&
skipstats
<=
1
&&
(
skipstats
<=
1
||
luakeepcutscenes
>
0
)
&&
(
gamecomplete
||
!
(
marathonmode
&
MA_NOCUTSCENES
))
&&
(
gamecomplete
||
!
(
marathonmode
&
MA_NOCUTSCENES
))
&&
stagefailed
==
false
)
&&
stagefailed
==
false
)
{
{
...
...
This diff is collapsed.
Click to expand it.
src/lua_baselib.c
View file @
abbdd18d
...
@@ -4171,26 +4171,41 @@ static int lib_gSetCustomExitVars(lua_State *L)
...
@@ -4171,26 +4171,41 @@ static int lib_gSetCustomExitVars(lua_State *L)
// LUA EXTENSION: Custom exit like support
// LUA EXTENSION: Custom exit like support
// Supported:
// Supported:
// G_SetCustomExitVars(); [reset to defaults]
// G_SetCustomExitVars(); [reset to defaults]
// G_SetCustomExitVars(int) [nextmap override only]
// G_SetCustomExitVars(int) [nextmap override only]
// G_SetCustomExitVars(nil, int) [skipstats only]
// G_SetCustomExitVars(nil, int) [skipstats only]
// G_SetCustomExitVars(int, int) [both of the above]
// G_SetCustomExitVars(int, int) [both of the above]
// G_SetCustomExitVars(int, int, int) [nextmapoverride, skipstats and nextgametype]
// G_SetCustomExitVars(int, int, int) [nextmapoverride, skipstats and nextgametype]
// G_SetCustomExitVars(int, int, int, int) [nextmapoverride, skipstats, nextgametype and keepcutscenes]
nextmapoverride
=
0
;
nextmapoverride
=
0
;
skipstats
=
0
;
skipstats
=
0
;
nextgametype
=
-
1
;
nextgametype
=
-
1
;
luakeepcutscenes
=
0
;
if
(
n
>=
1
)
if
(
n
>=
1
)
{
{
nextmapoverride
=
(
INT16
)
luaL_optinteger
(
L
,
1
,
0
);
nextmapoverride
=
(
INT16
)
luaL_optinteger
(
L
,
1
,
0
);
skipstats
=
(
INT16
)
luaL_optinteger
(
L
,
2
,
0
);
skipstats
=
(
INT16
)
luaL_optinteger
(
L
,
2
,
0
);
nextgametype
=
(
INT16
)
luaL_optinteger
(
L
,
3
,
-
1
);
nextgametype
=
(
INT16
)
luaL_optinteger
(
L
,
3
,
-
1
);
luakeepcutscenes
=
(
INT16
)
luaL_optinteger
(
L
,
4
,
0
);
}
}
return
0
;
return
0
;
}
}
// Another Lua function that doesn't actually exist, but since lib_gSetCustomExitVars exists...
// The get counterpart would have been useful as well.
// Gets nextmapoverride, skipstats and nextgametype for any other use
static
int
lib_gGetCustomExitVars
(
lua_State
*
L
)
{
lua_pushinteger
(
L
,
nextmapoverride
);
lua_pushinteger
(
L
,
skipstats
);
lua_pushinteger
(
L
,
nextgametype
);
lua_pushinteger
(
L
,
luakeepcutscenes
);
return
4
;
}
static
int
lib_gEnoughPlayersFinished
(
lua_State
*
L
)
static
int
lib_gEnoughPlayersFinished
(
lua_State
*
L
)
{
{
INLEVEL
INLEVEL
...
@@ -4632,6 +4647,7 @@ static luaL_Reg lib[] = {
...
@@ -4632,6 +4647,7 @@ static luaL_Reg lib[] = {
{
"G_FindMapByNameOrCode"
,
lib_gFindMapByNameOrCode
},
{
"G_FindMapByNameOrCode"
,
lib_gFindMapByNameOrCode
},
{
"G_DoReborn"
,
lib_gDoReborn
},
{
"G_DoReborn"
,
lib_gDoReborn
},
{
"G_SetCustomExitVars"
,
lib_gSetCustomExitVars
},
{
"G_SetCustomExitVars"
,
lib_gSetCustomExitVars
},
{
"G_GetCustomExitVars"
,
lib_gGetCustomExitVars
},
{
"G_EnoughPlayersFinished"
,
lib_gEnoughPlayersFinished
},
{
"G_EnoughPlayersFinished"
,
lib_gEnoughPlayersFinished
},
{
"G_ExitLevel"
,
lib_gExitLevel
},
{
"G_ExitLevel"
,
lib_gExitLevel
},
{
"G_IsSpecialStage"
,
lib_gIsSpecialStage
},
{
"G_IsSpecialStage"
,
lib_gIsSpecialStage
},
...
...
This diff is collapsed.
Click to expand it.
src/p_setup.c
View file @
abbdd18d
...
@@ -8120,6 +8120,7 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate)
...
@@ -8120,6 +8120,7 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate)
R_PrecacheLevel
();
R_PrecacheLevel
();
nextmapoverride
=
0
;
nextmapoverride
=
0
;
luakeepcutscenes
=
0
;
skipstats
=
0
;
skipstats
=
0
;
levelloading
=
false
;
levelloading
=
false
;
...
...
This diff is collapsed.
Click to expand it.