mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 12:01:05 +00:00
Adapt tutorial plant to UDMF
This commit is contained in:
parent
f76b104c4a
commit
9815d40c20
3 changed files with 38 additions and 3 deletions
|
@ -3044,6 +3044,20 @@ doom
|
|||
}
|
||||
}
|
||||
|
||||
tutorial
|
||||
{
|
||||
color = 10; // Green
|
||||
title = "Tutorial";
|
||||
|
||||
799
|
||||
{
|
||||
title = "Tutorial Plant";
|
||||
sprite = "TUPFH0";
|
||||
width = 40;
|
||||
height = 144;
|
||||
}
|
||||
}
|
||||
|
||||
flickies
|
||||
{
|
||||
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
|
||||
{
|
||||
color = 10; // Green
|
||||
|
|
|
@ -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->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++)
|
||||
{
|
||||
segment = P_SpawnMobjFromMobj(mobj, 0, 0, 112*FRACUNIT, MT_TUTORIALFLOWER);
|
||||
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;
|
||||
case MT_CEZPOLE1:
|
||||
|
|
|
@ -5262,6 +5262,9 @@ static void P_ConvertBinaryMap(void)
|
|||
case 780: //Skybox
|
||||
mapthings[i].args[0] = !!(mapthings[i].options & MTF_OBJECTSPECIAL);
|
||||
break;
|
||||
case 799: //Tutorial plant
|
||||
mapthings[i].args[0] = mapthings[i].extrainfo;
|
||||
break;
|
||||
case 1002: //Dripping water
|
||||
mapthings[i].args[0] = mapthings[i].angle;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue