Fix build.

This commit is contained in:
Andrey Akhmichin 2019-12-01 16:08:31 +05:00
parent 19484014f2
commit 22a953d3c6
7 changed files with 22 additions and 19 deletions

View File

@ -209,27 +209,27 @@ void CHud::Init( void )
if( HUD_IsGame( "biglolly" ) )
{
g_iModType = MOD_BIGLOLLY;
g_iHudColor = PINKISH;
g_iHudColor = RGB_PINKISH;
}
else if( HUD_IsGame( "bshift" ) )
{
g_iModType = MOD_BSHIFT;
g_iHudColor = BLUISH;
g_iHudColor = RGB_BLUISH;
}
else if( HUD_IsGame( "halfsecret" ) )
{
g_iModType = MOD_HALFSECRET;
g_iHudColor = YELLOWISH;
g_iHudColor = RGB_YELLOWISH;
}
else if( HUD_IsGame( "sewerbeta" ) )
{
g_iModType = MOD_SEWERBETA;
g_iHudColor = WHITISH;
g_iModType = MOD_SEWER_BETA;
g_iHudColor = RGB_WHITISH;
}
else
{
g_iModType = MOD_VALVE;
g_iHudColor = YELLOWISH;
g_iHudColor = RGB_YELLOWISH;
}
#endif // MOBILE_HACKS

View File

@ -686,4 +686,6 @@ extern int g_iUser2;
extern int g_iUser3;
extern int g_iHudColor;
int HUD_IsGame( const char *game );
#endif

View File

@ -365,9 +365,9 @@ public:
void Zap( const Vector &vecSrc, const Vector &vecDest );
void EXPORT StrikeUse( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value );
void EXPORT ToggleUse( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value );
#if 0
#ifdef MOBILE_HACKS
static CLightning *LightningCreate( const char *pSpriteName, int width );
#endif
#endif // MOBILE_HACKS
inline BOOL ServerSide( void )
{
if( m_life == 0 && !( pev->spawnflags & SF_BEAM_RING ) )
@ -914,7 +914,7 @@ void CLightning::BeamUpdateVars( void )
SetFlags( BEAM_FSHADEOUT );
}
#if 0
#ifdef MOBILE_HACKS
CLightning *CLightning::LightningCreate( const char *pSpriteName, int width )
{
// Create a new entity with CLightning private data
@ -927,7 +927,7 @@ CLightning *CLightning::LightningCreate( const char *pSpriteName, int width )
return pBeam;
}
#endif
#endif // MOBILE_HACKS
LINK_ENTITY_TO_CLASS( env_laser, CLaser )

View File

@ -79,10 +79,10 @@ extern "C" void DLLEXPORT EXPORT2 GiveFnptrsToDll( enginefuncs_t *pengfuncsFromE
g_iModType = MOD_HALFSECRET;
}
else if( FStrEq( szGameFolder, "borderlands" )
|| if( FStrEq( szGameFolder, "caseclosed" )
|| if( FStrEq( szGameFolder, "vendetta" ) )
|| FStrEq( szGameFolder, "caseclosed" )
|| FStrEq( szGameFolder, "vendetta" ) )
{
g_ModType = MOD_HEVSUIT;
g_iModType = MOD_HEVSUIT;
}
else if( FStrEq( szGameFolder, "induction" ) )
{
@ -94,7 +94,7 @@ extern "C" void DLLEXPORT EXPORT2 GiveFnptrsToDll( enginefuncs_t *pengfuncsFromE
}
else if( FStrEq( szGameFolder, "sewerbeta" ) )
{
g_iModType = MOD_SEWERBETA;
g_iModType = MOD_SEWER_BETA;
}
else if( FStrEq( szGameFolder, "tot" ) )
{

View File

@ -3463,14 +3463,15 @@ void CBasePlayer::CheatImpulseCommands( int iImpulse )
gEvilImpulse101 = TRUE;
GiveNamedItem( "item_suit" );
#ifdef MOBILE_HACKS
if( g_iModType == BSHIFT )
if( g_iModType == MOD_BSHIFT )
{
GiveNamedItem( "item_armorvest" );
GiveNamedItem( "item_helmet" );
}
else
GiveNamedItem( "item_battery" );
if( g_iModType == INDUCTION )
if( g_iModType == MOD_INDUCTION )
GiveNamedItem( "item_flashlight" );
#else // MOBILE_HACKS
GiveNamedItem( "item_battery" );

View File

@ -61,7 +61,7 @@ enum
//=======================================================
LINK_ENTITY_TO_CLASS( monster_scientist, CScientist )
#ifdef MOBILE_HACKS
LINK_ENTITY_TO_CLASS( monster_rosenberg, CScientist )
// LINK_ENTITY_TO_CLASS( monster_rosenberg, CScientist )
extern "C" EXPORT void monster_rosenberg( entvars_t *pev )
{
if( g_iModType == MOD_BSHIFT )

View File

@ -127,8 +127,8 @@ float CHalfLifeRules::FlPlayerFallDamage( CBasePlayer *pPlayer )
void CHalfLifeRules::PlayerSpawn( CBasePlayer *pPlayer )
{
#ifdef MOBILE_HACKS
if( g_iModType == HEVSUIT
|| g_iModType == SEWERBETA )
if( g_iModType == MOD_HEVSUIT
|| g_iModType == MOD_SEWER_BETA )
pPlayer->GiveNamedItem( "item_suit" );
#endif // MOBILE_HACKS
}