Adapt tutorial plant to UDMF

This commit is contained in:
MascaraSnake 2022-04-20 20:06:08 +02:00
parent f76b104c4a
commit 9815d40c20
3 changed files with 38 additions and 3 deletions

View file

@ -3044,6 +3044,20 @@ doom
} }
} }
tutorial
{
color = 10; // Green
title = "Tutorial";
799
{
title = "Tutorial Plant";
sprite = "TUPFH0";
width = 40;
height = 144;
}
}
flickies flickies
{ {
color = 10; // Green color = 10; // Green
@ -7867,6 +7881,24 @@ udmf
} }
} }
tutorial
{
color = 10; // Green
title = "Tutorial";
799
{
title = "Tutorial Plant";
sprite = "TUPFH0";
width = 40;
height = 144;
arg0
{
title = "Start frame";
}
}
}
flickies flickies
{ {
color = 10; // Green color = 10; // Green

View file

@ -12922,15 +12922,15 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj, boolean
{ {
segment = P_SpawnMobjFromMobj(mobj, 0, 0, 0, MT_TUTORIALLEAF); segment = P_SpawnMobjFromMobj(mobj, 0, 0, 0, MT_TUTORIALLEAF);
segment->angle = mobj->angle + FixedAngle(i*60*FRACUNIT); segment->angle = mobj->angle + FixedAngle(i*60*FRACUNIT);
P_SetMobjState(segment, S_TUTORIALLEAF1 + mthing->extrainfo); P_SetMobjState(segment, S_TUTORIALLEAF1 + mthing->args[0]);
} }
for (i = 0; i < 3; i++) for (i = 0; i < 3; i++)
{ {
segment = P_SpawnMobjFromMobj(mobj, 0, 0, 112*FRACUNIT, MT_TUTORIALFLOWER); segment = P_SpawnMobjFromMobj(mobj, 0, 0, 112*FRACUNIT, MT_TUTORIALFLOWER);
segment->angle = mobj->angle + FixedAngle(i*120*FRACUNIT); segment->angle = mobj->angle + FixedAngle(i*120*FRACUNIT);
P_SetMobjState(segment, S_TUTORIALFLOWER1 + mthing->extrainfo); P_SetMobjState(segment, S_TUTORIALFLOWER1 + mthing->args[0]);
} }
P_SetMobjState(P_SpawnMobjFromMobj(mobj, 0, 0, 112*FRACUNIT, MT_TUTORIALFLOWERF), S_TUTORIALFLOWERF1 + mthing->extrainfo); P_SetMobjState(P_SpawnMobjFromMobj(mobj, 0, 0, 112*FRACUNIT, MT_TUTORIALFLOWERF), S_TUTORIALFLOWERF1 + mthing->args[0]);
} }
break; break;
case MT_CEZPOLE1: case MT_CEZPOLE1:

View file

@ -5262,6 +5262,9 @@ static void P_ConvertBinaryMap(void)
case 780: //Skybox case 780: //Skybox
mapthings[i].args[0] = !!(mapthings[i].options & MTF_OBJECTSPECIAL); mapthings[i].args[0] = !!(mapthings[i].options & MTF_OBJECTSPECIAL);
break; break;
case 799: //Tutorial plant
mapthings[i].args[0] = mapthings[i].extrainfo;
break;
case 1002: //Dripping water case 1002: //Dripping water
mapthings[i].args[0] = mapthings[i].angle; mapthings[i].args[0] = mapthings[i].angle;
break; break;