2006-12-02 15:38:50 +00:00
|
|
|
|
2011-06-06 13:23:28 +00:00
|
|
|
// Flags for A_PainAttack
|
|
|
|
const int PAF_NOSKULLATTACK = 1;
|
|
|
|
const int PAF_AIMFACING = 2;
|
|
|
|
const int PAF_NOTARGET = 4;
|
|
|
|
|
2010-07-24 06:21:53 +00:00
|
|
|
// Flags for A_Saw
|
|
|
|
const int SF_NORANDOM = 1;
|
|
|
|
const int SF_RANDOMLIGHTMISS = 2;
|
|
|
|
const int SF_RANDOMLIGHTHIT = 4;
|
|
|
|
const int SF_RANDOMLIGHTBOTH = 6;
|
|
|
|
const int SF_NOUSEAMMOMISS = 8;
|
|
|
|
const int SF_NOUSEAMMO = 16;
|
|
|
|
|
2006-11-29 16:20:22 +00:00
|
|
|
// Flags for A_CustomMissile
|
|
|
|
const int CMF_AIMOFFSET = 1;
|
|
|
|
const int CMF_AIMDIRECTION = 2;
|
|
|
|
const int CMF_TRACKOWNER = 4;
|
|
|
|
const int CMF_CHECKTARGETDEAD = 8;
|
2012-04-07 12:36:39 +00:00
|
|
|
const int CMF_ABSOLUTEPITCH = 16;
|
|
|
|
const int CMF_OFFSETPITCH = 32;
|
|
|
|
const int CMF_SAVEPITCH = 64;
|
|
|
|
const int CMF_ABSOLUTEANGLE = 128;
|
2006-11-29 16:20:22 +00:00
|
|
|
|
2010-05-12 07:11:56 +00:00
|
|
|
// Flags for A_CustomBulletAttack
|
|
|
|
const int CBAF_AIMFACING = 1;
|
|
|
|
const int CBAF_NORANDOM = 2;
|
2010-07-24 06:15:07 +00:00
|
|
|
const int CBAF_EXPLICITANGLE = 4;
|
2010-08-13 06:22:49 +00:00
|
|
|
const int CBAF_NOPITCH = 8;
|
2010-05-12 07:11:56 +00:00
|
|
|
|
2011-05-26 23:29:36 +00:00
|
|
|
// Flags for A_GunFlash
|
|
|
|
const int GFF_NOEXTCHANGE = 1;
|
|
|
|
|
2010-05-12 07:11:56 +00:00
|
|
|
// Flags for A_FireBullets
|
|
|
|
const int FBF_USEAMMO = 1;
|
|
|
|
const int FBF_NORANDOM = 2;
|
2010-05-14 02:18:27 +00:00
|
|
|
const int FBF_EXPLICITANGLE = 4;
|
2010-08-13 06:22:49 +00:00
|
|
|
const int FBF_NOPITCH = 8;
|
2010-08-31 21:24:03 +00:00
|
|
|
const int FBF_NOFLASH = 16;
|
2010-05-12 07:11:56 +00:00
|
|
|
|
2006-11-29 16:20:22 +00:00
|
|
|
// Flags for A_SpawnItemEx
|
|
|
|
const int SXF_TRANSFERTRANSLATION=1;
|
|
|
|
const int SXF_ABSOLUTEPOSITION=2;
|
|
|
|
const int SXF_ABSOLUTEANGLE=4;
|
|
|
|
const int SXF_ABSOLUTEMOMENTUM=8;
|
2009-06-30 20:57:51 +00:00
|
|
|
const int SXF_ABSOLUTEVELOCITY=8;
|
2006-11-29 16:20:22 +00:00
|
|
|
const int SXF_SETMASTER=16;
|
2006-12-06 10:38:47 +00:00
|
|
|
const int SXF_NOCHECKPOSITION = 32;
|
2007-09-12 00:20:11 +00:00
|
|
|
const int SXF_TELEFRAG=64;
|
2009-07-23 03:19:31 +00:00
|
|
|
const int SXF_CLIENTSIDE=128; // only used by Skulltag
|
2008-09-22 18:55:29 +00:00
|
|
|
const int SXF_TRANSFERAMBUSHFLAG=256;
|
2009-05-30 08:56:40 +00:00
|
|
|
const int SXF_TRANSFERPITCH=512;
|
2009-06-07 20:10:05 +00:00
|
|
|
const int SXF_TRANSFERPOINTERS=1024;
|
2006-11-29 16:20:22 +00:00
|
|
|
|
2007-01-05 22:08:57 +00:00
|
|
|
// Flags for A_Chase
|
|
|
|
const int CHF_FASTCHASE = 1;
|
|
|
|
const int CHF_NOPLAYACTIVE = 2;
|
|
|
|
const int CHF_NIGHTMAREFAST = 4;
|
|
|
|
const int CHF_RESURRECT = 8;
|
2007-10-29 20:27:40 +00:00
|
|
|
const int CHF_DONTMOVE = 16;
|
2007-01-05 22:08:57 +00:00
|
|
|
|
2007-12-20 20:37:06 +00:00
|
|
|
// Flags for A_LookEx
|
|
|
|
const int LOF_NOSIGHTCHECK = 1;
|
|
|
|
const int LOF_NOSOUNDCHECK = 2;
|
|
|
|
const int LOF_DONTCHASEGOAL = 4;
|
|
|
|
const int LOF_NOSEESOUND = 8;
|
|
|
|
const int LOF_FULLVOLSEESOUND = 16;
|
2011-08-23 02:39:20 +00:00
|
|
|
const int LOF_NOJUMP = 32;
|
2008-09-21 18:02:38 +00:00
|
|
|
|
2009-09-15 21:57:51 +00:00
|
|
|
// Flags for A_Respawn
|
|
|
|
const int RSF_FOG = 1;
|
|
|
|
const int RSF_KEEPTARGET = 2;
|
|
|
|
const int RSF_TELEFRAG = 4;
|
|
|
|
|
2010-07-24 06:30:52 +00:00
|
|
|
// Flags for A_JumpIfTargetInLOS and A_JumpIfInTargetLOS
|
|
|
|
const int JLOSF_PROJECTILE = 1;
|
|
|
|
const int JLOSF_NOSIGHT = 2;
|
|
|
|
const int JLOSF_CLOSENOFOV = 4;
|
|
|
|
const int JLOSF_CLOSENOSIGHT = 8;
|
|
|
|
const int JLOSF_CLOSENOJUMP = 16;
|
|
|
|
const int JLOSF_DEADNOJUMP = 32;
|
|
|
|
const int JLOSF_CHECKMASTER = 64;
|
2011-06-07 23:05:24 +00:00
|
|
|
const int JLOSF_TARGETLOS = 128;
|
|
|
|
const int JLOSF_FLIPFOV = 256;
|
|
|
|
const int JLOSF_ALLYNOJUMP = 512;
|
|
|
|
const int JLOSF_COMBATANTONLY = 1024;
|
2010-07-24 06:30:52 +00:00
|
|
|
|
2009-06-30 21:24:29 +00:00
|
|
|
// Flags for A_ChangeVelocity
|
|
|
|
const int CVF_RELATIVE = 1;
|
|
|
|
const int CVF_REPLACE = 2;
|
|
|
|
|
2009-07-06 15:48:31 +00:00
|
|
|
// Flags for A_WeaponReady
|
2009-07-16 22:40:04 +00:00
|
|
|
const int WRF_NOBOB = 1;
|
|
|
|
const int WRF_NOFIRE = 12;
|
|
|
|
const int WRF_NOSWITCH = 2;
|
|
|
|
const int WRF_NOPRIMARY = 4;
|
|
|
|
const int WRF_NOSECONDARY = 8;
|
2012-04-07 13:07:25 +00:00
|
|
|
const int WRF_ALLOWRELOAD = 16;
|
|
|
|
const int WRF_ALLOWZOOM = 32;
|
2009-07-06 15:48:31 +00:00
|
|
|
|
2008-09-21 18:02:38 +00:00
|
|
|
// Morph constants
|
|
|
|
const int MRF_ADDSTAMINA = 1;
|
|
|
|
const int MRF_FULLHEALTH = 2;
|
|
|
|
const int MRF_UNDOBYTOMEOFPOWER = 4;
|
|
|
|
const int MRF_UNDOBYCHAOSDEVICE = 8;
|
|
|
|
const int MRF_FAILNOTELEFRAG = 16;
|
|
|
|
const int MRF_FAILNOLAUGH = 32;
|
|
|
|
const int MRF_WHENINVULNERABLE = 64;
|
|
|
|
const int MRF_LOSEACTUALWEAPON = 128;
|
|
|
|
const int MRF_NEWTIDBEHAVIOUR = 256;
|
|
|
|
const int MRF_UNDOBYDEATH = 512;
|
|
|
|
const int MRF_UNDOBYDEATHFORCED = 1024;
|
|
|
|
const int MRF_UNDOBYDEATHSAVES = 2048;
|
2008-10-19 21:43:36 +00:00
|
|
|
|
2009-09-17 20:54:07 +00:00
|
|
|
// Flags for A_RailAttack and A_CustomRailgun
|
2009-07-04 18:17:44 +00:00
|
|
|
const int RGF_SILENT = 1;
|
|
|
|
const int RGF_NOPIERCING = 2;
|
2010-07-24 06:27:13 +00:00
|
|
|
const int RGF_EXPLICITANGLE = 4;
|
2012-04-07 12:57:44 +00:00
|
|
|
const int RGF_FULLBRIGHT = 8;
|
2012-06-22 03:56:08 +00:00
|
|
|
const int RGF_CENTERZ = 16;
|
2009-07-04 18:17:44 +00:00
|
|
|
|
2009-09-17 20:54:07 +00:00
|
|
|
// Flags for A_Mushroom
|
|
|
|
const int MSF_Standard = 0;
|
|
|
|
const int MSF_Classic = 1;
|
2010-01-30 14:35:52 +00:00
|
|
|
const int MSF_DontHurt = 2;
|
2009-09-17 20:54:07 +00:00
|
|
|
|
2012-08-30 04:01:50 +00:00
|
|
|
// Flags for A_Explode
|
|
|
|
const int XF_HURTSOURCE = 1;
|
|
|
|
const int XF_NOTMISSILE = 4;
|
|
|
|
|
2012-06-16 09:01:05 +00:00
|
|
|
// Flags for A_RadiusThrust
|
|
|
|
const int RTF_AFFECTSOURCE = 1;
|
|
|
|
const int RTF_NOIMPACTDAMAGE = 2;
|
2012-08-30 04:01:50 +00:00
|
|
|
const int RTF_NOTMISSILE = 4;
|
2012-06-16 09:01:05 +00:00
|
|
|
|
2009-09-28 15:55:57 +00:00
|
|
|
// Flags for A_Blast
|
|
|
|
const int BF_USEAMMO = 1;
|
|
|
|
const int BF_DONTWARN = 2;
|
|
|
|
const int BF_AFFECTBOSSES = 4;
|
2012-06-16 09:01:05 +00:00
|
|
|
const int BF_NOIMPACTDAMAGE = 8;
|
2009-09-28 15:55:57 +00:00
|
|
|
|
2009-10-09 20:54:28 +00:00
|
|
|
// Flags for A_SeekerMissile
|
|
|
|
const int SMF_LOOK = 1;
|
2010-04-10 11:12:29 +00:00
|
|
|
const int SMF_PRECISE = 2;
|
2011-11-24 04:27:47 +00:00
|
|
|
const int SMF_CURSPEED = 4;
|
2009-10-09 20:54:28 +00:00
|
|
|
|
2010-06-13 09:06:12 +00:00
|
|
|
// Flags for A_CustomPunch
|
|
|
|
const int CPF_USEAMMO = 1;
|
|
|
|
const int CPF_DAGGER = 2;
|
|
|
|
const int CPF_PULLIN = 4;
|
|
|
|
|
2010-07-23 21:55:01 +00:00
|
|
|
// Flags for A_Teleport
|
|
|
|
const int TF_TELEFRAG = 1;
|
|
|
|
const int TF_RANDOMDECIDE = 2;
|
|
|
|
|
2011-05-09 22:10:20 +00:00
|
|
|
// Flags for A_WolfAttack
|
|
|
|
const int WAF_NORANDOM = 1;
|
|
|
|
const int WAF_USEPUFF = 2;
|
|
|
|
|
2012-03-30 04:28:10 +00:00
|
|
|
// Flags for A_RadiusGive
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
RGF_GIVESELF = 1,
|
|
|
|
RGF_PLAYERS = 2,
|
|
|
|
RGF_MONSTERS = 4,
|
|
|
|
RGF_OBJECTS = 8,
|
|
|
|
RGF_VOODOO = 16,
|
|
|
|
RGF_CORPSES = 32,
|
|
|
|
RGF_NOTARGET = 64,
|
|
|
|
RGF_NOTRACER = 128,
|
|
|
|
RGF_NOMASTER = 256,
|
|
|
|
RGF_CUBE = 512,
|
|
|
|
};
|
|
|
|
|
2009-09-17 20:54:07 +00:00
|
|
|
// Activation flags
|
2009-09-15 14:16:55 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
THINGSPEC_Default = 0,
|
|
|
|
THINGSPEC_ThingActs = 1,
|
|
|
|
THINGSPEC_ThingTargets = 2,
|
|
|
|
THINGSPEC_TriggerTargets = 4,
|
|
|
|
THINGSPEC_MonsterTrigger = 8,
|
|
|
|
THINGSPEC_MissileTrigger = 16,
|
|
|
|
THINGSPEC_ClearSpecial = 32,
|
2009-09-28 15:59:20 +00:00
|
|
|
THINGSPEC_NoDeathSpecial = 64,
|
|
|
|
THINGSPEC_TriggerActs = 128,
|
2009-09-15 14:16:55 +00:00
|
|
|
};
|
2009-09-28 15:55:57 +00:00
|
|
|
// Shorter aliases for same
|
|
|
|
const int AF_Default = 0;
|
|
|
|
const int AF_ThingActs = 1;
|
|
|
|
const int AF_ThingTargets = 2;
|
|
|
|
const int AF_TriggerTargets = 4;
|
|
|
|
const int AF_MonsterTrigger = 8;
|
|
|
|
const int AF_MissileTrigger = 16;
|
|
|
|
const int AF_ClearSpecial = 32;
|
2009-10-09 20:54:28 +00:00
|
|
|
const int AF_NoDeathSpecial = 64;
|
|
|
|
const int AF_TriggerActs = 128;
|
2009-09-15 14:16:55 +00:00
|
|
|
|
2010-04-26 02:05:11 +00:00
|
|
|
// Flags for A_TakeInventory and A_TakeFromTarget
|
|
|
|
const int TIF_NOTAKEINFINITE = 1;
|
|
|
|
|
2009-04-14 09:06:03 +00:00
|
|
|
// constants for A_PlaySound
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
CHAN_AUTO = 0,
|
|
|
|
CHAN_WEAPON = 1,
|
|
|
|
CHAN_VOICE = 2,
|
|
|
|
CHAN_ITEM = 3,
|
|
|
|
CHAN_BODY = 4,
|
|
|
|
|
|
|
|
// modifier flags
|
|
|
|
CHAN_LISTENERZ = 8,
|
|
|
|
CHAN_MAYBE_LOCAL = 16,
|
|
|
|
CHAN_UI = 32,
|
|
|
|
CHAN_NOPAUSE = 64
|
|
|
|
};
|
|
|
|
|
|
|
|
// sound attenuation values
|
|
|
|
const float ATTN_NONE = 0;
|
|
|
|
const float ATTN_NORM = 1;
|
|
|
|
const float ATTN_IDLE = 1.001;
|
|
|
|
const float ATTN_STATIC = 3;
|
|
|
|
|
2010-09-27 05:49:56 +00:00
|
|
|
// For SetPlayerProprty action special
|
|
|
|
Const Int PROP_FROZEN = 0;
|
|
|
|
Const Int PROP_NOTARGET = 1;
|
|
|
|
Const Int PROP_INSTANTWEAPONSWITCH = 2;
|
|
|
|
Const Int PROP_FLY = 3;
|
|
|
|
Const Int PROP_TOTALLYFROZEN = 4;
|
|
|
|
Const Int PROP_INVULNERABILITY = 5; // (Deprecated)
|
|
|
|
Const Int PROP_STRENGTH = 6; // (Deprecated)
|
|
|
|
Const Int PROP_INVISIBILITY = 7; // (Deprecated)
|
|
|
|
Const Int PROP_RADIATIONSUIT = 8; // (Deprecated)
|
|
|
|
Const Int PROP_ALLMAP = 9; // (Deprecated)
|
|
|
|
Const Int PROP_INFRARED = 10; // (Deprecated)
|
|
|
|
Const Int PROP_WEAPONLEVEL2 = 11; // (Deprecated)
|
|
|
|
Const Int PROP_FLIGHT = 12; // (Deprecated)
|
|
|
|
Const Int PROP_SPEED = 15; // (Deprecated)
|
|
|
|
Const Int PROP_BUDDHA = 16;
|
|
|
|
|
|
|
|
// Line_SetBlocking
|
|
|
|
Const Int BLOCKF_CREATURES = 1;
|
|
|
|
Const Int BLOCKF_MONSTERS = 2;
|
|
|
|
Const Int BLOCKF_PLAYERS = 4;
|
|
|
|
Const Int BLOCKF_FLOATERS = 8;
|
|
|
|
Const Int BLOCKF_PROJECTILES = 16;
|
|
|
|
Const Int BLOCKF_EVERYTHING = 32;
|
|
|
|
Const Int BLOCKF_RAILING = 64;
|
|
|
|
Const Int BLOCKF_USE = 128;
|
|
|
|
|
2011-03-18 08:02:23 +00:00
|
|
|
// Pointer constants, bitfield-enabled
|
|
|
|
|
|
|
|
Const Int AAPTR_DEFAULT = 0;
|
|
|
|
Const Int AAPTR_NULL = 1;
|
|
|
|
Const Int AAPTR_TARGET = 2;
|
|
|
|
Const Int AAPTR_MASTER = 4;
|
|
|
|
Const Int AAPTR_TRACER = 8;
|
|
|
|
|
2011-06-07 23:05:24 +00:00
|
|
|
Const Int AAPTR_PLAYER_GETTARGET = 16;
|
|
|
|
Const Int AAPTR_PLAYER_GETCONVERSATION = 32;
|
|
|
|
|
|
|
|
Const Int AAPTR_PLAYER1 = 64;
|
|
|
|
Const Int AAPTR_PLAYER2 = 128;
|
|
|
|
Const Int AAPTR_PLAYER3 = 256;
|
|
|
|
Const Int AAPTR_PLAYER4 = 512;
|
|
|
|
Const Int AAPTR_PLAYER5 = 1024;
|
|
|
|
Const Int AAPTR_PLAYER6 = 2048;
|
|
|
|
Const Int AAPTR_PLAYER7 = 4096;
|
|
|
|
Const Int AAPTR_PLAYER8 = 8192;
|
|
|
|
|
|
|
|
Const Int AAPTR_FRIENDPLAYER = 16384;
|
|
|
|
|
2011-03-18 08:02:23 +00:00
|
|
|
// Pointer operation flags
|
|
|
|
|
|
|
|
Const Int PTROP_UNSAFETARGET = 1;
|
|
|
|
Const Int PTROP_UNSAFEMASTER = 2;
|
|
|
|
Const Int PTROP_NOSAFEGUARDS = PTROP_UNSAFETARGET|PTROP_UNSAFEMASTER;
|
|
|
|
|
2010-09-27 05:49:56 +00:00
|
|
|
|
2011-06-14 22:45:42 +00:00
|
|
|
// Flags for A_Warp
|
|
|
|
|
|
|
|
Const Int WARPF_ABSOLUTEOFFSET = 0x1;
|
|
|
|
Const Int WARPF_ABSOLUTEANGLE = 0x2;
|
|
|
|
Const Int WARPF_USECALLERANGLE = 0x4;
|
|
|
|
Const Int WARPF_NOCHECKPOSITION = 0x8;
|
|
|
|
Const Int WARPF_INTERPOLATE = 0x10;
|
|
|
|
Const Int WARPF_WARPINTERPOLATION = 0x20;
|
|
|
|
Const Int WARPF_COPYINTERPOLATION = 0x40;
|
|
|
|
Const Int WARPF_STOP = 0x80;
|
|
|
|
Const Int WARPF_TOFLOOR = 0x100;
|
|
|
|
Const Int WARPF_TESTONLY = 0x200;
|
2009-04-14 09:06:03 +00:00
|
|
|
|
2011-12-06 01:25:37 +00:00
|
|
|
// flags for A_SetPitch
|
|
|
|
const int SPF_FORCECLAMP = 1;
|
|
|
|
|
2008-10-19 21:43:36 +00:00
|
|
|
// This is only here to provide one global variable for testing.
|
|
|
|
native int testglobalvar;
|