Code: Select all
void APainElemental::Tick ()
{
// [RH] Give the pain elemental vertical friction
if (flags & MF_FLOAT)
{
if (abs (momz) < FRACUNIT/4)
{
momz = 0;
}
else
{
momz = FixedMul (momz, 0xe800);
}
}
Super::Tick ();
}

Code: Select all
void APainElemental::Tick ()
{
// [RH] Give the pain elemental vertical friction
if (flags & MF_FLOAT)
{
if (abs (momz) < FRACUNIT/4)
{
momz = 0;
}
else
{
momz = FixedMul (momz, 0xe800);
}
}
Super::Tick ();
}
Code: Select all
April 9, 2002
- Added code to make the pain elemental move down if it's too close to the ceiling to successfully launch a lost soul.