Advertisement
Guest User

constants.txt

a guest
Oct 12th, 2014
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.65 KB | None | 0 0
  1.  
  2. // Flags for A_PainAttack
  3. const int PAF_NOSKULLATTACK = 1;
  4. const int PAF_AIMFACING = 2;
  5. const int PAF_NOTARGET = 4;
  6.  
  7. // Flags for A_VileAttack
  8. const int VAF_DMGTYPEAPPLYTODIRECT = 1;
  9.  
  10. // Flags for A_Saw
  11. const int SF_NORANDOM = 1;
  12. const int SF_RANDOMLIGHTMISS = 2;
  13. const int SF_RANDOMLIGHTHIT = 4;
  14. const int SF_RANDOMLIGHTBOTH = 6;
  15. const int SF_NOUSEAMMOMISS = 8;
  16. const int SF_NOUSEAMMO = 16;
  17. const int SF_NOPULLIN = 32;
  18. const int SF_NOTURN = 64;
  19.  
  20. // Flags for A_CustomMissile
  21. const int CMF_AIMOFFSET = 1;
  22. const int CMF_AIMDIRECTION = 2;
  23. const int CMF_TRACKOWNER = 4;
  24. const int CMF_CHECKTARGETDEAD = 8;
  25. const int CMF_ABSOLUTEPITCH = 16;
  26. const int CMF_OFFSETPITCH = 32;
  27. const int CMF_SAVEPITCH = 64;
  28. const int CMF_ABSOLUTEANGLE = 128;
  29.  
  30. // Flags for A_CustomBulletAttack
  31. const int CBAF_AIMFACING = 1;
  32. const int CBAF_NORANDOM = 2;
  33. const int CBAF_EXPLICITANGLE = 4;
  34. const int CBAF_NOPITCH = 8;
  35. const int CBAF_NORANDOMPUFFZ = 16;
  36.  
  37. // Flags for A_GunFlash
  38. const int GFF_NOEXTCHANGE = 1;
  39.  
  40. // Flags for A_FireBullets
  41. const int FBF_USEAMMO = 1;
  42. const int FBF_NORANDOM = 2;
  43. const int FBF_EXPLICITANGLE = 4;
  44. const int FBF_NOPITCH = 8;
  45. const int FBF_NOFLASH = 16;
  46. const int FBF_NORANDOMPUFFZ = 32;
  47.  
  48. // Flags for A_SpawnItemEx
  49. const int SXF_TRANSFERTRANSLATION = 1 << 0;
  50. const int SXF_ABSOLUTEPOSITION = 1 << 1;
  51. const int SXF_ABSOLUTEANGLE = 1 << 2;
  52. const int SXF_ABSOLUTEMOMENTUM = 1 << 3; //Since "momentum" is declared to be deprecated in the expressions, for compatibility
  53. const int SXF_ABSOLUTEVELOCITY = 1 << 3; //purposes, this was made. It does the same thing though. Do not change the value.
  54. const int SXF_SETMASTER = 1 << 4;
  55. const int SXF_NOCHECKPOSITION = 1 << 5;
  56. const int SXF_TELEFRAG = 1 << 6;
  57. const int SXF_CLIENTSIDE = 1 << 7; // only used by Skulltag
  58. const int SXF_TRANSFERAMBUSHFLAG = 1 << 8;
  59. const int SXF_TRANSFERPITCH = 1 << 9;
  60. const int SXF_TRANSFERPOINTERS = 1 << 10;
  61. const int SXF_USEBLOODCOLOR = 1 << 11;
  62. const int SXF_CLEARCALLERTID = 1 << 12;
  63. const int SXF_MULTIPLYSPEED = 1 << 13;
  64. const int SXF_TRANSFERSCALE = 1 << 14;
  65. const int SXF_TRANSFERSPECIAL = 1 << 15;
  66. const int SXF_CLEARCALLERSPECIAL = 1 << 16;
  67. const int SXF_TRANSFERSTENCILCOL = 1 << 17;
  68. const int SXF_TRANSFERALPHA = 1 << 18;
  69. const int SXF_TRANSFERRENDERSTYLE = 1 << 19;
  70. const int SXF_SETTARGET = 1 << 20;
  71. const int SXF_SETTRACER = 1 << 21;
  72. const int SXF_NOPOINTERS = 1 << 22;
  73.  
  74. // Flags for A_Chase
  75. const int CHF_FASTCHASE = 1;
  76. const int CHF_NOPLAYACTIVE = 2;
  77. const int CHF_NIGHTMAREFAST = 4;
  78. const int CHF_RESURRECT = 8;
  79. const int CHF_DONTMOVE = 16;
  80.  
  81. // Flags for A_LookEx
  82. const int LOF_NOSIGHTCHECK = 1;
  83. const int LOF_NOSOUNDCHECK = 2;
  84. const int LOF_DONTCHASEGOAL = 4;
  85. const int LOF_NOSEESOUND = 8;
  86. const int LOF_FULLVOLSEESOUND = 16;
  87. const int LOF_NOJUMP = 32;
  88.  
  89. // Flags for A_Respawn
  90. const int RSF_FOG = 1;
  91. const int RSF_KEEPTARGET = 2;
  92. const int RSF_TELEFRAG = 4;
  93.  
  94. // Flags for A_JumpIfTargetInLOS and A_JumpIfInTargetLOS
  95. const int JLOSF_PROJECTILE = 1;
  96. const int JLOSF_NOSIGHT = 2;
  97. const int JLOSF_CLOSENOFOV = 4;
  98. const int JLOSF_CLOSENOSIGHT = 8;
  99. const int JLOSF_CLOSENOJUMP = 16;
  100. const int JLOSF_DEADNOJUMP = 32;
  101. const int JLOSF_CHECKMASTER = 64;
  102. const int JLOSF_TARGETLOS = 128;
  103. const int JLOSF_FLIPFOV = 256;
  104. const int JLOSF_ALLYNOJUMP = 512;
  105. const int JLOSF_COMBATANTONLY = 1024;
  106. const int JLOSF_NOAUTOAIM = 2048;
  107.  
  108. // Flags for A_ChangeVelocity
  109. const int CVF_RELATIVE = 1;
  110. const int CVF_REPLACE = 2;
  111.  
  112. // Flags for A_WeaponReady
  113. const int WRF_NOBOB = 1;
  114. const int WRF_NOSWITCH = 2;
  115. const int WRF_NOPRIMARY = 4;
  116. const int WRF_NOSECONDARY = 8;
  117. const int WRF_NOFIRE = WRF_NOPRIMARY | WRF_NOSECONDARY;
  118. const int WRF_ALLOWRELOAD = 16;
  119. const int WRF_ALLOWZOOM = 32;
  120. const int WRF_DISABLESWITCH = 64;
  121.  
  122. // Morph constants
  123. const int MRF_ADDSTAMINA = 1;
  124. const int MRF_FULLHEALTH = 2;
  125. const int MRF_UNDOBYTOMEOFPOWER = 4;
  126. const int MRF_UNDOBYCHAOSDEVICE = 8;
  127. const int MRF_FAILNOTELEFRAG = 16;
  128. const int MRF_FAILNOLAUGH = 32;
  129. const int MRF_WHENINVULNERABLE = 64;
  130. const int MRF_LOSEACTUALWEAPON = 128;
  131. const int MRF_NEWTIDBEHAVIOUR = 256;
  132. const int MRF_UNDOBYDEATH = 512;
  133. const int MRF_UNDOBYDEATHFORCED = 1024;
  134. const int MRF_UNDOBYDEATHSAVES = 2048;
  135.  
  136. // Flags for A_RailAttack and A_CustomRailgun
  137. const int RGF_SILENT = 1;
  138. const int RGF_NOPIERCING = 2;
  139. const int RGF_EXPLICITANGLE = 4;
  140. const int RGF_FULLBRIGHT = 8;
  141. const int RGF_CENTERZ = 16;
  142.  
  143. // Flags for A_Mushroom
  144. const int MSF_Standard = 0;
  145. const int MSF_Classic = 1;
  146. const int MSF_DontHurt = 2;
  147.  
  148. // Flags for A_Explode
  149. const int XF_HURTSOURCE = 1;
  150. const int XF_NOTMISSILE = 4;
  151.  
  152. // Flags for A_RadiusThrust
  153. const int RTF_AFFECTSOURCE = 1;
  154. const int RTF_NOIMPACTDAMAGE = 2;
  155. const int RTF_NOTMISSILE = 4;
  156.  
  157. // Flags for A_Blast
  158. const int BF_USEAMMO = 1;
  159. const int BF_DONTWARN = 2;
  160. const int BF_AFFECTBOSSES = 4;
  161. const int BF_NOIMPACTDAMAGE = 8;
  162.  
  163. // Flags for A_SeekerMissile
  164. const int SMF_LOOK = 1;
  165. const int SMF_PRECISE = 2;
  166. const int SMF_CURSPEED = 4;
  167.  
  168. // Flags for A_CustomPunch
  169. const int CPF_USEAMMO = 1;
  170. const int CPF_DAGGER = 2;
  171. const int CPF_PULLIN = 4;
  172. const int CPF_NORANDOMPUFFZ = 8;
  173.  
  174. // Flags for A_CustomMissile
  175. const int FPF_AIMATANGLE = 1;
  176. const int FPF_TRANSFERTRANSLATION = 2;
  177.  
  178. // Flags for A_Teleport
  179. const int TF_TELEFRAG = 1;const int TF_RANDOMDECIDE = 2;
  180.  
  181. // Flags for A_WolfAttack
  182. const int WAF_NORANDOM = 1;
  183. const int WAF_USEPUFF = 2;
  184.  
  185. // Flags for A_RadiusGive
  186. enum
  187. {
  188. RGF_GIVESELF = 1,
  189. RGF_PLAYERS = 2,
  190. RGF_MONSTERS = 4,
  191. RGF_OBJECTS = 8,
  192. RGF_VOODOO = 16,
  193. RGF_CORPSES = 32,
  194. RGF_NOTARGET = 64,
  195. RGF_NOTRACER = 128,
  196. RGF_NOMASTER = 256,
  197. RGF_CUBE = 512,
  198. };
  199.  
  200. // Activation flags
  201. enum
  202. {
  203. THINGSPEC_Default = 0,
  204. THINGSPEC_ThingActs = 1,
  205. THINGSPEC_ThingTargets = 2,
  206. THINGSPEC_TriggerTargets = 4,
  207. THINGSPEC_MonsterTrigger = 8,
  208. THINGSPEC_MissileTrigger = 16,
  209. THINGSPEC_ClearSpecial = 32,
  210. THINGSPEC_NoDeathSpecial = 64,
  211. THINGSPEC_TriggerActs = 128,
  212. };
  213. // Shorter aliases for same
  214. const int AF_Default = 0;
  215. const int AF_ThingActs = 1;
  216. const int AF_ThingTargets = 2;
  217. const int AF_TriggerTargets = 4;
  218. const int AF_MonsterTrigger = 8;
  219. const int AF_MissileTrigger = 16;
  220. const int AF_ClearSpecial = 32;
  221. const int AF_NoDeathSpecial = 64;
  222. const int AF_TriggerActs = 128;
  223.  
  224. // Flags for A_TakeInventory and A_TakeFromTarget
  225. const int TIF_NOTAKEINFINITE = 1;
  226.  
  227. // constants for A_PlaySound
  228. enum
  229. {
  230. CHAN_AUTO = 0,
  231. CHAN_WEAPON = 1,
  232. CHAN_VOICE = 2,
  233. CHAN_ITEM = 3,
  234. CHAN_BODY = 4,
  235. CHAN_5 = 5,
  236. CHAN_6 = 6,
  237. CHAN_7 = 7,
  238.  
  239. // modifier flags
  240. CHAN_LISTENERZ = 8,
  241. CHAN_MAYBE_LOCAL = 16,
  242. CHAN_UI = 32,
  243. CHAN_NOPAUSE = 64
  244. };
  245.  
  246. // sound attenuation values
  247. const float ATTN_NONE = 0;
  248. const float ATTN_NORM = 1;
  249. const float ATTN_IDLE = 1.001;
  250. const float ATTN_STATIC = 3;
  251.  
  252. // For SetPlayerProprty action special
  253. Const Int PROP_FROZEN = 0;
  254. Const Int PROP_NOTARGET = 1;
  255. Const Int PROP_INSTANTWEAPONSWITCH = 2;
  256. Const Int PROP_FLY = 3;
  257. Const Int PROP_TOTALLYFROZEN = 4;
  258. Const Int PROP_INVULNERABILITY = 5; // (Deprecated)
  259. Const Int PROP_STRENGTH = 6; // (Deprecated)
  260. Const Int PROP_INVISIBILITY = 7; // (Deprecated)
  261. Const Int PROP_RADIATIONSUIT = 8; // (Deprecated)
  262. Const Int PROP_ALLMAP = 9; // (Deprecated)
  263. Const Int PROP_INFRARED = 10; // (Deprecated)
  264. Const Int PROP_WEAPONLEVEL2 = 11; // (Deprecated)
  265. Const Int PROP_FLIGHT = 12; // (Deprecated)
  266. Const Int PROP_SPEED = 15; // (Deprecated)
  267. Const Int PROP_BUDDHA = 16;
  268.  
  269. // Line_SetBlocking
  270. Const Int BLOCKF_CREATURES = 1;
  271. Const Int BLOCKF_MONSTERS = 2;
  272. Const Int BLOCKF_PLAYERS = 4;
  273. Const Int BLOCKF_FLOATERS = 8;
  274. Const Int BLOCKF_PROJECTILES = 16;
  275. Const Int BLOCKF_EVERYTHING = 32;
  276. Const Int BLOCKF_RAILING = 64;
  277. Const Int BLOCKF_USE = 128;
  278.  
  279. // Pointer constants, bitfield-enabled
  280.  
  281. Const Int AAPTR_DEFAULT = 0;
  282. Const Int AAPTR_NULL = 0x1;
  283. Const Int AAPTR_TARGET = 0x2;
  284. Const Int AAPTR_MASTER = 0x4;
  285. Const Int AAPTR_TRACER = 0x8;
  286.  
  287. Const Int AAPTR_PLAYER_GETTARGET = 0x10;
  288. Const Int AAPTR_PLAYER_GETCONVERSATION = 0x20;
  289.  
  290. Const Int AAPTR_PLAYER1 = 0x40;
  291. Const Int AAPTR_PLAYER2 = 0x80;
  292. Const Int AAPTR_PLAYER3 = 0x100;
  293. Const Int AAPTR_PLAYER4 = 0x200;
  294. Const Int AAPTR_PLAYER5 = 0x400;
  295. Const Int AAPTR_PLAYER6 = 0x800;
  296. Const Int AAPTR_PLAYER7 = 0x1000;
  297. Const Int AAPTR_PLAYER8 = 0x2000;
  298.  
  299. Const Int AAPTR_FRIENDPLAYER = 0x4000;
  300. Const Int AAPTR_LINETARGET = 0x8000;
  301.  
  302. // Pointer operation flags
  303.  
  304. Const Int PTROP_UNSAFETARGET = 1;
  305. Const Int PTROP_UNSAFEMASTER = 2;
  306. Const Int PTROP_NOSAFEGUARDS = PTROP_UNSAFETARGET|PTROP_UNSAFEMASTER;
  307.  
  308.  
  309. // Flags for A_Warp
  310.  
  311. Const Int WARPF_ABSOLUTEOFFSET = 0x1;
  312. Const Int WARPF_ABSOLUTEANGLE = 0x2;
  313. Const Int WARPF_USECALLERANGLE = 0x4;
  314. Const Int WARPF_NOCHECKPOSITION = 0x8;
  315. Const Int WARPF_INTERPOLATE = 0x10;
  316. Const Int WARPF_WARPINTERPOLATION = 0x20;
  317. Const Int WARPF_COPYINTERPOLATION = 0x40;
  318. Const Int WARPF_STOP = 0x80;
  319. Const Int WARPF_TOFLOOR = 0x100;
  320. Const Int WARPF_TESTONLY = 0x200;
  321. Const Int WAPRF_ABSOLUTEPOSITION = 0x400;
  322.  
  323. // flags for A_SetPitch/SetAngle
  324. const int SPF_FORCECLAMP = 1;
  325. const int SPF_INTERPOLATE = 2;
  326.  
  327.  
  328. // flags for A_CheckLOF
  329.  
  330. enum
  331. {
  332. CLOFF_NOAIM_VERT = 0x1,
  333. CLOFF_NOAIM_HORZ = 0x2,
  334.  
  335. CLOFF_JUMPENEMY = 0x4,
  336. CLOFF_JUMPFRIEND = 0x8,
  337. CLOFF_JUMPOBJECT = 0x10,
  338. CLOFF_JUMPNONHOSTILE = 0x20,
  339.  
  340. CLOFF_SKIPENEMY = 0x40,
  341. CLOFF_SKIPFRIEND = 0x80,
  342. CLOFF_SKIPOBJECT = 0x100,
  343. CLOFF_SKIPNONHOSTILE = 0x200,
  344.  
  345. CLOFF_MUSTBESHOOTABLE = 0x400,
  346.  
  347. CLOFF_SKIPTARGET = 0x800,
  348. CLOFF_ALLOWNULL = 0x1000,
  349. CLOFF_CHECKPARTIAL = 0x2000,
  350.  
  351. CLOFF_MUSTBEGHOST = 0x4000,
  352. CLOFF_IGNOREGHOST = 0x8000,
  353.  
  354. CLOFF_MUSTBESOLID = 0x10000,
  355. CLOFF_BEYONDTARGET = 0x20000,
  356.  
  357. CLOFF_FROMBASE = 0x40000,
  358. CLOFF_MUL_HEIGHT = 0x80000,
  359. CLOFF_MUL_WIDTH = 0x100000,
  360.  
  361. CLOFF_JUMP_ON_MISS = 0x200000,
  362. CLOFF_AIM_VERT_NOOFFSET = 0x400000,
  363.  
  364. CLOFF_SKIPOBSTACLES = CLOFF_SKIPENEMY|CLOFF_SKIPFRIEND|CLOFF_SKIPOBJECT|CLOFF_SKIPNONHOSTILE,
  365. CLOFF_NOAIM = CLOFF_NOAIM_VERT|CLOFF_NOAIM_HORZ
  366. };
  367.  
  368. // Flags for A_Kill (Master/Target/Tracer/Children/Siblings) series
  369.  
  370. const int KILS_FOILINVUL = 1;
  371. const int KILS_KILLMISSILES = 2;
  372. const int KILS_NOMONSTERS = 4;
  373.  
  374. // Flags for A_Damage (Master/Target/Tracer/Children/Siblings/Self) series
  375. const int DMSS_FOILINVUL = 1;
  376. const int DMSS_AFFECTARMOR = 2;
  377. const int DMSS_KILL = 4;
  378. const int DMSS_NOFACTOR = 8;
  379.  
  380. // Flags for A_AlertMonsters
  381. const int AMF_TARGETEMITTER = 1;
  382. const int AMF_TARGETNONPLAYER = 2;
  383. const int AMF_EMITFROMTARGET = 4;
  384.  
  385. // Flags for A_Remove*
  386. enum
  387. {
  388. RMVF_MISSILES = 1 << 0,
  389. RMVF_NOMONSTERS = 1 << 1,
  390. RMVF_MISC = 1 << 2,
  391. RMVF_EVERYTHING = 1 << 3
  392. };
  393.  
  394.  
  395. // This is only here to provide one global variable for testing.
  396. native int testglobalvar;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement