Adapt Pterabytes to UDMF

This commit is contained in:
MascaraSnake 2021-12-21 21:57:35 +01:00
parent a5ac10733a
commit 5eb2448a40
3 changed files with 9 additions and 1 deletions

View file

@ -3752,6 +3752,11 @@ udmf
sprite = "PTERA2A8";
width = 16;
height = 16;
arg0
{
title = "Number of Pterabytes";
default = 1;
}
}
136
{

View file

@ -14270,7 +14270,7 @@ void A_SpawnPterabytes(mobj_t *actor)
return;
if (actor->spawnpoint)
amount = actor->spawnpoint->extrainfo + 1;
amount = min(1, actor->spawnpoint->args[0]);
interval = FixedAngle(FRACUNIT*360/amount);

View file

@ -4893,6 +4893,9 @@ static void P_ConvertBinaryMap(void)
case 127: //Hive Elemental
mapthings[i].args[0] = mapthings[i].extrainfo;
break;
case 135: //Pterabyte Spawner
mapthings[i].args[0] = mapthings[i].extrainfo + 1;
break;
case 502: //Star post
if (mapthings[i].extrainfo)
// Allow thing Parameter to define star post num too!