2016-03-01 15:47:10 +00:00
|
|
|
|
2016-10-14 08:46:15 +00:00
|
|
|
class SectorAction : Actor native
|
2016-03-01 15:47:10 +00:00
|
|
|
{
|
2017-01-13 00:06:37 +00:00
|
|
|
// this class uses health to define the activation type.
|
|
|
|
enum EActivation
|
|
|
|
{
|
|
|
|
SECSPAC_Enter = 1,
|
|
|
|
SECSPAC_Exit = 2,
|
|
|
|
SECSPAC_HitFloor = 4,
|
|
|
|
SECSPAC_HitCeiling = 8,
|
|
|
|
SECSPAC_Use = 16,
|
|
|
|
SECSPAC_UseWall = 32,
|
|
|
|
SECSPAC_EyesDive = 64,
|
|
|
|
SECSPAC_EyesSurface = 128,
|
|
|
|
SECSPAC_EyesBelowC = 256,
|
|
|
|
SECSPAC_EyesAboveC = 512,
|
|
|
|
SECSPAC_HitFakeFloor= 1024,
|
|
|
|
};
|
|
|
|
|
2016-10-14 08:46:15 +00:00
|
|
|
default
|
|
|
|
{
|
|
|
|
+NOBLOCKMAP
|
|
|
|
+NOSECTOR
|
|
|
|
+NOGRAVITY
|
|
|
|
+DONTSPLASH
|
|
|
|
}
|
2016-03-01 15:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Triggered when entering sector -------------------------------------------
|
|
|
|
|
2017-01-13 00:06:37 +00:00
|
|
|
class SecActEnter : SectorAction
|
2016-03-01 15:47:10 +00:00
|
|
|
{
|
2017-01-13 00:06:37 +00:00
|
|
|
Default
|
|
|
|
{
|
|
|
|
Health SECSPAC_Enter;
|
|
|
|
}
|
2016-03-01 15:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Triggered when leaving sector --------------------------------------------
|
|
|
|
|
2017-01-13 00:06:37 +00:00
|
|
|
class SecActExit : SectorAction
|
2016-03-01 15:47:10 +00:00
|
|
|
{
|
2017-01-13 00:06:37 +00:00
|
|
|
Default
|
|
|
|
{
|
|
|
|
Health SECSPAC_Exit;
|
|
|
|
}
|
2016-03-01 15:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Triggered when hitting sector's floor ------------------------------------
|
|
|
|
|
2017-01-13 00:06:37 +00:00
|
|
|
class SecActHitFloor : SectorAction
|
2016-03-01 15:47:10 +00:00
|
|
|
{
|
2017-01-13 00:06:37 +00:00
|
|
|
Default
|
|
|
|
{
|
|
|
|
Health SECSPAC_HitFloor;
|
|
|
|
}
|
2016-03-01 15:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Triggered when hitting sector's ceiling ----------------------------------
|
|
|
|
|
2017-01-13 00:06:37 +00:00
|
|
|
class SecActHitCeil : SectorAction
|
2016-03-01 15:47:10 +00:00
|
|
|
{
|
2017-01-13 00:06:37 +00:00
|
|
|
Default
|
|
|
|
{
|
|
|
|
Health SECSPAC_HitCeiling;
|
|
|
|
}
|
2016-03-01 15:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Triggered when using inside sector ---------------------------------------
|
|
|
|
|
2017-01-13 00:06:37 +00:00
|
|
|
class SecActUse : SectorAction
|
2016-03-01 15:47:10 +00:00
|
|
|
{
|
2017-01-13 00:06:37 +00:00
|
|
|
Default
|
|
|
|
{
|
|
|
|
Health SECSPAC_Use;
|
|
|
|
}
|
2016-03-01 15:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Triggered when using a sector's wall -------------------------------------
|
|
|
|
|
2017-01-13 00:06:37 +00:00
|
|
|
class SecActUseWall : SectorAction
|
2016-03-01 15:47:10 +00:00
|
|
|
{
|
2017-01-13 00:06:37 +00:00
|
|
|
Default
|
|
|
|
{
|
|
|
|
Health SECSPAC_UseWall;
|
|
|
|
}
|
2016-03-01 15:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Triggered when eyes go below fake floor ----------------------------------
|
|
|
|
|
2017-01-13 00:06:37 +00:00
|
|
|
class SecActEyesDive : SectorAction
|
2016-03-01 15:47:10 +00:00
|
|
|
{
|
2017-01-13 00:06:37 +00:00
|
|
|
Default
|
|
|
|
{
|
|
|
|
Health SECSPAC_EyesDive;
|
|
|
|
}
|
2016-03-01 15:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Triggered when eyes go above fake floor ----------------------------------
|
|
|
|
|
2017-01-13 00:06:37 +00:00
|
|
|
class SecActEyesSurface : SectorAction
|
2016-03-01 15:47:10 +00:00
|
|
|
{
|
2017-01-13 00:06:37 +00:00
|
|
|
Default
|
|
|
|
{
|
|
|
|
Health SECSPAC_EyesSurface;
|
|
|
|
}
|
2016-03-01 15:47:10 +00:00
|
|
|
}
|
|
|
|
|
2017-01-13 00:06:37 +00:00
|
|
|
// Triggered when eyes go below fake ceiling ----------------------------------
|
2016-03-01 15:47:10 +00:00
|
|
|
|
2017-01-13 00:06:37 +00:00
|
|
|
class SecActEyesBelowC : SectorAction
|
2016-03-01 15:47:10 +00:00
|
|
|
{
|
2017-01-13 00:06:37 +00:00
|
|
|
Default
|
|
|
|
{
|
|
|
|
Health SECSPAC_EyesBelowC;
|
|
|
|
}
|
2016-03-01 15:47:10 +00:00
|
|
|
}
|
|
|
|
|
2017-01-13 00:06:37 +00:00
|
|
|
// Triggered when eyes go above fake ceiling ----------------------------------
|
2016-03-01 15:47:10 +00:00
|
|
|
|
2017-01-13 00:06:37 +00:00
|
|
|
class SecActEyesAboveC : SectorAction
|
2016-03-01 15:47:10 +00:00
|
|
|
{
|
2017-01-13 00:06:37 +00:00
|
|
|
Default
|
|
|
|
{
|
|
|
|
Health SECSPAC_EyesAboveC;
|
|
|
|
}
|
2016-03-01 15:47:10 +00:00
|
|
|
}
|
|
|
|
|
2017-01-13 00:06:37 +00:00
|
|
|
// Triggered when hitting fake floor ----------------------------------
|
2016-03-01 15:47:10 +00:00
|
|
|
|
2017-01-13 00:06:37 +00:00
|
|
|
class SecActHitFakeFloor : SectorAction
|
2016-03-01 15:47:10 +00:00
|
|
|
{
|
2017-01-13 00:06:37 +00:00
|
|
|
Default
|
|
|
|
{
|
|
|
|
Health SECSPAC_HitFakeFloor;
|
|
|
|
}
|
2016-03-01 15:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Music changer ----------------------------------
|
|
|
|
|
2016-10-14 08:46:15 +00:00
|
|
|
class MusicChanger : SectorAction native
|
2016-03-01 15:47:10 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|