Adapt Hive Elemental to UDMF

This commit is contained in:
MascaraSnake 2021-12-21 21:51:37 +01:00
parent 52c319167f
commit a5ac10733a
3 changed files with 9 additions and 2 deletions

View file

@ -3844,6 +3844,10 @@ udmf
sprite = "HIVEA0";
width = 32;
height = 80;
arg0
{
title = "Number of bees";
}
}
128
{

View file

@ -12859,8 +12859,8 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj, boolean
return false;
break;
case MT_HIVEELEMENTAL:
if (mthing->extrainfo)
mobj->extravalue1 = mthing->extrainfo;
if (mthing->args[0])
mobj->extravalue1 = mthing->args[0];
break;
case MT_GLAREGOYLE:
case MT_GLAREGOYLEUP:

View file

@ -4890,6 +4890,9 @@ static void P_ConvertBinaryMap(void)
case 111: //Pop-up Turret
mapthings[i].args[0] = mapthings[i].angle;
break;
case 127: //Hive Elemental
mapthings[i].args[0] = mapthings[i].extrainfo;
break;
case 502: //Star post
if (mapthings[i].extrainfo)
// Allow thing Parameter to define star post num too!