mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 05:30:48 +00:00
Adapt Pterabytes to UDMF
This commit is contained in:
parent
a5ac10733a
commit
5eb2448a40
3 changed files with 9 additions and 1 deletions
|
@ -3752,6 +3752,11 @@ udmf
|
|||
sprite = "PTERA2A8";
|
||||
width = 16;
|
||||
height = 16;
|
||||
arg0
|
||||
{
|
||||
title = "Number of Pterabytes";
|
||||
default = 1;
|
||||
}
|
||||
}
|
||||
136
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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!
|
||||
|
|
Loading…
Reference in a new issue