Commit graph

219 commits

Author SHA1 Message Date
fdari
54925aed4b IsPointerEqual(int aaptr1, int aaptr2, int tid1 = 0, int tid2 = 0) 2014-09-28 12:04:22 +02:00
GitExl
1653d6f3cb Add linedef flags for PickActor. 2014-09-23 11:29:26 +02:00
GitExl
d269c1fcc8 Add actor flags for PickActor. 2014-09-21 16:44:32 +02:00
GitExl
4b3c23f645 Add PickActor function 2014-09-21 16:42:46 +02:00
Christoph Oelckers
49d5cadf5f Merge branch 'master' of https://github.com/MajorCooke/acc 2014-09-20 08:30:29 +02:00
MajorCooke
179bab2916 - Include with DropInventory with Blue Shadow's patch. 2014-09-19 19:57:02 -05:00
Christoph Oelckers
bae4cac3dd Ceiling_CrushAndRaiseSilentDist 2014-08-21 12:27:40 +02:00
Christoph Oelckers
a7d7f2bdb6 - new armor info type. 2014-08-11 10:09:30 +02:00
Christoph Oelckers
447be2c372 Merge branch 'master' of https://github.com/rheit/acc 2014-08-08 09:26:27 +02:00
Christoph Oelckers
4713d79e01 - BlueShadow's GetArmorInfo submission. 2014-08-08 09:26:08 +02:00
Randy Heit
93b84fe5f2 Fixed: scriptarray[i] += x generated &= x instead 2014-07-28 19:52:33 -05:00
Randy Heit
b213a5bae8 Add PCD_GOTOSTACK
- It's not used. It's just there as a placeholder.
2014-07-25 18:10:50 -05:00
Randy Heit
1bdfee548b Remove dead "language" code from ACC
- This is a feature that never saw the light of day in this form, so get
  rid of its vestigial remnants. (Note that this is NOT the l: print
  formatter that causes the game to look up a string in the LANGUAGE
  lump.)
2014-07-24 15:16:30 -05:00
Randy Heit
fafedb271d Improve error message when using functions in Hexen-compat mode
- When trying to define a function with the -h switch, you previously
  got two error messages on the token following the function, making it
  unclear what the problem was. There is now only one error message at the
  end of the function's parameter list.
2014-07-24 15:00:31 -05:00
Randy Heit
ac678ff7b8 Add script/function arrays to ACC
- Script arrays are semantically identical to map arrays: They have fixed
  sizes and can be multidimensional. They can also be initialized, although
  this is just syntactic sugar. e.g.
    int init_array[2] = { 10, 20 }
  produces code identical to:
    int init_array[2];
    init_array[0] = 10;
    init_array[1] = 20;
  Script arrays are also implicitly initialized to 0, just like any other
  variable in ACS.
- Unlike map arrays, they only exist for the life of the script, and each
  script gets its own copy of the array.
- Script arrays exists in a separate space from script variables. I did
  not repeat the bullshittery of map arrays here. (I still have no idea what I
  was thinking when I designed them that way.)
- Each script and function that uses local arrays is recorded with a new
  chunk: SARY for scripts and FARY for functions. The first two bytes are the
  script/function number, and the rest of the chunk consists of four-byte
  integers describing the size (in ints) of each array used by that
  script/function. To determine how many arrays a script/function uses,
  take the chunk length, subtract two, and divide by four.
2014-07-24 14:41:39 -05:00
Randy Heit
bede8930a8 Fixed: One use of ERR_NOT_AN_ARRAY did not provide the symbol's name 2014-07-22 17:20:38 -05:00
Randy Heit
c447410ad8 Don't convert string constants to numbers for #define
- Fixed: You could not #define a string for use in a library, because it
  was converted to a number at definition time and not at use time. This
  is no longer the case. Symbolic constants now store the string in its
  original form, and they now expand into the string when encountered
  instead of their string table index.
2014-07-21 23:32:57 -05:00
alexey.lysiuk
9487be3e67 Fix compilation on OS X and other systems without non-standard <malloc.h>
All required declarations are in <stdlib.h>
2014-06-07 16:58:50 +03:00
Christoph Oelckers
998c8b15b2 - new render styles. 2014-05-13 21:08:44 +02:00
Christoph Oelckers
621a33df3b - ChangeActorAngle/Pitch added to zspecial.acs. 2014-05-08 09:37:57 +02:00
Gaerzi
79d5cfd471 Update zdefs.acs with shadow and subtract styles.
I'm not sure why the values jump from 1, 2, 3, 4, 5 to 64, 65, 66, 67, but I continued from there. Adding shadow is necessary to add subtract.
2014-04-22 11:31:54 +02:00
Edward Richardson
fcd3fefb39 Added GetActorPowerupTics special 2014-04-07 23:24:55 +12:00
Edward Richardson
6f4c8d8b8c Added APROP_StencilColor for Set/GetActorProperty 2014-04-01 03:28:30 +13:00
Randy Heit
c6bc836ecb Add support for unary +
- Other languages can do this, and carlcyber noticed ACC couldn't, so now
  it can.
2014-02-04 20:32:27 -06:00
Randy Heit
f099d5e667 Add constant evaluation for ~
- When this operator was added to the language, it never got added to the
  constant expression path, so you could only use it in expressions
  evaluated at runtime.
2014-02-04 20:27:05 -06:00
Randy Heit
26d4df32d4 Fix constant < > <= >= evaluation
- SendExprCommand() evaluated all four of these as their inverse. I
  wouldn't at all be surprised if this was caused by me fixing the
  undefined behavior (Which PopExStk() is called first?) and not
  even noticing that these were reversed because they popped off the stack
  in reverse order.
2014-02-04 20:21:51 -06:00
Randy Heit
3a5bedf702 Fix constant || and && evaluation
- When SendExprCommand() evaluates constant expressions for || and &&,
  it must explicitly pop both operands off the stack before pushing the
  result. The compiler will do normal short-circuiting here, so if it only
  needs one value to determine the result, only one would be popped off
  the stack.
2014-02-04 20:19:13 -06:00
Randy Heit
1722d11fe8 Add Get/SetLineActivation functions and definitions 2014-02-04 19:50:37 -06:00
Randy Heit
9254deb627 Correct max argument counts for various specials 2014-02-04 19:48:46 -06:00
Christoph Oelckers
91f15ae3fb CheckFlag function. 2013-08-12 22:39:37 +02:00
Christoph Oelckers
48ecc9a220 - DropItem definition. 2013-08-11 21:03:36 +02:00
Christoph Oelckers
373e48a9bc - BLOCKF_HITSCAN flag. 2013-08-09 21:28:27 +02:00
Christoph Oelckers
b8e601dd98 - new APROPs. 2013-08-09 12:03:35 +02:00
Christoph Oelckers
ef8e51899c - fixed parameter count of SpawnForced
- added stuff for LineAttack expansion.
2013-07-22 22:45:02 +02:00
Randy Heit
4f08740c15 Correct parameter count for LineAttack 2013-07-10 22:13:01 -05:00
Alex Mayfield
0e3cad7dca Convert svn:ignore to .gitignore. 2013-06-23 14:15:01 -04:00
Randy Heit
3ee9363c3c This is ACC 1.54.
SVN r4343 (trunk)
2013-06-09 01:55:22 +00:00
Randy Heit
6c5a5db327 - Added CheckFont to zspecial.acs.
SVN r4336 (trunk)
2013-06-06 21:54:32 +00:00
Randy Heit
e58f13aabc - Added SpawnDecal and its flags to ACS includes.
SVN r4331 (trunk)
2013-06-05 02:16:51 +00:00
Randy Heit
d1bf5cdfa7 - Added PlayActorSound identifiers to zdefs.acs.
SVN r4327 (trunk)
2013-06-04 02:19:04 +00:00
Randy Heit
4f33fad84d - Added PlayActorSound to zspecial.acs.
SVN r4324 (trunk)
2013-06-03 00:10:53 +00:00
Randy Heit
c7c757234e - Add more Skulltag/Zandronum stuff to zdefs.acs and zspecial.acs.
SVN r4320 (trunk)
2013-06-01 18:01:53 +00:00
Randy Heit
eee5e5fa36 - Added SoundVolume to zdefs.acs.
SVN r4319 (trunk)
2013-06-01 17:47:36 +00:00
Randy Heit
42214bf0d0 - Added GetActorClass and GetWeapon functions to zspecial.acs.
SVN r4317 (trunk)
2013-06-01 17:18:58 +00:00
Randy Heit
f9cb2a66df - Added strcmp, stricmp (strcasecmp), strleft, strright, and strmid to zspecial.acs.
SVN r4314 (trunk)
2013-06-01 17:08:35 +00:00
Randy Heit
436e6e33a8 - Added channel flags for PlaySound to zdefs.acs.
SVN r4312 (trunk)
2013-06-01 16:39:23 +00:00
Randy Heit
f6d82abbdb - Fixed typo.
SVN r4311 (trunk)
2013-06-01 16:36:18 +00:00
Randy Heit
643469d630 - Forgot to add APROP_MeleeRange to zdefs.acs.
SVN r4309 (trunk)
2013-06-01 02:57:36 +00:00
Randy Heit
cccb298f8b - Update zdefs.acs and zspecial.acs for recent ACS additions.
SVN r4308 (trunk)
2013-06-01 02:56:20 +00:00
Randy Heit
1d7b0f4bcf - Added Get/SetCVarString and Get/SetUserCVarString to zspecial.acs.
SVN r4294 (trunk)
2013-05-27 02:42:34 +00:00