mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- scriptified the SectorFlagSetter.
This commit is contained in:
parent
fb3bde0e0d
commit
0cd6cec531
2 changed files with 7 additions and 16 deletions
|
@ -177,18 +177,3 @@ void ASectorSilencer::Destroy ()
|
||||||
Super::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];
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -193,7 +193,7 @@ class RandomSpawner : Actor native
|
||||||
|
|
||||||
// Sector flag setter ------------------------------------------------------
|
// Sector flag setter ------------------------------------------------------
|
||||||
|
|
||||||
class SectorFlagSetter : Actor native
|
class SectorFlagSetter : Actor
|
||||||
{
|
{
|
||||||
Default
|
Default
|
||||||
{
|
{
|
||||||
|
@ -202,6 +202,12 @@ class SectorFlagSetter : Actor native
|
||||||
+DONTSPLASH
|
+DONTSPLASH
|
||||||
RenderStyle "None";
|
RenderStyle "None";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override void BeginPlay ()
|
||||||
|
{
|
||||||
|
Super.BeginPlay ();
|
||||||
|
CurSector.Flags |= args[0];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Marker for sounds : Actor -------------------------------------------------------
|
// Marker for sounds : Actor -------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue