mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
CON: check EVENT_ENTERLEVEL for nonzero RETURN, run w/ other players then.
Background: AMC TC initializes per-player variables from this event. git-svn-id: https://svn.eduke32.com/eduke32@5235 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
1d11b6fdd6
commit
29dca07f0b
2 changed files with 13 additions and 2 deletions
|
@ -2601,7 +2601,8 @@ Receives zero, checks for non-zero
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
These events get passed a value of 0 for `RETURN`, and after finishing, check
|
These events get passed a value of 0 for `RETURN`, and after finishing, check
|
||||||
it for being non-zero, in which case some hard-coded behavior is suppressed:
|
it for being non-zero, in which case some hard-coded behavior is suppressed or
|
||||||
|
additional behavior is enabled:
|
||||||
|
|
||||||
`AIMDOWN`, `AIMUP`, `CROUCH`, `DISPLAYSBAR`, `DISPLAYWEAPON`, `DOFIRE`,
|
`AIMDOWN`, `AIMUP`, `CROUCH`, `DISPLAYSBAR`, `DISPLAYWEAPON`, `DOFIRE`,
|
||||||
`DRAWWEAPON`, `FIRE`, `HOLODUKEOFF`, `HOLODUKEON`, `HOLSTER`, `INCURDAMAGE`,
|
`DRAWWEAPON`, `FIRE`, `HOLODUKEOFF`, `HOLODUKEON`, `HOLSTER`, `INCURDAMAGE`,
|
||||||
|
@ -2620,6 +2621,9 @@ it for being non-zero, in which case some hard-coded behavior is suppressed:
|
||||||
If non-zero, the ``fire'' or ``use'' shared key bits are cleared
|
If non-zero, the ``fire'' or ``use'' shared key bits are cleared
|
||||||
(respectively).
|
(respectively).
|
||||||
|
|
||||||
|
`ENTERLEVEL`::
|
||||||
|
If non-zero, run the event for the remaining players.
|
||||||
|
|
||||||
[float]
|
[float]
|
||||||
Game considers post-event `RETURN` an index
|
Game considers post-event `RETURN` an index
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
|
@ -2029,7 +2029,14 @@ int32_t G_EnterLevel(int32_t g)
|
||||||
// variables are set by pointer...
|
// variables are set by pointer...
|
||||||
|
|
||||||
Bmemcpy(currentboardfilename, boardfilename, BMAX_PATH);
|
Bmemcpy(currentboardfilename, boardfilename, BMAX_PATH);
|
||||||
VM_OnEvent(EVENT_ENTERLEVEL, -1, -1);
|
|
||||||
|
for (TRAVERSE_CONNECT(i))
|
||||||
|
{
|
||||||
|
const int32_t ret = VM_OnEventWithReturn(EVENT_ENTERLEVEL, g_player[i].ps->i, i, 0);
|
||||||
|
if (ret == 0)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
OSD_Printf(OSDTEXT_YELLOW "E%dL%d: %s\n", ud.volume_number+1, ud.level_number+1,
|
OSD_Printf(OSDTEXT_YELLOW "E%dL%d: %s\n", ud.volume_number+1, ud.level_number+1,
|
||||||
MapInfo[mii].name);
|
MapInfo[mii].name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue