mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-14 00:21:38 +00:00
Exhumed code cleanup
merging all AI headers and removing several unused files
This commit is contained in:
parent
8d101a4a57
commit
4ea93ebccc
79 changed files with 588 additions and 1981 deletions
|
@ -1,6 +1,5 @@
|
||||||
|
|
||||||
set( PCH_SOURCES
|
set( PCH_SOURCES
|
||||||
src/aistuff.cpp
|
|
||||||
src/anims.cpp
|
src/anims.cpp
|
||||||
src/anubis.cpp
|
src/anubis.cpp
|
||||||
src/bubbles.cpp
|
src/bubbles.cpp
|
||||||
|
@ -20,7 +19,6 @@ set( PCH_SOURCES
|
||||||
src/lion.cpp
|
src/lion.cpp
|
||||||
src/map.cpp
|
src/map.cpp
|
||||||
src/menu.cpp
|
src/menu.cpp
|
||||||
src/mono.cpp
|
|
||||||
src/move.cpp
|
src/move.cpp
|
||||||
src/movie.cpp
|
src/movie.cpp
|
||||||
src/mummy.cpp
|
src/mummy.cpp
|
||||||
|
@ -39,14 +37,12 @@ set( PCH_SOURCES
|
||||||
src/save.cpp
|
src/save.cpp
|
||||||
src/scorp.cpp
|
src/scorp.cpp
|
||||||
src/sequence.cpp
|
src/sequence.cpp
|
||||||
src/serial.cpp
|
|
||||||
src/set.cpp
|
src/set.cpp
|
||||||
src/snake.cpp
|
src/snake.cpp
|
||||||
src/sound.cpp
|
src/sound.cpp
|
||||||
src/spider.cpp
|
src/spider.cpp
|
||||||
src/status.cpp
|
src/status.cpp
|
||||||
src/switch.cpp
|
src/switch.cpp
|
||||||
src/timer.cpp
|
|
||||||
src/trigdat.cpp
|
src/trigdat.cpp
|
||||||
src/view.cpp
|
src/view.cpp
|
||||||
src/wasp.cpp
|
src/wasp.cpp
|
||||||
|
|
|
@ -1,71 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
#include "ns.h"
|
|
||||||
#include "aistuff.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
|
|
||||||
extern int localclock;
|
|
||||||
|
|
||||||
int TimeSlot[KMaxTimeSlots];
|
|
||||||
|
|
||||||
|
|
||||||
void InitTimeSlot()
|
|
||||||
{
|
|
||||||
for (int i = 0; i < KMaxTimeSlots; i++) {
|
|
||||||
TimeSlot[i] = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
int GrabTimeSlot(int UNUSED(nVal))
|
|
||||||
{
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
// BJD - below code found in an early Powerslave release. Doesn't seem to do anything and is missing in later releases.
|
|
||||||
#if 0
|
|
||||||
int ebx = -1;
|
|
||||||
int esi;
|
|
||||||
|
|
||||||
for (int i = 0; i < nVal; i++)
|
|
||||||
{
|
|
||||||
int nSlot = (localclock + i) & 0xF;
|
|
||||||
|
|
||||||
if (ebx >= 0)
|
|
||||||
{
|
|
||||||
if (esi <= TimeSlot[nSlot]) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
esi = TimeSlot[nSlot];
|
|
||||||
ebx = i;
|
|
||||||
}
|
|
||||||
|
|
||||||
esi = localclock;
|
|
||||||
|
|
||||||
int edx = ebx;
|
|
||||||
|
|
||||||
while (edx < 16)
|
|
||||||
{
|
|
||||||
TimeSlot[(edx + esi) & 0xF]++;
|
|
||||||
edx += nVal;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
END_PS_NS
|
|
|
@ -20,34 +20,511 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#define __aistuff_h__
|
#define __aistuff_h__
|
||||||
|
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
#include "anubis.h"
|
|
||||||
#include "bubbles.h"
|
|
||||||
#include "mummy.h"
|
|
||||||
#include "rex.h"
|
|
||||||
#include "roach.h"
|
|
||||||
#include "scorp.h"
|
|
||||||
#include "spider.h"
|
|
||||||
#include "lion.h"
|
|
||||||
#include "set.h"
|
|
||||||
#include "queen.h"
|
|
||||||
#include "wasp.h"
|
|
||||||
#include "rat.h"
|
|
||||||
#include "gun.h"
|
|
||||||
#include "grenade.h"
|
|
||||||
#include "snake.h"
|
|
||||||
#include "fish.h"
|
|
||||||
#include "lavadude.h"
|
|
||||||
#include "bullet.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
BEGIN_PS_NS
|
||||||
|
|
||||||
#define KMaxTimeSlots 16
|
// anims
|
||||||
|
|
||||||
|
struct Anim
|
||||||
|
{
|
||||||
|
short nSeq;
|
||||||
|
short field_2;
|
||||||
|
short field_4;
|
||||||
|
short nSprite;
|
||||||
|
};
|
||||||
|
|
||||||
|
extern Anim AnimList[];
|
||||||
|
extern uint8_t AnimFlags[];
|
||||||
|
|
||||||
|
void InitAnims();
|
||||||
|
void DestroyAnim(int nAnim);
|
||||||
|
int BuildAnim(int nSprite, int val, int val2, int x, int y, int z, int nSector, int nRepeat, int nFlag);
|
||||||
|
short GetAnimSprite(short nAnim);
|
||||||
|
|
||||||
|
void FuncAnim(int, int, int);
|
||||||
|
void BuildExplosion(short nSprite);
|
||||||
|
int BuildSplash(int nSprite, int nSector);
|
||||||
|
|
||||||
|
// anubis
|
||||||
|
|
||||||
|
void InitAnubis();
|
||||||
|
int BuildAnubis(int nSprite, int x, int y, int z, int nSector, int nAngle, uint8_t bIsDrummer);
|
||||||
|
void FuncAnubis(int a, int b, int c);
|
||||||
|
|
||||||
|
// bubbles
|
||||||
|
|
||||||
|
void InitBubbles();
|
||||||
|
void BuildBubbleMachine(int nSprite);
|
||||||
|
void DoBubbleMachines();
|
||||||
|
void DoBubbles(int nPlayer);
|
||||||
|
void FuncBubble(int, int, int);
|
||||||
|
|
||||||
|
// bullet
|
||||||
|
|
||||||
|
// 32 bytes
|
||||||
|
struct bulletInfo
|
||||||
|
{
|
||||||
|
short nDamage; // 0
|
||||||
|
short field_2; // 2
|
||||||
|
int field_4; // 4
|
||||||
|
short field_8; // 8
|
||||||
|
short nSeq; // 10
|
||||||
|
short field_C; // 12
|
||||||
|
short nFlags;
|
||||||
|
short nRadius; // damage radius
|
||||||
|
short xyRepeat;
|
||||||
|
};
|
||||||
|
|
||||||
|
extern bulletInfo BulletInfo[];
|
||||||
|
|
||||||
|
extern short nRadialBullet;
|
||||||
|
extern short lasthitsect;
|
||||||
|
extern int lasthitz;
|
||||||
|
extern int lasthitx;
|
||||||
|
extern int lasthity;
|
||||||
|
|
||||||
|
void InitBullets();
|
||||||
|
short GrabBullet();
|
||||||
|
void DestroyBullet(short nRun);
|
||||||
|
int MoveBullet(short nBullet);
|
||||||
|
void SetBulletEnemy(short nBullet, short nEnemy);
|
||||||
|
int BuildBullet(short nSprite, int nType, int ebx, int ecx, int val1, int nAngle, int val2, int val3);
|
||||||
|
void IgniteSprite(int nSprite);
|
||||||
|
void FuncBullet(int, int, int);
|
||||||
|
void BackUpBullet(int *x, int *y, short nAngle);
|
||||||
|
|
||||||
|
// fish
|
||||||
|
|
||||||
|
void InitFishes();
|
||||||
|
int BuildFish(int nSprite, int x, int y, int z, int nSector, int nAngle);
|
||||||
|
void FuncFish(int, int, int);
|
||||||
|
void FuncFishLimb(int a, int b, int c);
|
||||||
|
|
||||||
|
// grenade
|
||||||
|
|
||||||
|
#define kMaxGrenades 50
|
||||||
|
|
||||||
|
void InitGrenades();
|
||||||
|
int BuildGrenade(int nPlayer);
|
||||||
|
void DestroyGrenade(short nGrenade);
|
||||||
|
int ThrowGrenade(short nPlayer, int edx, int ebx, int ecx, int push1);
|
||||||
|
void FuncGrenade(int, int, int);
|
||||||
|
|
||||||
|
// gun
|
||||||
|
|
||||||
|
#define kMaxWeapons 7
|
||||||
|
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
kWeaponSword = 0,
|
||||||
|
kWeaponPistol,
|
||||||
|
kWeaponM60,
|
||||||
|
kWeaponFlamer,
|
||||||
|
kWeaponGrenade,
|
||||||
|
kWeaponStaff,
|
||||||
|
kWeaponRing,
|
||||||
|
kWeaponMummified
|
||||||
|
};
|
||||||
|
|
||||||
|
struct Weapon
|
||||||
|
{
|
||||||
|
short nSeq;
|
||||||
|
short b[12]; // seq offsets?
|
||||||
|
short nAmmoType;
|
||||||
|
short c;
|
||||||
|
short d; // default or min ammo? or ammo used per 'shot' ?
|
||||||
|
short bFireUnderwater;
|
||||||
|
// short pad[15];
|
||||||
|
};
|
||||||
|
|
||||||
|
extern Weapon WeaponInfo[];
|
||||||
|
extern short nTemperature[];
|
||||||
|
|
||||||
|
void RestoreMinAmmo(short nPlayer);
|
||||||
|
void FillWeapons(short nPlayer);
|
||||||
|
void ResetPlayerWeapons(short nPlayer);
|
||||||
|
void InitWeapons();
|
||||||
|
void SetNewWeapon(short nPlayer, short nWeapon);
|
||||||
|
void SetNewWeaponImmediate(short nPlayer, short nWeapon);
|
||||||
|
void SetNewWeaponIfBetter(short nPlayer, short nWeapon);
|
||||||
|
void SelectNewWeapon(short nPlayer);
|
||||||
|
void StopFiringWeapon(short nPlayer);
|
||||||
|
void FireWeapon(short nPlayer);
|
||||||
|
void CheckClip(short nPlayer);
|
||||||
|
void MoveWeapons(short nPlayer);
|
||||||
|
void DrawWeapons(int smooth);
|
||||||
|
|
||||||
|
// items
|
||||||
|
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
kItemHeart = 0,
|
||||||
|
kItemInvincibility,
|
||||||
|
kItemTorch,
|
||||||
|
kItemDoubleDamage,
|
||||||
|
kItemInvisibility,
|
||||||
|
kItemMask,
|
||||||
|
};
|
||||||
|
|
||||||
|
extern short nItemMagic[];
|
||||||
|
|
||||||
|
void BuildItemAnim(short nSprite);
|
||||||
|
void DestroyItemAnim(short nSprite);
|
||||||
|
void ItemFlash();
|
||||||
|
void FillItems(short nPlayer);
|
||||||
|
void UseEye(short nPlayer);
|
||||||
|
void UseMask(short nPlayer);
|
||||||
|
void UseTorch(short nPlayer);
|
||||||
|
void UseHeart(short nPlayer);
|
||||||
|
void UseScarab(short nPlayer);
|
||||||
|
void UseHand(short nPlayer);
|
||||||
|
void UseItem(short nPlayer, short nItem);
|
||||||
|
void UseCurItem(short nPlayer);
|
||||||
|
int GrabItem(short nPlayer, short nItem);
|
||||||
|
void DropMagic(short nSprite);
|
||||||
|
void InitItems();
|
||||||
|
void StartRegenerate(short nSprite);
|
||||||
|
void DoRegenerates();
|
||||||
|
|
||||||
|
// lavadude
|
||||||
|
|
||||||
|
void InitLava();
|
||||||
|
int BuildLava(short nSprite, int x, int y, int z, short nSector, short nAngle, int nChannel);
|
||||||
|
int BuildLavaLimb(int nSprite, int edx, int ebx);
|
||||||
|
void FuncLavaLimb(int, int, int);
|
||||||
|
void FuncLava(int, int, int);
|
||||||
|
|
||||||
|
// lighting
|
||||||
|
|
||||||
|
extern short nFlashDepth;
|
||||||
|
|
||||||
|
void InitLights();
|
||||||
|
void AddFlash(short nSector, int x, int y, int z, int val);
|
||||||
|
void SetTorch(int nPlayer, int bTorchOnOff);
|
||||||
|
void UndoFlashes();
|
||||||
|
void DoLights();
|
||||||
|
void AddFlow(int nSprite, int nSpeed, int b);
|
||||||
|
void BuildFlash(short nPlayer, short nSector, int nVal);
|
||||||
|
void AddGlow(short nSector, int nVal);
|
||||||
|
void AddFlicker(short nSector, int nVal);
|
||||||
|
|
||||||
|
extern short bTorch;
|
||||||
|
|
||||||
|
// lion
|
||||||
|
|
||||||
|
void InitLion();
|
||||||
|
int BuildLion(short nSprite, int x, int y, int z, short nSector, short nAngle);
|
||||||
|
void FuncLion(int, int, int);
|
||||||
|
|
||||||
|
// move
|
||||||
|
|
||||||
|
// 16 bytes
|
||||||
|
struct BlockInfo
|
||||||
|
{
|
||||||
|
int x;
|
||||||
|
int y;
|
||||||
|
int field_8;
|
||||||
|
short nSprite;
|
||||||
|
};
|
||||||
|
extern BlockInfo sBlockInfo[];
|
||||||
|
|
||||||
|
extern int hihit;
|
||||||
|
extern short nChunkSprite[];
|
||||||
|
extern short nBodySprite[];
|
||||||
|
|
||||||
|
signed int lsqrt(int a1);
|
||||||
|
void MoveThings();
|
||||||
|
void ResetMoveFifo();
|
||||||
|
void InitChunks();
|
||||||
|
void InitPushBlocks();
|
||||||
|
void Gravity(short nSprite);
|
||||||
|
short UpdateEnemy(short *nEnemy);
|
||||||
|
int MoveCreature(short nSprite);
|
||||||
|
int MoveCreatureWithCaution(int nSprite);
|
||||||
|
void WheresMyMouth(int nPlayer, int *x, int *y, int *z, short *sectnum);
|
||||||
|
int GetSpriteHeight(int nSprite);
|
||||||
|
int GrabBody();
|
||||||
|
int GrabBodyGunSprite();
|
||||||
|
void CreatePushBlock(int nSector);
|
||||||
|
void FuncCreatureChunk(int a, int, int nRun);
|
||||||
|
int FindPlayer(int nSprite, int nDistance);
|
||||||
|
int BuildCreatureChunk(int nVal, int nPic);
|
||||||
|
void BuildNear(int x, int y, int walldist, int nSector);
|
||||||
|
int BelowNear(short nSprite);
|
||||||
|
int PlotCourseToSprite(int nSprite1, int nSprite2);
|
||||||
|
void CheckSectorFloor(short nSector, int z, int *x, int *y);
|
||||||
|
int GetAngleToSprite(int nSprite1, int nSprite2);
|
||||||
|
int GetWallNormal(short nWall);
|
||||||
|
int GetUpAngle(short nSprite1, int nVal, short nSprite2, int ecx);
|
||||||
|
void MoveSector(short nSector, int nAngle, int *nXVel, int *nYVel);
|
||||||
|
int AngleChase(int nSprite, int nSprite2, int ebx, int ecx, int push1);
|
||||||
|
void SetQuake(short nSprite, int nVal);
|
||||||
|
|
||||||
|
// mummy
|
||||||
|
|
||||||
|
#define kMaxMummies 150
|
||||||
|
|
||||||
|
void InitMummy();
|
||||||
|
int BuildMummy(int val, int x, int y, int z, int nSector, int nAngle);
|
||||||
|
void FuncMummy(int nSector, int edx, int nRun);
|
||||||
|
|
||||||
|
// object
|
||||||
|
|
||||||
|
#define kMaxPoints 1024
|
||||||
|
#define kMaxSlides 128
|
||||||
|
#define kMaxElevs 1024
|
||||||
|
|
||||||
|
enum kStatus
|
||||||
|
{
|
||||||
|
kStatDestructibleSprite = 97,
|
||||||
|
kStatAnubisDrum,
|
||||||
|
kStatExplodeTrigger = 141,
|
||||||
|
kStatExplodeTarget = 152
|
||||||
|
};
|
||||||
|
|
||||||
|
extern short nSmokeSparks;
|
||||||
|
extern short nDronePitch;
|
||||||
|
extern int lFinaleStart;
|
||||||
|
extern short nFinaleSpr;
|
||||||
|
|
||||||
|
void InitObjects();
|
||||||
|
void InitElev();
|
||||||
|
void InitPoint();
|
||||||
|
void InitSlide();
|
||||||
|
void InitWallFace();
|
||||||
|
void DoDrips();
|
||||||
|
void DoMovingSects();
|
||||||
|
void DoFinale();
|
||||||
|
void PostProcess();
|
||||||
|
|
||||||
|
void FuncElev(int, int, int);
|
||||||
|
void FuncWallFace(int, int, int);
|
||||||
|
void FuncSlide(int, int, int);
|
||||||
|
void FuncObject(int, int, int);
|
||||||
|
void FuncTrap(int, int, int);
|
||||||
|
void FuncEnergyBlock(int, int, int);
|
||||||
|
void FuncSpark(int, int, int);
|
||||||
|
void SnapBobs(short nSectorA, short nSectorB);
|
||||||
|
short FindWallSprites(short nSector);
|
||||||
|
void AddMovingSector(int nSector, int edx, int ebx, int ecx);
|
||||||
|
int BuildWallSprite(int nSector);
|
||||||
|
void ProcessTrailSprite(int nSprite, int nLotag, int nHitag);
|
||||||
|
void AddSectorBob(int nSector, int nHitag, int bx);
|
||||||
|
int BuildObject(short nSprite, int nOjectType, int nHitag);
|
||||||
|
int BuildArrow(int nSprite, int nVal);
|
||||||
|
int BuildFireBall(int nSprite, int a, int b);
|
||||||
|
void BuildDrip(int nSprite);
|
||||||
|
int BuildEnergyBlock(short nSector);
|
||||||
|
int BuildElevC(int arg1, int nChannel, int nSector, int nWallSprite, int arg5, int arg6, int nCount, ...);
|
||||||
|
int BuildElevF(int nChannel, int nSector, int nWallSprite, int arg_4, int arg_5, int nCount, ...);
|
||||||
|
int BuildWallFace(short nChannel, short nWall, int nCount, ...);
|
||||||
|
int BuildSlide(int nChannel, int edx, int ebx, int ecx, int arg1, int arg2, int arg3);
|
||||||
|
|
||||||
|
// queen
|
||||||
|
|
||||||
|
void InitQueens();
|
||||||
|
int BuildQueen(int nSprite, int x, int y, int z, int nSector, int nAngle, int nVal);
|
||||||
|
void FuncQueenEgg(int, int, int);
|
||||||
|
void FuncQueenHead(int, int, int);
|
||||||
|
void FuncQueen(int, int, int);
|
||||||
|
|
||||||
|
// ra
|
||||||
|
|
||||||
|
struct RA
|
||||||
|
{
|
||||||
|
short nAction;
|
||||||
|
short nFrame;
|
||||||
|
short nRun;
|
||||||
|
short nSprite;
|
||||||
|
short nTarget;
|
||||||
|
short field_A;
|
||||||
|
short field_C;
|
||||||
|
short nPlayer;
|
||||||
|
};
|
||||||
|
|
||||||
|
// ra
|
||||||
|
extern RA Ra[];
|
||||||
|
|
||||||
|
void FreeRa(short nPlayer);
|
||||||
|
int BuildRa(short nPlayer);
|
||||||
|
void InitRa();
|
||||||
|
void MoveRaToEnemy(short nPlayer);
|
||||||
|
void FuncRa(int, int, int);
|
||||||
|
|
||||||
|
// rat
|
||||||
|
|
||||||
|
void InitRats();
|
||||||
|
void SetRatVel(short nSprite);
|
||||||
|
int BuildRat(short nSprite, int x, int y, int z, short nSector, int nAngle);
|
||||||
|
int FindFood(short nSprite);
|
||||||
|
void FuncRat(int a, int b, int nRun);
|
||||||
|
|
||||||
|
// rex
|
||||||
|
|
||||||
|
void InitRexs();
|
||||||
|
int BuildRex(short nSprite, int x, int y, int z, short nSector, short nAngle, int nChannel);
|
||||||
|
void FuncRex(int, int, int);
|
||||||
|
|
||||||
|
// roach
|
||||||
|
|
||||||
|
void InitRoachs();
|
||||||
|
int BuildRoach(int nType, int nSprite, int x, int y, int z, short nSector, int angle);
|
||||||
|
void FuncRoach(int a, int nDamage, int nRun);
|
||||||
|
|
||||||
|
// runlist
|
||||||
|
|
||||||
|
#define kMaxRuns 25600
|
||||||
|
#define kMaxChannels 4096
|
||||||
|
|
||||||
|
struct RunStruct
|
||||||
|
{
|
||||||
|
union
|
||||||
|
{
|
||||||
|
int nMoves;
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
short nVal;
|
||||||
|
short nRef;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
short _4;
|
||||||
|
short _6;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct RunChannel
|
||||||
|
{
|
||||||
|
short a;
|
||||||
|
short b;
|
||||||
|
short c;
|
||||||
|
short d;
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef void(*AiFunc)(int, int, int nRun);
|
||||||
|
|
||||||
|
extern RunStruct RunData[kMaxRuns];
|
||||||
|
extern RunChannel sRunChannels[kMaxChannels];
|
||||||
|
extern short NewRun;
|
||||||
|
extern int nRadialOwner;
|
||||||
|
extern short nRadialSpr;
|
||||||
|
|
||||||
|
void runlist_InitRun();
|
||||||
|
|
||||||
|
int runlist_GrabRun();
|
||||||
|
int runlist_FreeRun(int nRun);
|
||||||
|
int runlist_AddRunRec(int a, int b);
|
||||||
|
int runlist_HeadRun();
|
||||||
|
void runlist_InitChan();
|
||||||
|
void runlist_ChangeChannel(int eax, short dx);
|
||||||
|
void runlist_ReadyChannel(short eax);
|
||||||
|
void runlist_ProcessSectorTag(int nSector, int nLotag, int nHitag);
|
||||||
|
int runlist_AllocChannel(int a);
|
||||||
|
void runlist_DoSubRunRec(int RunPtr);
|
||||||
|
void runlist_SubRunRec(int RunPtr);
|
||||||
|
void runlist_ProcessWallTag(int nWall, short nLotag, short nHitag);
|
||||||
|
int runlist_CheckRadialDamage(short nSprite);
|
||||||
|
void runlist_RadialDamageEnemy(short nSprite, short nDamage, short nRadius);
|
||||||
|
void runlist_DamageEnemy(int nSprite, int nSprite2, short nDamage);
|
||||||
|
void runlist_SignalRun(int NxtPtr, int edx);
|
||||||
|
|
||||||
|
void runlist_CleanRunRecs();
|
||||||
|
void runlist_ExecObjects();
|
||||||
|
|
||||||
|
// scorp
|
||||||
|
|
||||||
|
void InitScorp();
|
||||||
|
int BuildScorp(short nSprite, int x, int y, int z, short nSector, short nAngle, int nChannel);
|
||||||
|
void FuncScorp(int, int, int);
|
||||||
|
|
||||||
|
// set
|
||||||
|
|
||||||
|
void InitSets();
|
||||||
|
int BuildSet(short nSprite, int x, int y, int z, short nSector, short nAngle, int nChannel);
|
||||||
|
void FuncSoul(int, int, int);
|
||||||
|
void FuncSet(int, int, int);
|
||||||
|
|
||||||
|
// snake
|
||||||
|
|
||||||
|
#define kSnakeSprites 8 // or rename to kSnakeParts?
|
||||||
|
|
||||||
|
// 32bytes
|
||||||
|
struct Snake
|
||||||
|
{
|
||||||
|
short nEnemy; // nRun
|
||||||
|
short nSprites[kSnakeSprites];
|
||||||
|
|
||||||
|
short sC;
|
||||||
|
short nRun;
|
||||||
|
|
||||||
|
// array?
|
||||||
|
char c[8];
|
||||||
|
/*
|
||||||
|
char c1;
|
||||||
|
char c2;
|
||||||
|
char c3;
|
||||||
|
char c4;
|
||||||
|
char c5;
|
||||||
|
char c6;
|
||||||
|
char c7;
|
||||||
|
char c8;
|
||||||
|
*/
|
||||||
|
|
||||||
|
short sE;
|
||||||
|
};
|
||||||
|
|
||||||
|
extern Snake SnakeList[];
|
||||||
|
|
||||||
|
void InitSnakes();
|
||||||
|
short GrabSnake();
|
||||||
|
int BuildSnake(short nPlayer, short zVal);
|
||||||
|
void FuncSnake(int, int, int);
|
||||||
|
|
||||||
|
// spider
|
||||||
|
|
||||||
|
void InitSpider();
|
||||||
|
int BuildSpider(int nSprite, int x, int y, int z, short nSector, int nAngle);
|
||||||
|
void FuncSpider(int a, int b, int nRun);
|
||||||
|
|
||||||
|
// switch
|
||||||
|
|
||||||
|
#define kMaxLinks 1024
|
||||||
|
#define kMaxSwitches 1024
|
||||||
|
|
||||||
|
void InitLink();
|
||||||
|
void InitSwitch();
|
||||||
|
|
||||||
|
void FuncSwReady(int, int, int);
|
||||||
|
void FuncSwPause(int, int, int);
|
||||||
|
void FuncSwStepOn(int, int, int);
|
||||||
|
void FuncSwNotOnPause(int, int, int);
|
||||||
|
void FuncSwPressSector(int, int, int);
|
||||||
|
void FuncSwPressWall(int, int, int);
|
||||||
|
|
||||||
|
int BuildSwPause(int nChannel, int nLink, int ebx);
|
||||||
|
int BuildSwNotOnPause(int nChannel, int nLink, int nSector, int ecx);
|
||||||
|
int BuildLink(int nCount, ...);
|
||||||
|
int BuildSwPressSector(int nChannel, int nLink, int nSector, int ecx);
|
||||||
|
int BuildSwStepOn(int nChannel, int nLink, int nSector);
|
||||||
|
int BuildSwReady(int nChannel, short nLink);
|
||||||
|
|
||||||
|
int BuildSwPressWall(short nChannel, short nLink, short nWall);
|
||||||
|
|
||||||
|
// wasp
|
||||||
|
|
||||||
|
extern short nWaspCount;
|
||||||
|
|
||||||
|
void InitWasps();
|
||||||
|
int BuildWasp(short nSprite, int x, int y, int z, short nSector, short nAngle);
|
||||||
|
void FuncWasp(int eax, int edx, int nRun);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define kMessageMask 0x7F0000
|
#define kMessageMask 0x7F0000
|
||||||
|
inline int GrabTimeSlot(int nVal) { return -1; }
|
||||||
#define kAIFish 0x120000
|
|
||||||
|
|
||||||
void InitTimeSlot();
|
|
||||||
int GrabTimeSlot(int nVal);
|
|
||||||
|
|
||||||
END_PS_NS
|
END_PS_NS
|
||||||
|
|
||||||
|
|
|
@ -17,9 +17,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "anims.h"
|
#include "aistuff.h"
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
|
|
|
@ -1,48 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __anims_h__
|
|
||||||
#define __anims_h__
|
|
||||||
|
|
||||||
#include "compat.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
struct Anim
|
|
||||||
{
|
|
||||||
short nSeq;
|
|
||||||
short field_2;
|
|
||||||
short field_4;
|
|
||||||
short nSprite;
|
|
||||||
};
|
|
||||||
|
|
||||||
extern Anim AnimList[];
|
|
||||||
extern uint8_t AnimFlags[];
|
|
||||||
|
|
||||||
void InitAnims();
|
|
||||||
void DestroyAnim(int nAnim);
|
|
||||||
int BuildAnim(int nSprite, int val, int val2, int x, int y, int z, int nSector, int nRepeat, int nFlag);
|
|
||||||
short GetAnimSprite(short nAnim);
|
|
||||||
|
|
||||||
void FuncAnim(int, int, int);
|
|
||||||
void BuildExplosion(short nSprite);
|
|
||||||
int BuildSplash(int nSprite, int nSector);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -17,16 +17,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "anubis.h"
|
|
||||||
#include "aistuff.h"
|
#include "aistuff.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "move.h"
|
|
||||||
#include "bullet.h"
|
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "items.h"
|
|
||||||
#include "object.h"
|
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __anubis_h__
|
|
||||||
#define __anubis_h__
|
|
||||||
|
|
||||||
#include "compat.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
void InitAnubis();
|
|
||||||
int BuildAnubis(int nSprite, int x, int y, int z, int nSector, int nAngle, uint8_t bIsDrummer);
|
|
||||||
|
|
||||||
void FuncAnubis(int a, int b, int c);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -16,17 +16,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "bubbles.h"
|
#include "aistuff.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "move.h"
|
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "anims.h"
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
BEGIN_PS_NS
|
BEGIN_PS_NS
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __bubbles_h__
|
|
||||||
#define __bubbles_h__
|
|
||||||
|
|
||||||
#include "aistuff.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
void InitBubbles();
|
|
||||||
void BuildBubbleMachine(int nSprite);
|
|
||||||
void DoBubbleMachines();
|
|
||||||
void DoBubbles(int nPlayer);
|
|
||||||
void FuncBubble(int, int, int);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -17,21 +17,15 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "bullet.h"
|
#include "aistuff.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "anims.h"
|
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "move.h"
|
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "gun.h"
|
|
||||||
#include "names.h"
|
#include "names.h"
|
||||||
#include "lighting.h"
|
|
||||||
#include "object.h"
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#ifndef __WATCOMC__
|
#ifndef __WATCOMC__
|
||||||
|
|
|
@ -1,60 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __bullet_h__
|
|
||||||
#define __bullet_h__
|
|
||||||
|
|
||||||
#include "aistuff.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
// 32 bytes
|
|
||||||
struct bulletInfo
|
|
||||||
{
|
|
||||||
short nDamage; // 0
|
|
||||||
short field_2; // 2
|
|
||||||
int field_4; // 4
|
|
||||||
short field_8; // 8
|
|
||||||
short nSeq; // 10
|
|
||||||
short field_C; // 12
|
|
||||||
short nFlags;
|
|
||||||
short nRadius; // damage radius
|
|
||||||
short xyRepeat;
|
|
||||||
};
|
|
||||||
|
|
||||||
extern bulletInfo BulletInfo[];
|
|
||||||
|
|
||||||
extern short nRadialBullet;
|
|
||||||
extern short lasthitsect;
|
|
||||||
extern int lasthitz;
|
|
||||||
extern int lasthitx;
|
|
||||||
extern int lasthity;
|
|
||||||
|
|
||||||
void InitBullets();
|
|
||||||
short GrabBullet();
|
|
||||||
void DestroyBullet(short nRun);
|
|
||||||
int MoveBullet(short nBullet);
|
|
||||||
void SetBulletEnemy(short nBullet, short nEnemy);
|
|
||||||
int BuildBullet(short nSprite, int nType, int ebx, int ecx, int val1, int nAngle, int val2, int val3);
|
|
||||||
void IgniteSprite(int nSprite);
|
|
||||||
void FuncBullet(int, int, int);
|
|
||||||
void BackUpBullet(int *x, int *y, short nAngle);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -59,11 +59,6 @@ void overwritesprite(int thex, int they, short tilenum, signed char shade, char
|
||||||
picanm[tilenum].sf = animbak;
|
picanm[tilenum].sf = animbak;
|
||||||
}
|
}
|
||||||
|
|
||||||
void permanentwritesprite(int thex, int they, short tilenum, signed char shade, int cx1, int cy1, int cx2, int cy2, char dapalnum)
|
|
||||||
{
|
|
||||||
rotatesprite(thex << 16, they << 16, 65536L, 0, tilenum, shade, dapalnum, 8 + 16, cx1, cy1, cx2, cy2);
|
|
||||||
}
|
|
||||||
|
|
||||||
void resettiming()
|
void resettiming()
|
||||||
{
|
{
|
||||||
numframes = 0L;
|
numframes = 0L;
|
||||||
|
|
|
@ -18,7 +18,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
#include "baselayer.h"
|
#include "baselayer.h"
|
||||||
#include "baselayer.h"
|
|
||||||
#include "typedefs.h"
|
#include "typedefs.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
|
@ -37,32 +36,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "status.h"
|
#include "status.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "ra.h"
|
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "timer.h"
|
|
||||||
#include "runlist.h"
|
|
||||||
#include "anubis.h"
|
|
||||||
#include "spider.h"
|
|
||||||
#include "mummy.h"
|
|
||||||
#include "fish.h"
|
|
||||||
#include "lion.h"
|
|
||||||
#include "light.h"
|
#include "light.h"
|
||||||
#include "move.h"
|
#include "aistuff.h"
|
||||||
#include "lavadude.h"
|
|
||||||
#include "rex.h"
|
|
||||||
#include "set.h"
|
|
||||||
#include "queen.h"
|
|
||||||
#include "roach.h"
|
|
||||||
#include "wasp.h"
|
|
||||||
#include "scorp.h"
|
|
||||||
#include "rat.h"
|
|
||||||
#include "serial.h"
|
|
||||||
#include "network.h"
|
#include "network.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "items.h"
|
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "record.h"
|
#include "record.h"
|
||||||
#include "lighting.h"
|
|
||||||
#include "mapinfo.h"
|
#include "mapinfo.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <cstdio> // for printf
|
#include <cstdio> // for printf
|
||||||
|
@ -85,6 +65,7 @@ BEGIN_PS_NS
|
||||||
|
|
||||||
|
|
||||||
void FinishLevel();
|
void FinishLevel();
|
||||||
|
void uploadCinemaPalettes();
|
||||||
|
|
||||||
int htimer = 0;
|
int htimer = 0;
|
||||||
|
|
||||||
|
@ -597,6 +578,49 @@ int loaddefinitions_game(const char *fileName, int32_t firstPass)
|
||||||
|
|
||||||
////////
|
////////
|
||||||
|
|
||||||
|
void ResetEngine()
|
||||||
|
{
|
||||||
|
EraseScreen(-1);
|
||||||
|
|
||||||
|
resettiming();
|
||||||
|
|
||||||
|
totalclock = 0;
|
||||||
|
ototalclock = totalclock;
|
||||||
|
localclock = (int)totalclock;
|
||||||
|
|
||||||
|
numframes = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void InstallEngine()
|
||||||
|
{
|
||||||
|
// initgroupfile("stuff.dat");
|
||||||
|
TileFiles.LoadArtSet("tiles%03d.art");
|
||||||
|
|
||||||
|
// TEMP
|
||||||
|
|
||||||
|
//nScreenWidth *= 2;
|
||||||
|
//nScreenHeight *= 2;
|
||||||
|
bHiRes = kTrue;
|
||||||
|
// TEMP
|
||||||
|
|
||||||
|
if (engineInit())
|
||||||
|
{
|
||||||
|
G_FatalEngineError();
|
||||||
|
}
|
||||||
|
uploadCinemaPalettes();
|
||||||
|
LoadPaletteLookups();
|
||||||
|
videoInit();
|
||||||
|
|
||||||
|
enginecompatibility_mode = ENGINECOMPATIBILITY_19950829;
|
||||||
|
}
|
||||||
|
|
||||||
|
void RemoveEngine()
|
||||||
|
{
|
||||||
|
engineUnInit();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const uint32_t kSpiritX = 106;
|
const uint32_t kSpiritX = 106;
|
||||||
const uint32_t kSpiritY = 97;
|
const uint32_t kSpiritY = 97;
|
||||||
|
|
||||||
|
@ -672,7 +696,6 @@ short nButtonColor;
|
||||||
short nEnergyChan;
|
short nEnergyChan;
|
||||||
|
|
||||||
|
|
||||||
short bSerialPlay = kFalse;
|
|
||||||
short bModemPlay = kFalse;
|
short bModemPlay = kFalse;
|
||||||
int lCountDown = 0;
|
int lCountDown = 0;
|
||||||
short nEnergyTowers = 0;
|
short nEnergyTowers = 0;
|
||||||
|
@ -759,13 +782,6 @@ void DebugOut(const char *fmt, ...)
|
||||||
void ShutDown(void)
|
void ShutDown(void)
|
||||||
{
|
{
|
||||||
StopCD();
|
StopCD();
|
||||||
if (bSerialPlay)
|
|
||||||
{
|
|
||||||
if (bModemPlay) {
|
|
||||||
HangUp();
|
|
||||||
}
|
|
||||||
UnInitSerial();
|
|
||||||
}
|
|
||||||
|
|
||||||
RemoveEngine();
|
RemoveEngine();
|
||||||
UnInitNet();
|
UnInitNet();
|
||||||
|
@ -1603,14 +1619,6 @@ void ExitGame()
|
||||||
fclose(vcrfp);
|
fclose(vcrfp);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bSerialPlay)
|
|
||||||
{
|
|
||||||
if (nNetPlayerCount != 0) {
|
|
||||||
bSendBye = kTrue;
|
|
||||||
UpdateSerialInputs();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if (nNetPlayerCount != 0) {
|
if (nNetPlayerCount != 0) {
|
||||||
SendGoodbye();
|
SendGoodbye();
|
||||||
|
@ -1665,55 +1673,11 @@ void CheckCommandLine(int argc, char const* const* argv, int &doTitle)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (Bstrncasecmp(pChar, "null", 4) == 0)
|
|
||||||
{
|
|
||||||
pChar += 4;
|
|
||||||
|
|
||||||
bSerialPlay = kTrue;
|
|
||||||
nNetPlayerCount = 1;
|
|
||||||
nTotalPlayers = 2;
|
|
||||||
|
|
||||||
doTitle = kFalse;
|
|
||||||
|
|
||||||
char ch = *pChar;
|
|
||||||
|
|
||||||
// bjd - unused/unfished code in original .exe?
|
|
||||||
switch (ch - 1)
|
|
||||||
{
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 0:
|
|
||||||
case 1:
|
|
||||||
case 2:
|
|
||||||
case 3:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (forcelevel < 0)
|
|
||||||
{
|
|
||||||
forcelevel = levelnew;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (Bstrcasecmp(pChar, "modem") == 0)
|
|
||||||
{
|
|
||||||
bModemPlay = kTrue;
|
|
||||||
bSerialPlay = kTrue;
|
|
||||||
nNetPlayerCount = 1;
|
|
||||||
nTotalPlayers = 2;
|
|
||||||
|
|
||||||
doTitle = kFalse;
|
|
||||||
|
|
||||||
if (forcelevel < 0) {
|
|
||||||
forcelevel = levelnew;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (Bstrcasecmp(pChar, "network") == 0)
|
else if (Bstrcasecmp(pChar, "network") == 0)
|
||||||
{
|
{
|
||||||
nNetPlayerCount = -1;
|
nNetPlayerCount = -1;
|
||||||
forcelevel = levelnew;
|
forcelevel = levelnew;
|
||||||
bModemPlay = kFalse;
|
bModemPlay = kFalse;
|
||||||
bSerialPlay = kFalse;
|
|
||||||
|
|
||||||
doTitle = kFalse;
|
doTitle = kFalse;
|
||||||
}
|
}
|
||||||
|
@ -1821,6 +1785,14 @@ static const char* actions[] =
|
||||||
"Zoom_Out",
|
"Zoom_Out",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void InitTimer()
|
||||||
|
{
|
||||||
|
htimer = 1;
|
||||||
|
|
||||||
|
timerInit(kTimerTicks);
|
||||||
|
timerSetCallback(timerhandler);
|
||||||
|
}
|
||||||
|
|
||||||
int GameInterface::app_main()
|
int GameInterface::app_main()
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -1900,26 +1872,6 @@ int GameInterface::app_main()
|
||||||
if (nNetTime == 0) {
|
if (nNetTime == 0) {
|
||||||
nNetTime = -1;
|
nNetTime = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int nWaitTicks = 0;
|
|
||||||
|
|
||||||
if (!bSerialPlay)
|
|
||||||
{
|
|
||||||
if (InitNet(socket, nTotalPlayers))
|
|
||||||
{
|
|
||||||
DebugOut("Found network players!\n");
|
|
||||||
nWaitTicks = 30;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
AbortNetworkPlay();
|
|
||||||
DebugOut("Network play aborted\n");
|
|
||||||
Printf("Network play aborted\n");
|
|
||||||
nWaitTicks = 60;
|
|
||||||
}
|
|
||||||
|
|
||||||
WaitTicks(nWaitTicks);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1960,10 +1912,6 @@ int GameInterface::app_main()
|
||||||
ResetView();
|
ResetView();
|
||||||
GrabPalette();
|
GrabPalette();
|
||||||
|
|
||||||
if (bSerialPlay && !InitSerial()) {
|
|
||||||
I_Error("Unable to connect");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (doTitle)
|
if (doTitle)
|
||||||
{
|
{
|
||||||
while (!stopTitle)
|
while (!stopTitle)
|
||||||
|
@ -2156,10 +2104,6 @@ LOOP3:
|
||||||
|
|
||||||
RefreshStatus();
|
RefreshStatus();
|
||||||
|
|
||||||
if (bSerialPlay) {
|
|
||||||
ClearSerialInbuf();
|
|
||||||
}
|
|
||||||
|
|
||||||
//int edi = totalclock;
|
//int edi = totalclock;
|
||||||
tclocks2 = totalclock;
|
tclocks2 = totalclock;
|
||||||
// Game Loop
|
// Game Loop
|
||||||
|
|
|
@ -228,8 +228,6 @@ extern int localclock;
|
||||||
|
|
||||||
extern int moveframes;
|
extern int moveframes;
|
||||||
|
|
||||||
extern short bSerialPlay;
|
|
||||||
|
|
||||||
extern int nNetPlayerCount;
|
extern int nNetPlayerCount;
|
||||||
|
|
||||||
extern int htimer;
|
extern int htimer;
|
||||||
|
|
|
@ -16,14 +16,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "fish.h"
|
#include "aistuff.h"
|
||||||
#include "anims.h"
|
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "move.h"
|
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __fish_h__
|
|
||||||
#define __fish_h__
|
|
||||||
|
|
||||||
#include "aistuff.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
void InitFishes();
|
|
||||||
int BuildFish(int nSprite, int x, int y, int z, int nSector, int nAngle);
|
|
||||||
void FuncFish(int, int, int);
|
|
||||||
void FuncFishLimb(int a, int b, int c);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -16,18 +16,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "grenade.h"
|
#include "aistuff.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "move.h"
|
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "bullet.h"
|
|
||||||
#include "gun.h"
|
|
||||||
#include "anims.h"
|
|
||||||
#include "lighting.h"
|
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __grenade_h__
|
|
||||||
#define __grenade_h__
|
|
||||||
|
|
||||||
#include "aistuff.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
#define kMaxGrenades 50
|
|
||||||
|
|
||||||
void InitGrenades();
|
|
||||||
int BuildGrenade(int nPlayer);
|
|
||||||
void DestroyGrenade(short nGrenade);
|
|
||||||
int ThrowGrenade(short nPlayer, int edx, int ebx, int ecx, int push1);
|
|
||||||
void FuncGrenade(int, int, int);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -16,32 +16,23 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "gun.h"
|
#include "aistuff.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "move.h"
|
|
||||||
#include "status.h"
|
#include "status.h"
|
||||||
#include "bubbles.h"
|
|
||||||
#include "typedefs.h"
|
#include "typedefs.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "ra.h"
|
|
||||||
#include "snake.h"
|
|
||||||
#include "grenade.h"
|
|
||||||
#include "lighting.h"
|
|
||||||
#include "light.h"
|
#include "light.h"
|
||||||
#include "ps_input.h"
|
#include "ps_input.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "anims.h"
|
|
||||||
#include "runlist.h"
|
|
||||||
#include "bullet.h"
|
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "object.h"
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include "v_2ddrawer.h"
|
#include "v_2ddrawer.h"
|
||||||
|
#include "sequence.h"
|
||||||
|
|
||||||
BEGIN_PS_NS
|
BEGIN_PS_NS
|
||||||
|
|
||||||
|
|
|
@ -1,71 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __gun_h__
|
|
||||||
#define __gun_h__
|
|
||||||
|
|
||||||
#include "compat.h"
|
|
||||||
#include "sequence.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
#define kMaxWeapons 7
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
kWeaponSword = 0,
|
|
||||||
kWeaponPistol,
|
|
||||||
kWeaponM60,
|
|
||||||
kWeaponFlamer,
|
|
||||||
kWeaponGrenade,
|
|
||||||
kWeaponStaff,
|
|
||||||
kWeaponRing,
|
|
||||||
kWeaponMummified
|
|
||||||
};
|
|
||||||
|
|
||||||
struct Weapon
|
|
||||||
{
|
|
||||||
short nSeq;
|
|
||||||
short b[12]; // seq offsets?
|
|
||||||
short nAmmoType;
|
|
||||||
short c;
|
|
||||||
short d; // default or min ammo? or ammo used per 'shot' ?
|
|
||||||
short bFireUnderwater;
|
|
||||||
// short pad[15];
|
|
||||||
};
|
|
||||||
|
|
||||||
extern Weapon WeaponInfo[];
|
|
||||||
extern short nTemperature[];
|
|
||||||
|
|
||||||
void RestoreMinAmmo(short nPlayer);
|
|
||||||
void FillWeapons(short nPlayer);
|
|
||||||
void ResetPlayerWeapons(short nPlayer);
|
|
||||||
void InitWeapons();
|
|
||||||
void SetNewWeapon(short nPlayer, short nWeapon);
|
|
||||||
void SetNewWeaponImmediate(short nPlayer, short nWeapon);
|
|
||||||
void SetNewWeaponIfBetter(short nPlayer, short nWeapon);
|
|
||||||
void SelectNewWeapon(short nPlayer);
|
|
||||||
void StopFiringWeapon(short nPlayer);
|
|
||||||
void FireWeapon(short nPlayer);
|
|
||||||
void CheckClip(short nPlayer);
|
|
||||||
void MoveWeapons(short nPlayer);
|
|
||||||
void DrawWeapons(int smooth);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -18,25 +18,15 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "switch.h"
|
|
||||||
#include "object.h"
|
|
||||||
#include "aistuff.h"
|
#include "aistuff.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "mummy.h"
|
|
||||||
#include "move.h"
|
|
||||||
#include "ra.h"
|
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "items.h"
|
|
||||||
#include "light.h"
|
#include "light.h"
|
||||||
#include "map.h"
|
#include "map.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
#include "lighting.h"
|
|
||||||
#include "anims.h"
|
|
||||||
#include "ps_input.h"
|
#include "ps_input.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "mapinfo.h"
|
#include "mapinfo.h"
|
||||||
|
@ -52,7 +42,6 @@ enum
|
||||||
kTagRamses = 61,
|
kTagRamses = 61,
|
||||||
};
|
};
|
||||||
|
|
||||||
void uploadCinemaPalettes();
|
|
||||||
ClockTicks ototalclock = 0;
|
ClockTicks ototalclock = 0;
|
||||||
|
|
||||||
int initx, inity, initz;
|
int initx, inity, initz;
|
||||||
|
@ -182,47 +171,6 @@ uint8_t LoadLevel(int nMap)
|
||||||
return kTrue;
|
return kTrue;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ResetEngine()
|
|
||||||
{
|
|
||||||
EraseScreen(-1);
|
|
||||||
|
|
||||||
resettiming();
|
|
||||||
|
|
||||||
totalclock = 0;
|
|
||||||
ototalclock = totalclock;
|
|
||||||
localclock = (int)totalclock;
|
|
||||||
|
|
||||||
numframes = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void InstallEngine()
|
|
||||||
{
|
|
||||||
// initgroupfile("stuff.dat");
|
|
||||||
TileFiles.LoadArtSet("tiles%03d.art");
|
|
||||||
|
|
||||||
// TEMP
|
|
||||||
|
|
||||||
//nScreenWidth *= 2;
|
|
||||||
//nScreenHeight *= 2;
|
|
||||||
bHiRes = kTrue;
|
|
||||||
// TEMP
|
|
||||||
|
|
||||||
if (engineInit())
|
|
||||||
{
|
|
||||||
G_FatalEngineError();
|
|
||||||
}
|
|
||||||
uploadCinemaPalettes();
|
|
||||||
LoadPaletteLookups();
|
|
||||||
videoInit();
|
|
||||||
|
|
||||||
enginecompatibility_mode = ENGINECOMPATIBILITY_19950829;
|
|
||||||
}
|
|
||||||
|
|
||||||
void RemoveEngine()
|
|
||||||
{
|
|
||||||
engineUnInit();
|
|
||||||
}
|
|
||||||
|
|
||||||
void SetBelow(short nCurSector, short nBelowSector)
|
void SetBelow(short nCurSector, short nBelowSector)
|
||||||
{
|
{
|
||||||
SectBelow[nCurSector] = nBelowSector;
|
SectBelow[nCurSector] = nBelowSector;
|
||||||
|
@ -856,7 +804,6 @@ void LoadObjects()
|
||||||
InitSwitch();
|
InitSwitch();
|
||||||
InitElev();
|
InitElev();
|
||||||
InitWallFace();
|
InitWallFace();
|
||||||
InitTimeSlot();
|
|
||||||
InitSectFlag();
|
InitSectFlag();
|
||||||
|
|
||||||
for (int nSector = 0; nSector < numsectors; nSector++)
|
for (int nSector = 0; nSector < numsectors; nSector++)
|
||||||
|
|
|
@ -56,9 +56,6 @@ extern short SectSoundSect[];
|
||||||
extern int SectAbove[];
|
extern int SectAbove[];
|
||||||
|
|
||||||
uint8_t LoadLevel(int nMap);
|
uint8_t LoadLevel(int nMap);
|
||||||
void InstallEngine();
|
|
||||||
void ResetEngine();
|
|
||||||
void RemoveEngine();
|
|
||||||
void LoadObjects();
|
void LoadObjects();
|
||||||
|
|
||||||
int myloadconfig();
|
int myloadconfig();
|
||||||
|
|
|
@ -20,7 +20,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "serial.h"
|
|
||||||
#include "network.h"
|
#include "network.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -136,12 +135,7 @@ void UpdateInputs()
|
||||||
|
|
||||||
if (nNetPlayerCount)
|
if (nNetPlayerCount)
|
||||||
{
|
{
|
||||||
if (bSerialPlay) {
|
UpdateNetInputs();
|
||||||
UpdateSerialInputs();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
UpdateNetInputs();
|
|
||||||
}
|
|
||||||
|
|
||||||
nNetMoves++;
|
nNetMoves++;
|
||||||
|
|
||||||
|
|
|
@ -16,18 +16,15 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "items.h"
|
#include "aistuff.h"
|
||||||
#include "anims.h"
|
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "lighting.h"
|
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "status.h"
|
#include "status.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "ps_input.h"
|
#include "ps_input.h"
|
||||||
#include "object.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
BEGIN_PS_NS
|
||||||
|
|
||||||
|
|
|
@ -1,56 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __items_h__
|
|
||||||
#define __items_h__
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
kItemHeart = 0,
|
|
||||||
kItemInvincibility,
|
|
||||||
kItemTorch,
|
|
||||||
kItemDoubleDamage,
|
|
||||||
kItemInvisibility,
|
|
||||||
kItemMask,
|
|
||||||
};
|
|
||||||
|
|
||||||
extern short nItemMagic[];
|
|
||||||
|
|
||||||
void BuildItemAnim(short nSprite);
|
|
||||||
void DestroyItemAnim(short nSprite);
|
|
||||||
void ItemFlash();
|
|
||||||
void FillItems(short nPlayer);
|
|
||||||
void UseEye(short nPlayer);
|
|
||||||
void UseMask(short nPlayer);
|
|
||||||
void UseTorch(short nPlayer);
|
|
||||||
void UseHeart(short nPlayer);
|
|
||||||
void UseScarab(short nPlayer);
|
|
||||||
void UseHand(short nPlayer);
|
|
||||||
void UseItem(short nPlayer, short nItem);
|
|
||||||
void UseCurItem(short nPlayer);
|
|
||||||
int GrabItem(short nPlayer, short nItem);
|
|
||||||
void DropMagic(short nSprite);
|
|
||||||
void InitItems();
|
|
||||||
void StartRegenerate(short nSprite);
|
|
||||||
void DoRegenerates();
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -17,15 +17,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "lavadude.h"
|
#include "aistuff.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "move.h"
|
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "move.h"
|
|
||||||
#include "bullet.h"
|
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __lavadude_h__
|
|
||||||
#define __lavadude_h__
|
|
||||||
|
|
||||||
#include "aistuff.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
void InitLava();
|
|
||||||
int BuildLava(short nSprite, int x, int y, int z, short nSector, short nAngle, int nChannel);
|
|
||||||
int BuildLavaLimb(int nSprite, int edx, int ebx);
|
|
||||||
void FuncLavaLimb(int, int, int);
|
|
||||||
void FuncLava(int, int, int);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -21,7 +21,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "cd.h"
|
#include "cd.h"
|
||||||
#include "lighting.h"
|
#include "aistuff.h"
|
||||||
#include "../glbackend/glbackend.h"
|
#include "../glbackend/glbackend.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -182,14 +182,6 @@ void WaitTicks(int nTicks)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// unused
|
|
||||||
void DoFadeToRed()
|
|
||||||
{
|
|
||||||
// fixme
|
|
||||||
videoTintBlood(-255, -255, -255);
|
|
||||||
videoNextPage();
|
|
||||||
}
|
|
||||||
|
|
||||||
void FadeToWhite()
|
void FadeToWhite()
|
||||||
{
|
{
|
||||||
// fixme
|
// fixme
|
||||||
|
|
|
@ -17,7 +17,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "typedefs.h"
|
#include "typedefs.h"
|
||||||
#include "lighting.h"
|
#include "aistuff.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
|
|
|
@ -1,40 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __lighting_h__
|
|
||||||
#define __lighting_h__
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
extern short nFlashDepth;
|
|
||||||
|
|
||||||
void InitLights();
|
|
||||||
void AddFlash(short nSector, int x, int y, int z, int val);
|
|
||||||
void SetTorch(int nPlayer, int bTorchOnOff);
|
|
||||||
void UndoFlashes();
|
|
||||||
void DoLights();
|
|
||||||
void AddFlow(int nSprite, int nSpeed, int b);
|
|
||||||
void BuildFlash(short nPlayer, short nSector, int nVal);
|
|
||||||
void AddGlow(short nSector, int nVal);
|
|
||||||
void AddFlicker(short nSector, int nVal);
|
|
||||||
|
|
||||||
extern short bTorch;
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -16,16 +16,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "lion.h"
|
#include "aistuff.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "move.h"
|
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "items.h"
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
BEGIN_PS_NS
|
BEGIN_PS_NS
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __lion_h__
|
|
||||||
#define __lion_h__
|
|
||||||
|
|
||||||
#include "aistuff.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
void InitLion();
|
|
||||||
int BuildLion(short nSprite, int x, int y, int z, short nSector, short nAngle);
|
|
||||||
void FuncLion(int, int, int);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -20,6 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "typedefs.h"
|
#include "typedefs.h"
|
||||||
|
#include "aistuff.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
|
@ -32,9 +33,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "names.h"
|
#include "names.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "ps_input.h"
|
#include "ps_input.h"
|
||||||
#include "gun.h"
|
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "object.h"
|
|
||||||
#include "light.h"
|
#include "light.h"
|
||||||
#include "cd.h"
|
#include "cd.h"
|
||||||
#include "raze_sound.h"
|
#include "raze_sound.h"
|
||||||
|
|
|
@ -1,74 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
#include "ns.h"
|
|
||||||
/*
|
|
||||||
Name: MonoClear_
|
|
||||||
address = 0001:0001CF5A
|
|
||||||
module index = 24
|
|
||||||
kind: (code)
|
|
||||||
Name: MonoInUse_
|
|
||||||
address = 0001:0001CF8A
|
|
||||||
module index = 24
|
|
||||||
kind: (code)
|
|
||||||
Name: MonoOpen_
|
|
||||||
address = 0001:0001CF8A
|
|
||||||
module index = 24
|
|
||||||
kind: (code)
|
|
||||||
Name: MonoClose_
|
|
||||||
address = 0001:0001CF8D
|
|
||||||
module index = 24
|
|
||||||
kind: (code)
|
|
||||||
Name: MonoOut_
|
|
||||||
address = 0001:0001CFAA
|
|
||||||
module index = 24
|
|
||||||
kind: (code)
|
|
||||||
Name: CACopy_
|
|
||||||
address = 0001:0001D1C0
|
|
||||||
module index = 24
|
|
||||||
kind: (static pubdef) (code)
|
|
||||||
Name: CAFill_
|
|
||||||
address = 0001:0001D1CD
|
|
||||||
module index = 24
|
|
||||||
kind: (static pubdef) (code)
|
|
||||||
Name: MonoQuery_
|
|
||||||
address = 0001:0001D1E6
|
|
||||||
module index = 24
|
|
||||||
kind: (code)
|
|
||||||
Name: _rowCur
|
|
||||||
address = 0003:000073D8
|
|
||||||
module index = 24
|
|
||||||
kind: (data)
|
|
||||||
Name: _colCur
|
|
||||||
address = 0003:000073DC
|
|
||||||
module index = 24
|
|
||||||
kind: (data)
|
|
||||||
Name: _fMonoOpen
|
|
||||||
address = 0003:000073E0
|
|
||||||
module index = 24
|
|
||||||
kind: (data)
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
|
||||||
#include "mono.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
int rowCur = 0;
|
|
||||||
int colCur = 0;
|
|
||||||
|
|
||||||
END_PS_NS
|
|
|
@ -1,24 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __mono_h__
|
|
||||||
#define __mono_h__
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -18,21 +18,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "move.h"
|
#include "aistuff.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "lighting.h"
|
|
||||||
#include "bubbles.h"
|
|
||||||
#include "object.h"
|
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "status.h"
|
#include "status.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "items.h"
|
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "anims.h"
|
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "bullet.h"
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#ifndef __WATCOMC__
|
#ifndef __WATCOMC__
|
||||||
|
|
|
@ -1,82 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __move_h__
|
|
||||||
#define __move_h__
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
// 16 bytes
|
|
||||||
struct BlockInfo
|
|
||||||
{
|
|
||||||
int x;
|
|
||||||
int y;
|
|
||||||
int field_8;
|
|
||||||
short nSprite;
|
|
||||||
};
|
|
||||||
extern BlockInfo sBlockInfo[];
|
|
||||||
|
|
||||||
extern int hihit;
|
|
||||||
extern short nChunkSprite[];
|
|
||||||
extern short nBodySprite[];
|
|
||||||
|
|
||||||
signed int lsqrt(int a1);
|
|
||||||
void MoveThings();
|
|
||||||
void ResetMoveFifo();
|
|
||||||
void InitChunks();
|
|
||||||
void InitPushBlocks();
|
|
||||||
void Gravity(short nSprite);
|
|
||||||
short UpdateEnemy(short *nEnemy);
|
|
||||||
int MoveCreature(short nSprite);
|
|
||||||
int MoveCreatureWithCaution(int nSprite);
|
|
||||||
void WheresMyMouth(int nPlayer, int *x, int *y, int *z, short *sectnum);
|
|
||||||
|
|
||||||
int GetSpriteHeight(int nSprite);
|
|
||||||
|
|
||||||
int GrabBody();
|
|
||||||
|
|
||||||
int GrabBodyGunSprite();
|
|
||||||
void CreatePushBlock(int nSector);
|
|
||||||
|
|
||||||
void FuncCreatureChunk(int a, int, int nRun);
|
|
||||||
|
|
||||||
int FindPlayer(int nSprite, int nDistance);
|
|
||||||
|
|
||||||
int BuildCreatureChunk(int nVal, int nPic);
|
|
||||||
|
|
||||||
void BuildNear(int x, int y, int walldist, int nSector);
|
|
||||||
int BelowNear(short nSprite);
|
|
||||||
|
|
||||||
int PlotCourseToSprite(int nSprite1, int nSprite2);
|
|
||||||
|
|
||||||
void CheckSectorFloor(short nSector, int z, int *x, int *y);
|
|
||||||
|
|
||||||
int GetAngleToSprite(int nSprite1, int nSprite2);
|
|
||||||
|
|
||||||
int GetWallNormal(short nWall);
|
|
||||||
|
|
||||||
int GetUpAngle(short nSprite1, int nVal, short nSprite2, int ecx);
|
|
||||||
void MoveSector(short nSector, int nAngle, int *nXVel, int *nYVel);
|
|
||||||
|
|
||||||
int AngleChase(int nSprite, int nSprite2, int ebx, int ecx, int push1);
|
|
||||||
|
|
||||||
void SetQuake(short nSprite, int nVal);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -16,16 +16,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "mummy.h"
|
#include "aistuff.h"
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "move.h"
|
|
||||||
#include "map.h"
|
#include "map.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "bullet.h"
|
|
||||||
#include "items.h"
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
|
|
||||||
|
|
|
@ -1,35 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __mummy_h__
|
|
||||||
#define __mummy_h__
|
|
||||||
|
|
||||||
#include "aistuff.h"
|
|
||||||
#include "runlist.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
#define kMaxMummies 150
|
|
||||||
|
|
||||||
void InitMummy();
|
|
||||||
int BuildMummy(int val, int x, int y, int z, int nSector, int nAngle);
|
|
||||||
void FuncMummy(int nSector, int edx, int nRun);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -20,7 +20,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
#include "typedefs.h"
|
#include "typedefs.h"
|
||||||
#include "network.h"
|
#include "network.h"
|
||||||
#include "serial.h"
|
|
||||||
#include "ps_input.h"
|
#include "ps_input.h"
|
||||||
|
|
||||||
BEGIN_PS_NS
|
BEGIN_PS_NS
|
||||||
|
@ -30,7 +29,6 @@ short nNetMoveFrames = 0;
|
||||||
|
|
||||||
void SendGoodbye()
|
void SendGoodbye()
|
||||||
{
|
{
|
||||||
bSendBye = kTrue;
|
|
||||||
UpdateInputs();
|
UpdateInputs();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,11 +43,6 @@ int InitNet(short nSocket, int nPlayers)
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int InitSerial()
|
|
||||||
{
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AbortNetworkPlay()
|
void AbortNetworkPlay()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,6 @@ extern short nNetMoveFrames;
|
||||||
void SendGoodbye();
|
void SendGoodbye();
|
||||||
void UpdateNetInputs();
|
void UpdateNetInputs();
|
||||||
int InitNet(short nSocket, int nPlayers);
|
int InitNet(short nSocket, int nPlayers);
|
||||||
int InitSerial();
|
|
||||||
void AbortNetworkPlay();
|
void AbortNetworkPlay();
|
||||||
void UnInitNet();
|
void UnInitNet();
|
||||||
|
|
||||||
|
|
|
@ -17,22 +17,16 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "object.h"
|
#include "aistuff.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "move.h"
|
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "names.h"
|
#include "names.h"
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "lighting.h"
|
|
||||||
#include "anims.h"
|
|
||||||
#include "items.h"
|
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "bullet.h"
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
|
|
@ -1,90 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __object_h__
|
|
||||||
#define __object_h__
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
#define kMaxPoints 1024
|
|
||||||
#define kMaxSlides 128
|
|
||||||
#define kMaxElevs 1024
|
|
||||||
|
|
||||||
enum kStatus
|
|
||||||
{
|
|
||||||
kStatDestructibleSprite = 97,
|
|
||||||
kStatAnubisDrum,
|
|
||||||
kStatExplodeTrigger = 141,
|
|
||||||
kStatExplodeTarget = 152
|
|
||||||
};
|
|
||||||
|
|
||||||
extern short nSmokeSparks;
|
|
||||||
extern short nDronePitch;
|
|
||||||
extern int lFinaleStart;
|
|
||||||
extern short nFinaleSpr;
|
|
||||||
|
|
||||||
void InitObjects();
|
|
||||||
void InitElev();
|
|
||||||
void InitPoint();
|
|
||||||
void InitSlide();
|
|
||||||
void InitWallFace();
|
|
||||||
void DoDrips();
|
|
||||||
void DoMovingSects();
|
|
||||||
void DoFinale();
|
|
||||||
void PostProcess();
|
|
||||||
|
|
||||||
void FuncElev(int, int, int);
|
|
||||||
void FuncWallFace(int, int, int);
|
|
||||||
void FuncSlide(int, int, int);
|
|
||||||
void FuncObject(int, int, int);
|
|
||||||
void FuncTrap(int, int, int);
|
|
||||||
void FuncEnergyBlock(int, int, int);
|
|
||||||
void FuncSpark(int, int, int);
|
|
||||||
|
|
||||||
void SnapBobs(short nSectorA, short nSectorB);
|
|
||||||
|
|
||||||
short FindWallSprites(short nSector);
|
|
||||||
|
|
||||||
void AddMovingSector(int nSector, int edx, int ebx, int ecx);
|
|
||||||
|
|
||||||
int BuildWallSprite(int nSector);
|
|
||||||
|
|
||||||
void ProcessTrailSprite(int nSprite, int nLotag, int nHitag);
|
|
||||||
|
|
||||||
void AddSectorBob(int nSector, int nHitag, int bx);
|
|
||||||
|
|
||||||
int BuildObject(short nSprite, int nOjectType, int nHitag);
|
|
||||||
|
|
||||||
int BuildArrow(int nSprite, int nVal);
|
|
||||||
|
|
||||||
int BuildFireBall(int nSprite, int a, int b);
|
|
||||||
|
|
||||||
void BuildDrip(int nSprite);
|
|
||||||
|
|
||||||
int BuildEnergyBlock(short nSector);
|
|
||||||
|
|
||||||
int BuildElevC(int arg1, int nChannel, int nSector, int nWallSprite, int arg5, int arg6, int nCount, ...);
|
|
||||||
int BuildElevF(int nChannel, int nSector, int nWallSprite, int arg_4, int arg_5, int nCount, ...);
|
|
||||||
|
|
||||||
int BuildWallFace(short nChannel, short nWall, int nCount, ...);
|
|
||||||
|
|
||||||
int BuildSlide(int nChannel, int edx, int ebx, int ecx, int arg1, int arg2, int arg3);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,24 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __paul_h__
|
|
||||||
#define __paul_h__
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -18,28 +18,19 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "runlist.h"
|
#include "aistuff.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "names.h"
|
#include "names.h"
|
||||||
#include "gun.h"
|
|
||||||
#include "items.h"
|
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "move.h"
|
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "lighting.h"
|
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "bubbles.h"
|
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "ra.h"
|
|
||||||
#include "ps_input.h"
|
#include "ps_input.h"
|
||||||
#include "light.h"
|
#include "light.h"
|
||||||
#include "status.h"
|
#include "status.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "move.h"
|
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "anims.h"
|
|
||||||
#include "grenade.h"
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
#include "cd.h"
|
#include "cd.h"
|
||||||
#include "map.h"
|
#include "map.h"
|
||||||
|
|
|
@ -16,16 +16,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "queen.h"
|
#include "aistuff.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "move.h"
|
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "wasp.h"
|
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "anims.h"
|
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "names.h"
|
#include "names.h"
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __queen_h__
|
|
||||||
#define __queen_h__
|
|
||||||
|
|
||||||
#include "aistuff.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
void InitQueens();
|
|
||||||
int BuildQueen(int nSprite, int x, int y, int z, int nSector, int nAngle, int nVal);
|
|
||||||
void FuncQueenEgg(int, int, int);
|
|
||||||
void FuncQueenHead(int, int, int);
|
|
||||||
void FuncQueen(int, int, int);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -16,16 +16,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "ra.h"
|
#include "aistuff.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "move.h"
|
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "ps_input.h"
|
#include "ps_input.h"
|
||||||
#include "gun.h"
|
|
||||||
#include "bullet.h"
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
BEGIN_PS_NS
|
BEGIN_PS_NS
|
||||||
|
|
|
@ -1,48 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __ra_h__
|
|
||||||
#define __ra_h__
|
|
||||||
|
|
||||||
#include "aistuff.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
struct RA
|
|
||||||
{
|
|
||||||
short nAction;
|
|
||||||
short nFrame;
|
|
||||||
short nRun;
|
|
||||||
short nSprite;
|
|
||||||
short nTarget;
|
|
||||||
short field_A;
|
|
||||||
short field_C;
|
|
||||||
short nPlayer;
|
|
||||||
};
|
|
||||||
|
|
||||||
extern RA Ra[];
|
|
||||||
|
|
||||||
void FreeRa(short nPlayer);
|
|
||||||
int BuildRa(short nPlayer);
|
|
||||||
void InitRa();
|
|
||||||
void MoveRaToEnemy(short nPlayer);
|
|
||||||
void FuncRa(int, int, int);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -16,15 +16,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "rat.h"
|
#include "aistuff.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "move.h"
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
BEGIN_PS_NS
|
BEGIN_PS_NS
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __rat_h__
|
|
||||||
#define __rat_h__
|
|
||||||
|
|
||||||
#include "aistuff.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
void InitRats();
|
|
||||||
void SetRatVel(short nSprite);
|
|
||||||
int BuildRat(short nSprite, int x, int y, int z, short nSector, int nAngle);
|
|
||||||
int FindFood(short nSprite);
|
|
||||||
void FuncRat(int a, int b, int nRun);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -16,17 +16,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "rex.h"
|
#include "aistuff.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "move.h"
|
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "aistuff.h"
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
BEGIN_PS_NS
|
BEGIN_PS_NS
|
||||||
|
|
|
@ -1,30 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __rex_h__
|
|
||||||
#define __rex_h__
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
void InitRexs();
|
|
||||||
int BuildRex(short nSprite, int x, int y, int z, short nSector, short nAngle, int nChannel);
|
|
||||||
void FuncRex(int, int, int);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -16,17 +16,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "roach.h"
|
#include "aistuff.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "typedefs.h"
|
#include "typedefs.h"
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "move.h"
|
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "bullet.h"
|
|
||||||
#include "items.h"
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
BEGIN_PS_NS
|
BEGIN_PS_NS
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __roach_h__
|
|
||||||
#define __roach_h__
|
|
||||||
|
|
||||||
#include "aistuff.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
void InitRoachs();
|
|
||||||
int BuildRoach(int nType, int nSprite, int x, int y, int z, short nSector, int angle);
|
|
||||||
void FuncRoach(int a, int nDamage, int nRun);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -18,35 +18,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "runlist.h"
|
#include "aistuff.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "move.h"
|
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "mummy.h"
|
|
||||||
#include "fish.h"
|
|
||||||
#include "lion.h"
|
|
||||||
#include "rex.h"
|
|
||||||
#include "set.h"
|
|
||||||
#include "rat.h"
|
|
||||||
#include "wasp.h"
|
|
||||||
#include "anubis.h"
|
|
||||||
#include "snake.h"
|
|
||||||
#include "scorp.h"
|
|
||||||
#include "ra.h"
|
|
||||||
#include "spider.h"
|
|
||||||
#include "bullet.h"
|
|
||||||
#include "queen.h"
|
|
||||||
#include "roach.h"
|
|
||||||
#include "bubbles.h"
|
|
||||||
#include "lavadude.h"
|
|
||||||
#include "grenade.h"
|
|
||||||
#include "object.h"
|
|
||||||
#include "switch.h"
|
|
||||||
#include "anims.h"
|
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "lighting.h"
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
BEGIN_PS_NS
|
BEGIN_PS_NS
|
||||||
|
|
|
@ -1,86 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __runlist_h__
|
|
||||||
#define __runlist_h__
|
|
||||||
|
|
||||||
#include "compat.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
|
|
||||||
#define kMaxRuns 25600
|
|
||||||
#define kMaxChannels 4096
|
|
||||||
|
|
||||||
struct RunStruct
|
|
||||||
{
|
|
||||||
union
|
|
||||||
{
|
|
||||||
int nMoves;
|
|
||||||
struct
|
|
||||||
{
|
|
||||||
short nVal;
|
|
||||||
short nRef;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
short _4;
|
|
||||||
short _6;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct RunChannel
|
|
||||||
{
|
|
||||||
short a;
|
|
||||||
short b;
|
|
||||||
short c;
|
|
||||||
short d;
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef void(*AiFunc)(int, int, int nRun);
|
|
||||||
|
|
||||||
extern RunStruct RunData[kMaxRuns];
|
|
||||||
extern RunChannel sRunChannels[kMaxChannels];
|
|
||||||
extern short NewRun;
|
|
||||||
extern int nRadialOwner;
|
|
||||||
extern short nRadialSpr;
|
|
||||||
|
|
||||||
void runlist_InitRun();
|
|
||||||
|
|
||||||
int runlist_GrabRun();
|
|
||||||
int runlist_FreeRun(int nRun);
|
|
||||||
int runlist_AddRunRec(int a, int b);
|
|
||||||
int runlist_HeadRun();
|
|
||||||
void runlist_InitChan();
|
|
||||||
void runlist_ChangeChannel(int eax, short dx);
|
|
||||||
void runlist_ReadyChannel(short eax);
|
|
||||||
void runlist_ProcessSectorTag(int nSector, int nLotag, int nHitag);
|
|
||||||
int runlist_AllocChannel(int a);
|
|
||||||
void runlist_DoSubRunRec(int RunPtr);
|
|
||||||
void runlist_SubRunRec(int RunPtr);
|
|
||||||
void runlist_ProcessWallTag(int nWall, short nLotag, short nHitag);
|
|
||||||
int runlist_CheckRadialDamage(short nSprite);
|
|
||||||
void runlist_RadialDamageEnemy(short nSprite, short nDamage, short nRadius);
|
|
||||||
void runlist_DamageEnemy(int nSprite, int nSprite2, short nDamage);
|
|
||||||
void runlist_SignalRun(int NxtPtr, int edx);
|
|
||||||
|
|
||||||
void runlist_CleanRunRecs();
|
|
||||||
void runlist_ExecObjects();
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -16,17 +16,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "scorp.h"
|
#include "aistuff.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "move.h"
|
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "bullet.h"
|
|
||||||
#include "spider.h"
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
BEGIN_PS_NS
|
BEGIN_PS_NS
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __scorp_h__
|
|
||||||
#define __scorp_h__
|
|
||||||
|
|
||||||
#include "compat.h"
|
|
||||||
#include "aistuff.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
/*
|
|
||||||
Selkis Boss AI code
|
|
||||||
*/
|
|
||||||
|
|
||||||
void InitScorp();
|
|
||||||
int BuildScorp(short nSprite, int x, int y, int z, short nSector, short nAngle, int nChannel);
|
|
||||||
void FuncScorp(int, int, int);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -23,17 +23,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "move.h"
|
#include "aistuff.h"
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "light.h"
|
#include "light.h"
|
||||||
#ifndef __WATCOMC__
|
|
||||||
#include <cstring>
|
|
||||||
#include <cstdio> // for printf
|
|
||||||
#else
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
// TEMP
|
// TEMP
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
|
@ -1,46 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
#include "ns.h"
|
|
||||||
#include "typedefs.h"
|
|
||||||
#include "serial.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
short bSendBye = kFalse;
|
|
||||||
|
|
||||||
|
|
||||||
void UpdateSerialInputs()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void ClearSerialInbuf()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void HangUp()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void UnInitSerial()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
END_PS_NS
|
|
|
@ -1,33 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __serial_h__
|
|
||||||
#define __serial_h__
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
extern short bSendBye;
|
|
||||||
|
|
||||||
void UpdateSerialInputs();
|
|
||||||
void ClearSerialInbuf();
|
|
||||||
void HangUp();
|
|
||||||
void UnInitSerial();
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -16,15 +16,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "set.h"
|
#include "aistuff.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "move.h"
|
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "bullet.h"
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
BEGIN_PS_NS
|
BEGIN_PS_NS
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __set_h__
|
|
||||||
#define __set_h__
|
|
||||||
|
|
||||||
#include "aistuff.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
void InitSets();
|
|
||||||
int BuildSet(short nSprite, int x, int y, int z, short nSector, short nAngle, int nChannel);
|
|
||||||
void FuncSoul(int, int, int);
|
|
||||||
void FuncSet(int, int, int);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -18,19 +18,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "snake.h"
|
#include "aistuff.h"
|
||||||
#include "status.h"
|
#include "status.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "bullet.h"
|
|
||||||
#include "ps_input.h"
|
#include "ps_input.h"
|
||||||
#include "anims.h"
|
|
||||||
#include "lighting.h"
|
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "move.h"
|
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "gun.h"
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
|
|
@ -1,62 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __snake_h__
|
|
||||||
#define __snake_h__
|
|
||||||
|
|
||||||
#include "aistuff.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
#define kSnakeSprites 8 // or rename to kSnakeParts?
|
|
||||||
|
|
||||||
// 32bytes
|
|
||||||
struct Snake
|
|
||||||
{
|
|
||||||
short nEnemy; // nRun
|
|
||||||
short nSprites[kSnakeSprites];
|
|
||||||
|
|
||||||
short sC;
|
|
||||||
short nRun;
|
|
||||||
|
|
||||||
// array?
|
|
||||||
char c[8];
|
|
||||||
/*
|
|
||||||
char c1;
|
|
||||||
char c2;
|
|
||||||
char c3;
|
|
||||||
char c4;
|
|
||||||
char c5;
|
|
||||||
char c6;
|
|
||||||
char c7;
|
|
||||||
char c8;
|
|
||||||
*/
|
|
||||||
|
|
||||||
short sE;
|
|
||||||
};
|
|
||||||
|
|
||||||
extern Snake SnakeList[];
|
|
||||||
|
|
||||||
void InitSnakes();
|
|
||||||
short GrabSnake();
|
|
||||||
int BuildSnake(short nPlayer, short zVal);
|
|
||||||
void FuncSnake(int, int, int);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -23,10 +23,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "object.h"
|
#include "aistuff.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "snake.h"
|
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "cd.h"
|
#include "cd.h"
|
||||||
|
|
|
@ -16,11 +16,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "spider.h"
|
#include "aistuff.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "move.h"
|
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __spider_h__
|
|
||||||
#define __spider_h__
|
|
||||||
|
|
||||||
#include "aistuff.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
void InitSpider();
|
|
||||||
int BuildSpider(int nSprite, int x, int y, int z, short nSector, int nAngle);
|
|
||||||
void FuncSpider(int a, int b, int nRun);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -18,13 +18,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "anims.h"
|
#include "aistuff.h"
|
||||||
#include "status.h"
|
#include "status.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "names.h"
|
#include "names.h"
|
||||||
#include "items.h"
|
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __stream_h__
|
|
||||||
#define __stream_h__
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -16,9 +16,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "switch.h"
|
#include "aistuff.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
|
|
|
@ -1,48 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __switch_h__
|
|
||||||
#define __switch_h__
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
#define kMaxLinks 1024
|
|
||||||
#define kMaxSwitches 1024
|
|
||||||
|
|
||||||
void InitLink();
|
|
||||||
void InitSwitch();
|
|
||||||
|
|
||||||
void FuncSwReady(int, int, int);
|
|
||||||
void FuncSwPause(int, int, int);
|
|
||||||
void FuncSwStepOn(int, int, int);
|
|
||||||
void FuncSwNotOnPause(int, int, int);
|
|
||||||
void FuncSwPressSector(int, int, int);
|
|
||||||
void FuncSwPressWall(int, int, int);
|
|
||||||
|
|
||||||
int BuildSwPause(int nChannel, int nLink, int ebx);
|
|
||||||
int BuildSwNotOnPause(int nChannel, int nLink, int nSector, int ecx);
|
|
||||||
int BuildLink(int nCount, ...);
|
|
||||||
int BuildSwPressSector(int nChannel, int nLink, int nSector, int ecx);
|
|
||||||
int BuildSwStepOn(int nChannel, int nLink, int nSector);
|
|
||||||
int BuildSwReady(int nChannel, short nLink);
|
|
||||||
|
|
||||||
int BuildSwPressWall(short nChannel, short nLink, short nWall);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,24 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __text2_h__
|
|
||||||
#define __text2_h__
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,36 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
#include "ns.h"
|
|
||||||
#include "compat.h"
|
|
||||||
#include "baselayer.h"
|
|
||||||
#include "timer.h"
|
|
||||||
#include "exhumed.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
void timerhandler();
|
|
||||||
|
|
||||||
void InitTimer()
|
|
||||||
{
|
|
||||||
htimer = 1;
|
|
||||||
|
|
||||||
timerInit(kTimerTicks);
|
|
||||||
timerSetCallback(timerhandler);
|
|
||||||
}
|
|
||||||
|
|
||||||
END_PS_NS
|
|
|
@ -1,34 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __timer_h__
|
|
||||||
#define __timer_h__
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
#define kTimerTicks 120
|
|
||||||
|
|
||||||
void InitTimer();
|
|
||||||
|
|
||||||
#ifdef __WATCOMC__
|
|
||||||
void uninittimer();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -23,19 +23,15 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "status.h"
|
#include "status.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
#include "snake.h"
|
#include "aistuff.h"
|
||||||
#include "gun.h"
|
|
||||||
#include "light.h"
|
#include "light.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
#include "cd.h"
|
#include "cd.h"
|
||||||
#include "typedefs.h"
|
#include "typedefs.h"
|
||||||
#include "map.h"
|
#include "map.h"
|
||||||
#include "move.h"
|
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "engine.h"
|
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "v_video.h"
|
#include "v_video.h"
|
||||||
#include "glbackend/glbackend.h"
|
#include "glbackend/glbackend.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -16,15 +16,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
#include "ns.h"
|
#include "ns.h"
|
||||||
#include "wasp.h"
|
#include "aistuff.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
#include "runlist.h"
|
|
||||||
#include "random.h"
|
#include "random.h"
|
||||||
#include "exhumed.h"
|
#include "exhumed.h"
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "move.h"
|
|
||||||
#include "anims.h"
|
|
||||||
#include "trigdat.h"
|
#include "trigdat.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
/*
|
|
||||||
Copyright (C) 2010-2019 EDuke32 developers and contributors
|
|
||||||
Copyright (C) 2019 sirlemonhead, Nuke.YKT
|
|
||||||
This file is part of PCExhumed.
|
|
||||||
PCExhumed is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License version 2
|
|
||||||
as published by the Free Software Foundation.
|
|
||||||
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
//-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef __wasp_h__
|
|
||||||
#define __wasp_h__
|
|
||||||
|
|
||||||
#include "aistuff.h"
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
|
||||||
|
|
||||||
extern short nWaspCount;
|
|
||||||
|
|
||||||
void InitWasps();
|
|
||||||
int BuildWasp(short nSprite, int x, int y, int z, short nSector, short nAngle);
|
|
||||||
void FuncWasp(int eax, int edx, int nRun);
|
|
||||||
|
|
||||||
END_PS_NS
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
Reference in a new issue