0
0
Fork 0
mirror of https://git.do.srb2.org/STJr/SRB2.git synced 2025-03-22 10:52:23 +00:00

Adapt zoom tube waypoint to UDMF

This commit is contained in:
MascaraSnake 2021-12-21 18:19:10 +01:00
parent 81bf0dceb2
commit af30847a1f
3 changed files with 14 additions and 2 deletions
extras/conf/udb/Includes
src

View file

@ -4773,6 +4773,14 @@ udmf
{
title = "Zoom Tube Waypoint";
sprite = "internal:zoom";
arg0
{
title = "Sequence";
}
arg1
{
title = "Order";
}
}
754

View file

@ -12819,8 +12819,8 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj, boolean
break;
case MT_TUBEWAYPOINT:
{
UINT8 sequence = mthing->angle >> 8;
UINT8 id = mthing->angle & 255;
UINT8 sequence = mthing->args[0];
UINT8 id = mthing->args[1];
mobj->health = id;
mobj->threshold = sequence;
P_AddWaypoint(sequence, id, mobj);

View file

@ -4890,6 +4890,10 @@ static void P_ConvertBinaryMap(void)
case 111: //Pop-up Turret
mapthings[i].args[0] = mapthings[i].angle;
break;
case 753: //Zoom tube waypoint
mapthings[i].args[0] = mapthings[i].angle >> 8;
mapthings[i].args[1] = mapthings[i].angle & 255;
break;
case 754: //Push point
case 755: //Pull point
{