More editing flags

PSX-inspired flags to change the render styles of monsters (and other
things).
This commit is contained in:
Gaerzi 2014-04-10 12:32:23 +02:00
commit 580094a792
7 changed files with 79 additions and 2 deletions

View file

@ -4022,6 +4022,24 @@ void AActor::HandleSpawnFlags ()
RenderStyle = STYLE_Translucent;
alpha = TRANSLUC25;
}
else if (SpawnFlags & MTF_TRANS)
{
RenderStyle = STYLE_Translucent;
alpha = TRANSLUC50;
}
else if (SpawnFlags & MTF_ADD)
{
RenderStyle = STYLE_Add;
}
else if (SpawnFlags & MTF_SUBTRACT)
{
RenderStyle = STYLE_Subtract;
}
else if (SpawnFlags & MTF_SPECTRE)
{
RenderStyle = STYLE_Add;
alpha = TRANSLUC25;
}
else if (SpawnFlags & MTF_ALTSHADOW)
{
RenderStyle = STYLE_None;
@ -4035,6 +4053,10 @@ void AActor::HandleSpawnFlags ()
level.total_secrets++;
}
}
if (SpawnFlags & MTF_DOUBLEHEALTH)
{
health *= 2;
}
}
void AActor::BeginPlay ()