Remove magic camera follow numbers, add 2nd and 3rd follow options

This commit is contained in:
Sally Coolatta 2023-03-02 20:13:07 -05:00
parent 5c6cec7b31
commit 9b18ce7849
2 changed files with 13 additions and 3 deletions

View file

@ -3032,7 +3032,9 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha
{ {
switch (args[2]) switch (args[2])
{ {
case -1: case TMCAM_FIRST:
case TMCAM_SECOND:
case TMCAM_THIRD:
{ {
mobj_t *firstPlace = NULL; mobj_t *firstPlace = NULL;
INT32 i; INT32 i;
@ -3057,7 +3059,7 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha
continue; continue;
} }
if (player->position == 1) if (player->position == abs(args[2])) // a bit of a hack
{ {
firstPlace = player->mo; firstPlace = player->mo;
break; break;
@ -3070,7 +3072,7 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha
); );
break; break;
} }
case -2: case TMCAM_CONSOLE:
{ {
mobj_t *consoleMo = NULL; mobj_t *consoleMo = NULL;
if (playeringame[consoleplayer] == true) if (playeringame[consoleplayer] == true)

View file

@ -519,6 +519,14 @@ typedef enum
TMLOOP_BETA = 1, TMLOOP_BETA = 1,
} textmaploopendpointtype_t; } textmaploopendpointtype_t;
typedef enum
{
TMCAM_FIRST = -1,
TMCAM_SECOND = -2,
TMCAM_THIRD = -3,
TMCAM_CONSOLE = -4,
} textmapcamerafollow_t;
// GETSECSPECIAL (specialval, section) // GETSECSPECIAL (specialval, section)
// //
// Pulls out the special # from a particular section. // Pulls out the special # from a particular section.