qzdoom-gpl/wadsrc/static/zscript/shared/fountain.txt

97 lines
1.2 KiB
Text
Raw Normal View History

2017-01-13 18:29:54 +00:00
class ParticleFountain : Actor
{
2017-01-13 18:29:54 +00:00
enum EColor
{
REDFOUNTAIN = 1,
GREENFOUNTAIN = 2,
BLUEFOUNTAIN = 3,
YELLOWFOUNTAIN = 4,
PURPLEFOUNTAIN = 5,
BLACKFOUNTAIN = 6,
WHITEFOUNTAIN = 7
}
default
{
Height 0;
+NOBLOCKMAP
+NOGRAVITY
+INVISIBLE
}
2017-01-13 18:29:54 +00:00
override void PostBeginPlay ()
{
Super.PostBeginPlay ();
if (!(SpawnFlags & MTF_DORMANT))
Activate (null);
}
override void Activate (Actor activator)
{
Super.Activate (activator);
fountaincolor = health;
}
override void Deactivate (Actor activator)
{
Super.Deactivate (activator);
fountaincolor = 0;
}
}
class RedParticleFountain : ParticleFountain
{
default
{
2017-01-13 18:29:54 +00:00
Health REDFOUNTAIN;
}
}
class GreenParticleFountain : ParticleFountain
{
default
{
2017-01-13 18:29:54 +00:00
Health GREENFOUNTAIN;
}
}
class BlueParticleFountain : ParticleFountain
{
default
{
2017-01-13 18:29:54 +00:00
Health BLUEFOUNTAIN;
}
}
class YellowParticleFountain : ParticleFountain
{
default
{
2017-01-13 18:29:54 +00:00
Health YELLOWFOUNTAIN;
}
}
class PurpleParticleFountain : ParticleFountain
{
default
{
2017-01-13 18:29:54 +00:00
Health PURPLEFOUNTAIN;
}
}
class BlackParticleFountain : ParticleFountain
{
default
{
2017-01-13 18:29:54 +00:00
Health BLACKFOUNTAIN;
}
}
class WhiteParticleFountain : ParticleFountain
{
default
{
2017-01-13 18:29:54 +00:00
Health WHITEFOUNTAIN;
}
}