2020-05-16 08:13:39 +00:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
/*
|
|
|
|
Copyright (C) 1996, 2003 - 3D Realms Entertainment
|
|
|
|
Copyright (C) 2017-2019 Nuke.YKT
|
2020-06-28 07:03:31 +00:00
|
|
|
Copyright (C) 2020 - Christoph Oelckers
|
2020-05-16 08:13:39 +00:00
|
|
|
|
|
|
|
This file is part of Duke Nukem 3D version 1.5 - Atomic Edition
|
|
|
|
|
|
|
|
Duke Nukem 3D is free software, you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation, either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY, without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program, if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
Original Source, 1996 - Todd Replogle
|
|
|
|
Prepared for public release, 03/21/2003 - Charlie Wiederhold, 3D Realms
|
|
|
|
*/
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#include "ns.h"
|
|
|
|
#include "global.h"
|
2020-07-03 21:56:14 +00:00
|
|
|
#include "names_r.h"
|
2020-05-16 08:13:39 +00:00
|
|
|
|
|
|
|
BEGIN_DUKE_NS
|
|
|
|
|
|
|
|
void initactorflags_r()
|
|
|
|
{
|
|
|
|
setflag(SFLAG_INTERNAL_BADGUY|SFLAG_KILLCOUNT, {
|
|
|
|
BOULDER,
|
|
|
|
BOULDER1,
|
|
|
|
EGG,
|
|
|
|
RAT,
|
|
|
|
TORNADO,
|
|
|
|
BILLYCOCK,
|
|
|
|
BILLYRAY,
|
|
|
|
BILLYRAYSTAYPUT,
|
|
|
|
BRAYSNIPER,
|
|
|
|
DOGRUN,
|
|
|
|
LTH,
|
|
|
|
HULKJUMP,
|
|
|
|
BUBBASTAND,
|
|
|
|
HULK,
|
|
|
|
HULKSTAYPUT,
|
|
|
|
HEN,
|
|
|
|
DRONE,
|
|
|
|
PIG,
|
|
|
|
RECON,
|
|
|
|
MINION,
|
|
|
|
MINIONSTAYPUT,
|
|
|
|
COOT,
|
|
|
|
COOTSTAYPUT,
|
|
|
|
SHARK,
|
|
|
|
VIXEN});
|
|
|
|
|
|
|
|
if (isRRRA()) setflag(SFLAG_INTERNAL_BADGUY|SFLAG_KILLCOUNT, {
|
|
|
|
SBSWIPE,
|
|
|
|
BIKERB,
|
|
|
|
BIKERBV2,
|
|
|
|
BIKER,
|
|
|
|
MAKEOUT,
|
|
|
|
CHEERB,
|
|
|
|
CHEER,
|
|
|
|
CHEERSTAYPUT,
|
|
|
|
COOTPLAY,
|
|
|
|
BILLYPLAY,
|
|
|
|
MINIONBOAT,
|
|
|
|
HULKBOAT,
|
|
|
|
CHEERBOAT,
|
|
|
|
RABBIT,
|
|
|
|
MAMA,
|
|
|
|
UFO1_RRRA});
|
|
|
|
else setflag(SFLAG_INTERNAL_BADGUY|SFLAG_KILLCOUNT, {
|
|
|
|
SBMOVE,
|
|
|
|
UFO1_RR,
|
|
|
|
UFO2,
|
|
|
|
UFO3,
|
|
|
|
UFO4,
|
|
|
|
UFO5});
|
|
|
|
|
|
|
|
// Why does the pig count as kill? Let's undo that.
|
|
|
|
actorinfo[PIG].flags &= ~SFLAG_KILLCOUNT;
|
|
|
|
|
|
|
|
actorinfo[DRONE].flags |= SFLAG_NOWATERDIP;
|
|
|
|
actorinfo[VIXEN].flags |= SFLAG_NOCANSEECHECK;
|
|
|
|
if (isRRRA())
|
|
|
|
{
|
|
|
|
setflag(SFLAG_KILLCOUNT, { ROCK, ROCK2 }); //???
|
|
|
|
setflag(SFLAG_NODAMAGEPUSH, { HULK, MAMA, BILLYPLAY, COOTPLAY, MAMACLOUD });
|
|
|
|
setflag(SFLAG_NOCANSEECHECK, { COOT, COOTSTAYPUT, BIKERB, BIKERBV2, CHEER, CHEERB,
|
2020-07-20 21:21:27 +00:00
|
|
|
CHEERSTAYPUT, MINIONBOAT, HULKBOAT, CHEERBOAT, RABBIT, COOTPLAY, BILLYPLAY, MAKEOUT, MAMA });
|
2020-05-16 08:13:39 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
setflag(SFLAG_NODAMAGEPUSH, { HULK, SBMOVE });
|
|
|
|
}
|
2020-05-16 08:46:39 +00:00
|
|
|
|
|
|
|
settileflag(TFLAG_WALLSWITCH, {
|
2020-07-20 21:21:27 +00:00
|
|
|
HANDPRINTSWITCH,
|
|
|
|
HANDPRINTSWITCH+1,
|
|
|
|
ALIENSWITCH,
|
|
|
|
ALIENSWITCH+1,
|
|
|
|
MULTISWITCH,
|
|
|
|
MULTISWITCH+1,
|
|
|
|
MULTISWITCH+2,
|
|
|
|
MULTISWITCH+3,
|
|
|
|
ACCESSSWITCH,
|
|
|
|
ACCESSSWITCH2,
|
|
|
|
PULLSWITCH,
|
|
|
|
PULLSWITCH+1,
|
|
|
|
HANDSWITCH,
|
|
|
|
HANDSWITCH+1,
|
|
|
|
SLOTDOOR,
|
|
|
|
SLOTDOOR+1,
|
|
|
|
LIGHTSWITCH,
|
|
|
|
LIGHTSWITCH+1,
|
|
|
|
SPACELIGHTSWITCH,
|
|
|
|
SPACELIGHTSWITCH+1,
|
|
|
|
SPACEDOORSWITCH,
|
|
|
|
SPACEDOORSWITCH+1,
|
|
|
|
FRANKENSTINESWITCH,
|
|
|
|
FRANKENSTINESWITCH+1,
|
|
|
|
LIGHTSWITCH2,
|
|
|
|
LIGHTSWITCH2+1,
|
|
|
|
POWERSWITCH1,
|
|
|
|
POWERSWITCH1+1,
|
|
|
|
LOCKSWITCH1,
|
|
|
|
LOCKSWITCH1+1,
|
|
|
|
POWERSWITCH2,
|
|
|
|
POWERSWITCH2+1,
|
|
|
|
DIPSWITCH,
|
|
|
|
DIPSWITCH+1,
|
|
|
|
DIPSWITCH2,
|
|
|
|
DIPSWITCH2+1,
|
|
|
|
TECHSWITCH,
|
|
|
|
TECHSWITCH+1,
|
|
|
|
DIPSWITCH3,
|
|
|
|
DIPSWITCH3+1,
|
|
|
|
NUKEBUTTON,
|
2020-05-16 08:46:39 +00:00
|
|
|
NUKEBUTTON+1});
|
|
|
|
if (isRRRA()) settileflag(TFLAG_WALLSWITCH, {
|
2020-07-20 21:21:27 +00:00
|
|
|
MULTISWITCH2,
|
|
|
|
MULTISWITCH2+1,
|
|
|
|
MULTISWITCH2+2,
|
|
|
|
MULTISWITCH2+3,
|
|
|
|
RRTILE8464,
|
2020-05-16 08:46:39 +00:00
|
|
|
RRTILE8464+1});
|
2020-05-16 10:47:01 +00:00
|
|
|
|
|
|
|
setflag(SFLAG_INVENTORY, {
|
|
|
|
FIRSTAID,
|
|
|
|
STEROIDS,
|
|
|
|
HEATSENSOR,
|
|
|
|
BOOTS,
|
|
|
|
JETPACK,
|
|
|
|
HOLODUKE,
|
|
|
|
AIRTANK });
|
|
|
|
|
|
|
|
setflag(SFLAG_ADULT, {
|
|
|
|
FEM10,
|
|
|
|
NAKED1,
|
|
|
|
FEMMAG1,
|
|
|
|
FEMMAG2,
|
|
|
|
STATUE,
|
|
|
|
STATUEFLASH,
|
|
|
|
OOZ,
|
|
|
|
WALLBLOOD1,
|
|
|
|
WALLBLOOD2,
|
|
|
|
WALLBLOOD3,
|
|
|
|
WALLBLOOD4,
|
|
|
|
WALLBLOOD5,
|
|
|
|
SUSHIPLATE1,
|
|
|
|
SUSHIPLATE2,
|
|
|
|
SUSHIPLATE3,
|
|
|
|
SUSHIPLATE4,
|
|
|
|
DOLPHIN1,
|
|
|
|
DOLPHIN2,
|
|
|
|
TOUGHGAL });
|
|
|
|
|
2020-05-16 21:55:21 +00:00
|
|
|
actorinfo[RPG2].flags |= SFLAG_FORCEAUTOAIM;
|
2020-05-21 10:20:44 +00:00
|
|
|
|
|
|
|
weaponsandammosprites[0] = RPGSPRITE;
|
|
|
|
weaponsandammosprites[1] = CHAINGUNSPRITE;
|
|
|
|
weaponsandammosprites[2] = DEVISTATORAMMO;
|
|
|
|
weaponsandammosprites[3] = RPGAMMO;
|
|
|
|
weaponsandammosprites[4] = RPGAMMO;
|
|
|
|
weaponsandammosprites[5] = JETPACK;
|
|
|
|
weaponsandammosprites[6] = SHIELD;
|
|
|
|
weaponsandammosprites[7] = FIRSTAID;
|
|
|
|
weaponsandammosprites[8] = STEROIDS;
|
|
|
|
weaponsandammosprites[9] = RPGAMMO;
|
|
|
|
weaponsandammosprites[10] = RPGAMMO;
|
|
|
|
weaponsandammosprites[11] = RPGSPRITE;
|
|
|
|
weaponsandammosprites[12] = RPGAMMO;
|
|
|
|
weaponsandammosprites[13] = FREEZESPRITE;
|
|
|
|
weaponsandammosprites[14] = FREEZEAMMO;
|
|
|
|
|
2020-07-03 21:56:14 +00:00
|
|
|
TILE_BOX = BOX;
|
|
|
|
TILE_TREE1 = TREE1;
|
|
|
|
TILE_TREE2 = TREE2;
|
|
|
|
TILE_TIRE = TIRE;
|
|
|
|
TILE_CONE = CONE;
|
|
|
|
TILE_W_FORCEFIELD = W_FORCEFIELD;
|
|
|
|
TILE_CAMERA1 = CAMERA1;
|
|
|
|
TILE_SCRAP6 = SCRAP6;
|
|
|
|
TILE_APLAYER = APLAYER;
|
|
|
|
TILE_DRONE = DRONE;
|
|
|
|
TILE_MENUSCREEN = MENUSCREEN;
|
|
|
|
TILE_SCREENBORDER = isRRRA()? 7629 : BIGHOLE;
|
|
|
|
TILE_VIEWBORDER = VIEWBORDER;
|
|
|
|
TILE_LASERLINE = LASERLINE;
|
|
|
|
TILE_APLAYERTOP = APLAYERTOP;
|
|
|
|
TILE_CAMCORNER = CAMCORNER;
|
|
|
|
TILE_CAMLIGHT = CAMLIGHT;
|
|
|
|
TILE_STATIC = STATIC;
|
|
|
|
TILE_BOTTOMSTATUSBAR = BOTTOMSTATUSBAR;
|
|
|
|
TILE_SPINNINGNUKEICON = SPINNINGNUKEICON;
|
|
|
|
TILE_THREEDEE = THREEDEE;
|
|
|
|
TILE_INGAMEDUKETHREEDEE = INGAMEDUKETHREEDEE;
|
|
|
|
TILE_PLUTOPAKSPRITE = PLUTOPAKSPRITE;
|
|
|
|
TILE_MENUBAR = MENUBAR;
|
|
|
|
TILE_ATOMICHEALTH = ATOMICHEALTH;
|
|
|
|
TILE_FLOORSLIME = FLOORSLIME;
|
|
|
|
TILE_JIBS6 = JIBS6;
|
2020-08-01 12:19:37 +00:00
|
|
|
TILE_FIRE = FIRE;
|
2020-07-03 21:56:14 +00:00
|
|
|
TILE_WATERBUBBLE = WATERBUBBLE;
|
|
|
|
TILE_SMALLSMOKE = SMALLSMOKE;
|
|
|
|
TILE_BLOODPOOL = BLOODPOOL;
|
|
|
|
TILE_FOOTPRINTS = FOOTPRINTS;
|
|
|
|
TILE_FOOTPRINTS2 = FOOTPRINTS2;
|
|
|
|
TILE_FOOTPRINTS3 = FOOTPRINTS3;
|
|
|
|
TILE_FOOTPRINTS4 = FOOTPRINTS4;
|
|
|
|
TILE_CLOUDYSKIES = CLOUDYSKIES;
|
|
|
|
TILE_ARROW = ARROW;
|
|
|
|
TILE_ACCESSSWITCH = ACCESSSWITCH;
|
|
|
|
TILE_ACCESSSWITCH2 = ACCESSSWITCH2;
|
|
|
|
TILE_GLASSPIECES = GLASSPIECES;
|
|
|
|
TILE_BETAVERSION = BETAVERSION;
|
|
|
|
TILE_MIRROR = MIRROR;
|
|
|
|
TILE_HEN = HEN;
|
|
|
|
TILE_MOONSKY1 = MOONSKY1;
|
|
|
|
TILE_LA = LA;
|
|
|
|
TILE_LOADSCREEN = LOADSCREEN;
|
|
|
|
TILE_CROSSHAIR = CROSSHAIR;
|
|
|
|
TILE_BIGORBIT1 = BIGORBIT1;
|
|
|
|
TILE_HURTRAIL = HURTRAIL;
|
|
|
|
TILE_FLOORPLASMA = FLOORPLASMA;
|
2020-07-27 18:53:31 +00:00
|
|
|
TILE_EGG = EGG;
|
2020-07-03 21:56:14 +00:00
|
|
|
|
2020-07-06 21:50:14 +00:00
|
|
|
PHEIGHT = PHEIGHT_RR;
|
2020-05-16 08:13:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
END_DUKE_NS
|