- scriptified the SectorFlagSetter.

This commit is contained in:
Christoph Oelckers 2016-11-30 01:49:36 +01:00
parent fb3bde0e0d
commit 0cd6cec531
2 changed files with 7 additions and 16 deletions

View file

@ -177,18 +177,3 @@ void ASectorSilencer::Destroy ()
Super::Destroy ();
}
class ASectorFlagSetter : public AActor
{
DECLARE_CLASS (ASectorFlagSetter, AActor)
public:
void BeginPlay ();
};
IMPLEMENT_CLASS(ASectorFlagSetter, false, false)
void ASectorFlagSetter::BeginPlay ()
{
Super::BeginPlay ();
Sector->Flags |= args[0];
}

View file

@ -193,7 +193,7 @@ class RandomSpawner : Actor native
// Sector flag setter ------------------------------------------------------
class SectorFlagSetter : Actor native
class SectorFlagSetter : Actor
{
Default
{
@ -202,6 +202,12 @@ class SectorFlagSetter : Actor native
+DONTSPLASH
RenderStyle "None";
}
override void BeginPlay ()
{
Super.BeginPlay ();
CurSector.Flags |= args[0];
}
}
// Marker for sounds : Actor -------------------------------------------------------