Adapt Pyre Fly to UDMF

This commit is contained in:
MascaraSnake 2021-12-21 22:00:42 +01:00
parent 5eb2448a40
commit fe8c1d1331
3 changed files with 11 additions and 2 deletions

View file

@ -3764,6 +3764,12 @@ udmf
sprite = "PYREA0";
width = 24;
height = 34;
arg0
{
title = "Start on fire?";
type = 11;
enum = "noyes";
}
}
137
{

View file

@ -12924,8 +12924,8 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj, boolean
}
break;
case MT_PYREFLY:
//start on fire if Ambush flag is set, otherwise behave normally
if (mthing->options & MTF_AMBUSH)
//start on fire if args[0], otherwise behave normally
if (mthing->args[0])
{
P_SetMobjState(mobj, mobj->info->meleestate);
mobj->extravalue2 = 2;

View file

@ -4896,6 +4896,9 @@ static void P_ConvertBinaryMap(void)
case 135: //Pterabyte Spawner
mapthings[i].args[0] = mapthings[i].extrainfo + 1;
break;
case 136: //Pyre Fly
mapthings[i].args[0] = !!(mapthings[i].options & MTF_AMBUSH);
break;
case 502: //Star post
if (mapthings[i].extrainfo)
// Allow thing Parameter to define star post num too!