mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-08 21:14:14 +00:00
Enable gateofbabylon, make spawners defination private until it used somewhere else
This commit is contained in:
parent
554db54143
commit
635759e3b6
@ -132,7 +132,8 @@ LOCAL_SRC_FILES := agrunt.cpp airtank.cpp \
|
|||||||
../pm_shared/pm_debug.c \
|
../pm_shared/pm_debug.c \
|
||||||
../pm_shared/pm_math.c \
|
../pm_shared/pm_math.c \
|
||||||
../pm_shared/pm_shared.c \
|
../pm_shared/pm_shared.c \
|
||||||
coop.cpp
|
coop.cpp \
|
||||||
|
gateofbabylon.cpp
|
||||||
# ../game_shared/voice_gamemgr.cpp
|
# ../game_shared/voice_gamemgr.cpp
|
||||||
|
|
||||||
LOCAL_LDLIBS := -llog
|
LOCAL_LDLIBS := -llog
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
#include "soundent.h"
|
#include "soundent.h"
|
||||||
#include "gamerules.h"
|
#include "gamerules.h"
|
||||||
#include "game.h"
|
#include "game.h"
|
||||||
|
#include "customweapons.h"
|
||||||
|
|
||||||
#define AR2_BEAM_SPRITE "sprites/xbeam1.spr"
|
#define AR2_BEAM_SPRITE "sprites/xbeam1.spr"
|
||||||
enum AR2_e
|
enum AR2_e
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
#include "weapons.h"
|
#include "weapons.h"
|
||||||
#include "nodes.h"
|
#include "nodes.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
|
#include "customweapons.h"
|
||||||
|
|
||||||
#define BIG_COCK_WEIGHT 21
|
#define BIG_COCK_WEIGHT 21
|
||||||
|
|
||||||
|
4
dlls/customweapons.h
Normal file
4
dlls/customweapons.h
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#define WEAPON_GRAVGUN 17
|
||||||
|
#define WEAPON_BIG_COCK 18
|
||||||
|
#define WEAPON_AR2 19
|
||||||
|
#define WEAPON_GATEOFBABYLON 20
|
@ -24,11 +24,54 @@
|
|||||||
#include "gamerules.h"
|
#include "gamerules.h"
|
||||||
#include "sprite.h"
|
#include "sprite.h"
|
||||||
#include "com_model.h"
|
#include "com_model.h"
|
||||||
|
#include "customweapons.h"
|
||||||
|
|
||||||
#ifndef CLIENT_DLL
|
#ifndef CLIENT_DLL
|
||||||
#define BOLT_AIR_VELOCITY 2700
|
#define BOLT_AIR_VELOCITY 2700
|
||||||
#define BOLT_WATER_VELOCITY 2000
|
#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
|
class CGateOfBabylonBolt : public CBaseEntity
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -16,6 +16,7 @@ Created by Solexid
|
|||||||
#include "effects.h"
|
#include "effects.h"
|
||||||
#include "customentity.h"
|
#include "customentity.h"
|
||||||
#include "gamerules.h"
|
#include "gamerules.h"
|
||||||
|
#include "customweapons.h"
|
||||||
|
|
||||||
#define GRAV_BEAM_SPRITE_PRIMARY_VOLUME 30
|
#define GRAV_BEAM_SPRITE_PRIMARY_VOLUME 30
|
||||||
#define GRAV_BEAM_SPRITE "sprites/xbeam3.spr"
|
#define GRAV_BEAM_SPRITE "sprites/xbeam3.spr"
|
||||||
|
@ -82,10 +82,6 @@ public:
|
|||||||
#define WEAPON_TRIPMINE 13
|
#define WEAPON_TRIPMINE 13
|
||||||
#define WEAPON_SATCHEL 14
|
#define WEAPON_SATCHEL 14
|
||||||
#define WEAPON_SNARK 15
|
#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_ALLWEAPONS (~(1<<WEAPON_SUIT))
|
||||||
|
|
||||||
#define WEAPON_SUIT 31 // ?????
|
#define WEAPON_SUIT 31 // ?????
|
||||||
@ -646,46 +642,6 @@ private:
|
|||||||
unsigned short m_usCrossbow2;
|
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
|
class CShotgun : public CBasePlayerWeapon
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user