- made GetDeathHeight a virtual scripted function.
- made GetGibHealth a virtual scripted function. - removed a few more native meta properties.
This commit is contained in:
parent
d5250d6b9f
commit
851984efe0
14 changed files with 80 additions and 115 deletions
|
|
@ -411,23 +411,11 @@ void AActor::Die (AActor *source, AActor *inflictor, int dmgflags)
|
|||
}
|
||||
flags6 |= MF6_KILLED;
|
||||
|
||||
// [RH] Allow the death height to be overridden using metadata.
|
||||
double metaheight = -1;
|
||||
if (DamageType == NAME_Fire)
|
||||
IFVIRTUAL(AActor, GetDeathHeight)
|
||||
{
|
||||
metaheight = GetClass()->BurnHeight;
|
||||
}
|
||||
if (metaheight < 0)
|
||||
{
|
||||
metaheight = GetClass()->DeathHeight;
|
||||
}
|
||||
if (metaheight < 0)
|
||||
{
|
||||
Height *= 0.25;
|
||||
}
|
||||
else
|
||||
{
|
||||
Height = MAX<double> (metaheight, 0);
|
||||
VMValue params[] = { (DObject*)this };
|
||||
VMReturn ret(&Height);
|
||||
GlobalVMStack.Call(func, params, 1, &ret, 1);
|
||||
}
|
||||
|
||||
// [RH] If the thing has a special, execute and remove it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue