August 10, 2006 (Changes by Graf Zahl)

- Fixed: CheckActorInventory stored the return value in the wrong address
  on the ACS stack.
- Fixed: Skin sounds weren't properly restored after a SNDINFO reset.
- Added a more flexible ACS ChangeLevel function. It gets passed a level name
  instead of a level number and has several additional options (e.g. changing
  skill, starting the map without monsters and clearing the players' inventories. (UNTESTED!)
- Changed Thing_Activate so that passing a tid of 0 activates the calling actor.
- Changed Thing_Remove so that passing a tid of 0 removes the calling actor.
- Added DECORATE parameters to A_Saw.

SVN r283 (trunk)
This commit is contained in:
Christoph Oelckers 2006-08-10 15:28:12 +00:00
parent a96324456a
commit 1685caa03c
4 changed files with 9 additions and 0 deletions

View file

@ -437,6 +437,7 @@ static char *PCDNames[PCODE_COMMAND_COUNT] =
"PCD_RSGLOBALARRAY",
//[MW] end my p-codes
"PCD_GETPLAYERINFO",
"PCD_CHANGELEVEL",
};

View file

@ -387,6 +387,7 @@ typedef enum
PCD_RSGLOBALARRAY,
//[MW] end my p-codes
PCD_GETPLAYERINFO,
PCD_CHANGELEVEL,
PCODE_COMMAND_COUNT
} pcd_t;

View file

@ -174,6 +174,7 @@ static internFuncDef_t InternalFunctions[] =
{ "getsectorlightlevel", PCD_NOP, PCD_GETSECTORLIGHTLEVEL, 1, 0, 0, YES, NO },
{ "playerclass", PCD_NOP, PCD_PLAYERCLASS, 1, 0, 0, YES, NO },
{ "getplayerinfo", PCD_NOP, PCD_GETPLAYERINFO, 2, 0, 0, YES, NO },
{ "changelevel", PCD_NOP, PCD_CHANGELEVEL, 4, 8, 0, NO, NO },
{ NULL, PCD_NOP, PCD_NOP, 0, 0, 0, NO, NO }
};

View file

@ -467,3 +467,9 @@
#define GK_FREE2 29
#define GK_FREE3 30
#define GK_CESCAPE 31 // color escape
#define CHANGELEVEL_KEEPFACING 1
#define CHANGELEVEL_RESETINVENTORY 2
#define CHANGELEVEL_NOMONSTERS 4
#define CHANGELEVEL_CHANGESKILL 8
#define CHANGELEVEL_NOINTERMISSION 16