Adapt SDURF and Puma to UDMF

This commit is contained in:
MascaraSnake 2021-12-21 17:26:55 +01:00
parent 3205b6d83a
commit bfcbf5136b
3 changed files with 20 additions and 4 deletions

View file

@ -3596,6 +3596,10 @@ udmf
sprite = "FISHA0";
width = 8;
height = 28;
arg0
{
title = "Jump strength";
}
}
103
{
@ -6468,6 +6472,10 @@ udmf
sprite = "PUMAA0";
width = 8;
height = 16;
arg0
{
title = "Jump strength";
}
}
1806
{

View file

@ -4803,12 +4803,16 @@ void A_FishJump(mobj_t *actor)
fixed_t jumpval;
if (locvar1)
jumpval = var1;
jumpval = locvar1;
else
jumpval = FixedMul(AngleFixed(actor->angle)/4, actor->scale);
{
if (actor->spawnpoint && actor->spawnpoint->args[0])
jumpval = actor->spawnpoint->args[0];
else
jumpval = 44;
}
if (!jumpval) jumpval = FixedMul(44*(FRACUNIT/4), actor->scale);
actor->momz = jumpval;
actor->momz = FixedMul(jumpval << (FRACBITS - 2), actor->scale);
P_SetMobjStateNF(actor, actor->info->seestate);
}

View file

@ -4879,6 +4879,10 @@ static void P_ConvertBinaryMap(void)
switch (mapthings[i].type)
{
case 102: //SDURF
case 1805: //Puma
mapthings[i].args[0] = mapthings[i].angle;
break;
case 110: //THZ Turret
mapthings[i].args[0] = LE_TURRET;
break;