Enable gateofbabylon, make spawners defination private until it used somewhere else

This commit is contained in:
mittorn 2017-01-29 17:49:26 +00:00
parent 554db54143
commit 635759e3b6
7 changed files with 52 additions and 45 deletions

View File

@ -132,7 +132,8 @@ LOCAL_SRC_FILES := agrunt.cpp airtank.cpp \
../pm_shared/pm_debug.c \
../pm_shared/pm_math.c \
../pm_shared/pm_shared.c \
coop.cpp
coop.cpp \
gateofbabylon.cpp
# ../game_shared/voice_gamemgr.cpp
LOCAL_LDLIBS := -llog

View File

@ -15,6 +15,7 @@
#include "soundent.h"
#include "gamerules.h"
#include "game.h"
#include "customweapons.h"
#define AR2_BEAM_SPRITE "sprites/xbeam1.spr"
enum AR2_e

View File

@ -12,6 +12,7 @@
#include "weapons.h"
#include "nodes.h"
#include "player.h"
#include "customweapons.h"
#define BIG_COCK_WEIGHT 21

4
dlls/customweapons.h Normal file
View File

@ -0,0 +1,4 @@
#define WEAPON_GRAVGUN 17
#define WEAPON_BIG_COCK 18
#define WEAPON_AR2 19
#define WEAPON_GATEOFBABYLON 20

View File

@ -24,11 +24,54 @@
#include "gamerules.h"
#include "sprite.h"
#include "com_model.h"
#include "customweapons.h"
#ifndef CLIENT_DLL
#define BOLT_AIR_VELOCITY 2700
#define BOLT_WATER_VELOCITY 2000
class CGateOfBabylonSpawner;
#define MAX_SPAWNERS 7
class CGateOfBabylon : public CBasePlayerWeapon
{
public:
void Spawn( void );
void Precache( void );
int iItemSlot( ) { return 0; }
int GetItemInfo(ItemInfo *p);
int ObjectCaps();
#ifndef CLIENT_DLL
int Save( CSave &save );
int Restore( CRestore &restore );
static TYPEDESCRIPTION m_SaveData[];
#endif
void PrimaryAttack( void );
void SecondaryAttack( void );
int AddToPlayer( CBasePlayer *pPlayer );
BOOL Deploy( );
void Holster( int skiplocal = 0 );
void Reload( void );
void WeaponIdle( void );
virtual BOOL UseDecrement( void )
{
//#if defined( CLIENT_WEAPONS )
// return ;
//#else
return false;
//#endif
}
CGateOfBabylonSpawner *m_pSpawners[MAX_SPAWNERS];
bool IntersectOtherSpawner( CGateOfBabylonSpawner *spawner );
private:
void AddSpawners( void );
int m_iSpawnerCount;
};
class CGateOfBabylonBolt : public CBaseEntity
{
public:

View File

@ -16,6 +16,7 @@ Created by Solexid
#include "effects.h"
#include "customentity.h"
#include "gamerules.h"
#include "customweapons.h"
#define GRAV_BEAM_SPRITE_PRIMARY_VOLUME 30
#define GRAV_BEAM_SPRITE "sprites/xbeam3.spr"

View File

@ -82,10 +82,6 @@ public:
#define WEAPON_TRIPMINE 13
#define WEAPON_SATCHEL 14
#define WEAPON_SNARK 15
#define WEAPON_GRAVGUN 17
#define WEAPON_BIG_COCK 18
#define WEAPON_AR2 19
#define WEAPON_GATEOFBABYLON 20
#define WEAPON_ALLWEAPONS (~(1<<WEAPON_SUIT))
#define WEAPON_SUIT 31 // ?????
@ -646,46 +642,6 @@ private:
unsigned short m_usCrossbow2;
};
class CGateOfBabylonSpawner;
#define MAX_SPAWNERS 7
class CGateOfBabylon : public CBasePlayerWeapon
{
public:
void Spawn( void );
void Precache( void );
int iItemSlot( ) { return 0; }
int GetItemInfo(ItemInfo *p);
int ObjectCaps();
#ifndef CLIENT_DLL
int Save( CSave &save );
int Restore( CRestore &restore );
static TYPEDESCRIPTION m_SaveData[];
#endif
void PrimaryAttack( void );
void SecondaryAttack( void );
int AddToPlayer( CBasePlayer *pPlayer );
BOOL Deploy( );
void Holster( int skiplocal = 0 );
void Reload( void );
void WeaponIdle( void );
virtual BOOL UseDecrement( void )
{
//#if defined( CLIENT_WEAPONS )
// return ;
//#else
return false;
//#endif
}
CGateOfBabylonSpawner *m_pSpawners[MAX_SPAWNERS];
bool IntersectOtherSpawner( CGateOfBabylonSpawner *spawner );
private:
void AddSpawners( void );
int m_iSpawnerCount;
};
class CShotgun : public CBasePlayerWeapon
{