From 4c94a58e9587ea26036bb562e74728ce5ddaf355 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 13 Jul 2006 10:17:56 +0000 Subject: [PATCH] - Generalized Hexen's class-based spawning to be a property of the player class so now it is available in all games. - Replaced the call to A_FlameSnd in the HereticPlayer's burn death sequence with A_FireScream and defined *burndeath for Heretic. - Added Grubber's custom player class support. SVN r250 (trunk) --- pcode.c | 1 + pcode.h | 1 + symbol.c | 1 + 3 files changed, 3 insertions(+) diff --git a/pcode.c b/pcode.c index 9e97a5f..b94154f 100644 --- a/pcode.c +++ b/pcode.c @@ -398,6 +398,7 @@ static char *PCDNames[PCODE_COMMAND_COUNT] = "PCD_CHECKACTORINVENTORY", "PCD_THINGCOUNTNAME", "PCD_SPAWNSPOTFACING", + "PCD_PLAYERCLASS", }; diff --git a/pcode.h b/pcode.h index 80571fd..f7473cd 100644 --- a/pcode.h +++ b/pcode.h @@ -348,6 +348,7 @@ typedef enum PCD_CHECKACTORINVENTORY, PCD_THINGCOUNTNAME, PCD_SPAWNSPOTFACING, + PCD_PLAYERCLASS, PCODE_COMMAND_COUNT } pcd_t; diff --git a/symbol.c b/symbol.c index 9a1e139..c1240c8 100644 --- a/symbol.c +++ b/symbol.c @@ -170,6 +170,7 @@ static internFuncDef_t InternalFunctions[] = { "setactorangle", PCD_NOP, PCD_SETACTORANGLE, 2, 0, 0, NO, NO }, { "spawnprojectile", PCD_NOP, PCD_SPAWNPROJECTILE, 7, 0, 0, NO, NO }, { "getsectorlightlevel", PCD_NOP, PCD_GETSECTORLIGHTLEVEL, 1, 0, 0, YES, NO }, + { "playerclass", PCD_NOP, PCD_PLAYERCLASS, 1, 0, 0, YES, NO }, { NULL, PCD_NOP, PCD_NOP, 0, 0, 0, NO, NO } };