Browse Source

Fix build.

bubblemod
Night Owl 8 years ago
parent
commit
fef3244269
  1. 2
      dlls/bubblemod/BMOD_CameraPoint.cpp
  2. 2
      dlls/bubblemod/BMOD_boxmarker.cpp
  3. 8
      dlls/bubblemod/BMOD_flyingcrowbar.cpp
  4. 4
      dlls/bubblemod/BMOD_hornetgun.cpp
  5. 10
      dlls/bubblemod/BMOD_rune.cpp
  6. 16
      dlls/bubblemod/BMOD_snarkmine.cpp
  7. 2
      dlls/bubblemod/BMOD_tripmines.cpp
  8. 4
      dlls/bubblemod/BMOD_util.cpp
  9. 8
      dlls/bubblemod/BMOD_zapgunrift.cpp
  10. 2
      dlls/bubblemod/squeakgrenade.h
  11. 4
      dlls/bullsquid.cpp
  12. 3
      dlls/cbase.h
  13. 2
      dlls/client.cpp
  14. 1
      dlls/enginecallback.h
  15. 12
      dlls/game.cpp
  16. 3
      dlls/gamerules.h
  17. 4
      dlls/ggrenade.cpp
  18. 3
      dlls/hornet.h
  19. 6
      dlls/hornetgun.cpp
  20. 3
      dlls/multiplay_gamerules.cpp
  21. 3
      dlls/nodes.h
  22. 5
      dlls/player.cpp
  23. 3
      dlls/skill.h
  24. 3
      dlls/teamplay_gamerules.cpp
  25. 3
      dlls/util.h

2
dlls/bubblemod/BMOD_CameraPoint.cpp

@ -50,7 +50,7 @@ void CCamPoint::Spawn( void ) @@ -50,7 +50,7 @@ void CCamPoint::Spawn( void )
// is set to 0 and blending is on
pev->rendermode = kRenderTransTexture;
SetThink ( Think );
SetThink( &CCamPoint::Think );
pev->nextthink = gpGlobals->time + 0.1;
}

2
dlls/bubblemod/BMOD_boxmarker.cpp

@ -45,7 +45,7 @@ void CBoxMarker :: Spawn( void ) @@ -45,7 +45,7 @@ void CBoxMarker :: Spawn( void )
pev->movetype = MOVETYPE_FLY;
pev->solid = SOLID_NOT;
SetThink( PowerupThink );
SetThink( &CBoxMarker::PowerupThink );
pev->nextthink = gpGlobals->time + RANDOM_FLOAT(.1, 1);
m_vecExtents = Vector (16, 16, 16);

8
dlls/bubblemod/BMOD_flyingcrowbar.cpp

@ -61,11 +61,11 @@ void CFlyingCrowbar::Spawn( ) @@ -61,11 +61,11 @@ void CFlyingCrowbar::Spawn( )
m_hOwner = Instance( pev->owner );
// Set the think funtion.
SetThink( BubbleThink );
SetThink( &CFlyingCrowbar::BubbleThink );
pev->nextthink = gpGlobals->time + 0.25;
// Set the touch function.
SetTouch( SpinTouch );
SetTouch( &CFlyingCrowbar::SpinTouch );
}
@ -133,7 +133,7 @@ void CFlyingCrowbar::SpinTouch( CBaseEntity *pOther ) @@ -133,7 +133,7 @@ void CFlyingCrowbar::SpinTouch( CBaseEntity *pOther )
// remove the weapon box after 4 mins.
pWeaponBox->pev->nextthink = gpGlobals->time + 240;
pWeaponBox->SetThink( CWeaponBox::Kill );
pWeaponBox->SetThink( &CWeaponBox::Kill );
// Pack the crowbar in the weapon box
pWeaponBox->PackWeapon( pItem );
@ -163,7 +163,7 @@ void CFlyingCrowbar::SpinTouch( CBaseEntity *pOther ) @@ -163,7 +163,7 @@ void CFlyingCrowbar::SpinTouch( CBaseEntity *pOther )
pWeaponBox->pev->velocity = tr.vecPlaneNormal * 300;
// Remove this flying_crowbar from the world.
SetThink ( SUB_Remove );
SetThink( &CBaseEntity::SUB_Remove );
pev->nextthink = gpGlobals->time + .1;
}

4
dlls/bubblemod/BMOD_hornetgun.cpp

@ -107,7 +107,7 @@ void BMODSquidSpit::Shoot( entvars_t *Owner, Vector vecStart, Vector vecVelocity @@ -107,7 +107,7 @@ void BMODSquidSpit::Shoot( entvars_t *Owner, Vector vecStart, Vector vecVelocity
pSpit->pev->owner = ENT(Owner);
pSpit->pevOwner = Owner;
pSpit->SetThink ( Animate );
pSpit->SetThink( &BMODSquidSpit::Animate );
pSpit->pev->nextthink = gpGlobals->time + 0.1;
}
@ -157,7 +157,7 @@ void BMODSquidSpit::Touch ( CBaseEntity *pOther ) @@ -157,7 +157,7 @@ void BMODSquidSpit::Touch ( CBaseEntity *pOther )
ApplyMultiDamage( pev, pevOwner );
}
SetThink ( SUB_Remove );
SetThink( &CBaseEntity::SUB_Remove );
pev->nextthink = gpGlobals->time;
}

10
dlls/bubblemod/BMOD_rune.cpp

@ -57,10 +57,10 @@ void CRune::Spawn( void ) @@ -57,10 +57,10 @@ void CRune::Spawn( void )
UTIL_SetOrigin( pev, pev->origin );
UTIL_SetSize(pev, Vector(-16, -16, 0), Vector(16, 16, 16));
SetTouch(RuneTouch);
SetTouch( &CRune::RuneTouch );
pev->effects |= EF_NODRAW;
SetThink ( Materialize );
SetThink( &CRune::Materialize );
pev->nextthink = gpGlobals->time + RANDOM_FLOAT(.5, 2);
if (DROP_TO_FLOOR(ENT(pev)) == 0)
@ -112,9 +112,9 @@ CBaseEntity* CRune::Respawn( void ) @@ -112,9 +112,9 @@ CBaseEntity* CRune::Respawn( void )
pev->effects |= EF_NODRAW;
if (m_randomize)
SetThink ( MaterializeRandom );
SetThink( &CRune::MaterializeRandom );
else
SetThink ( Materialize );
SetThink( &CRune::Materialize );
return this;
}
@ -203,7 +203,7 @@ void CRune::Materialize( void ) @@ -203,7 +203,7 @@ void CRune::Materialize( void )
pev->effects &= ~EF_NODRAW;
pev->effects |= EF_MUZZLEFLASH;
SetTouch( RuneTouch );
SetTouch( &CRune::RuneTouch );
}
// EMIT_SOUND_DYN( ENT(pev), CHAN_WEAPON, "buttons/blip2.wav", 1, ATTN_NORM, 0, 150 );
pev->nextthink = gpGlobals->time + 2;

16
dlls/bubblemod/BMOD_snarkmine.cpp

@ -99,7 +99,7 @@ void CTripSnarkGrenade :: Spawn( void ) @@ -99,7 +99,7 @@ void CTripSnarkGrenade :: Spawn( void )
m_flPowerUp = gpGlobals->time + 2.5;
}
SetThink( PowerupThink );
SetThink( &CTripSnarkGrenade::PowerupThink );
pev->nextthink = gpGlobals->time + 0.2;
pev->takedamage = DAMAGE_YES;
@ -140,7 +140,7 @@ void CTripSnarkGrenade :: WarningThink( void ) @@ -140,7 +140,7 @@ void CTripSnarkGrenade :: WarningThink( void )
// EMIT_SOUND( ENT(pev), CHAN_VOICE, "buttons/Blip2.wav", 1.0, ATTN_NORM );
// set to power up
SetThink( PowerupThink );
SetThink( &CTripSnarkGrenade::PowerupThink );
pev->nextthink = gpGlobals->time + 1.0;
}
@ -173,7 +173,7 @@ void CTripSnarkGrenade :: PowerupThink( void ) @@ -173,7 +173,7 @@ void CTripSnarkGrenade :: PowerupThink( void )
{
STOP_SOUND( ENT(pev), CHAN_VOICE, "weapons/mine_deploy.wav" );
STOP_SOUND( ENT(pev), CHAN_BODY, "weapons/mine_charge.wav" );
SetThink( SUB_Remove );
SetThink( &CBaseEntity::SUB_Remove );
pev->nextthink = gpGlobals->time + 0.1;
ALERT( at_console, "WARNING:Tripmine at %.0f, %.0f, %.0f removed\n", pev->origin.x, pev->origin.y, pev->origin.z );
KillBeam();
@ -187,7 +187,7 @@ void CTripSnarkGrenade :: PowerupThink( void ) @@ -187,7 +187,7 @@ void CTripSnarkGrenade :: PowerupThink( void )
STOP_SOUND( ENT(pev), CHAN_BODY, "weapons/mine_charge.wav" );
CBaseEntity *pMine = Create( "weapon_snark", pev->origin + m_vecDir * 24, pev->angles );
pMine->pev->spawnflags |= SF_NORESPAWN;
SetThink( SUB_Remove );
SetThink( &CBaseEntity::SUB_Remove );
KillBeam();
pev->nextthink = gpGlobals->time + 0.1;
return;
@ -238,7 +238,7 @@ void CTripSnarkGrenade :: MakeBeam( void ) @@ -238,7 +238,7 @@ void CTripSnarkGrenade :: MakeBeam( void )
m_flBeamLength = tr.flFraction;
// set to follow laser spot
SetThink( BeamBreakThink );
SetThink( &CTripSnarkGrenade::BeamBreakThink );
pev->nextthink = gpGlobals->time + 0.1;
Vector vecTmpEnd = pev->origin + m_vecDir * 2048 * m_flBeamLength;
@ -318,7 +318,7 @@ int CTripSnarkGrenade :: TakeDamage( entvars_t *pevInflictor, entvars_t *pevAtta @@ -318,7 +318,7 @@ int CTripSnarkGrenade :: TakeDamage( entvars_t *pevInflictor, entvars_t *pevAtta
{
// disable
// Create( "weapon_tripsnark", pev->origin + m_vecDir * 24, pev->angles );
SetThink( SUB_Remove );
SetThink( &CBaseEntity::SUB_Remove );
pev->nextthink = gpGlobals->time + 0.1;
KillBeam();
return FALSE;
@ -336,7 +336,7 @@ void CTripSnarkGrenade::Killed( entvars_t *pevAttacker, int iGib ) @@ -336,7 +336,7 @@ void CTripSnarkGrenade::Killed( entvars_t *pevAttacker, int iGib )
pev->owner = ENT( pevAttacker );
}
SetThink( DelayDeathThink );
SetThink( &CTripSnarkGrenade::DelayDeathThink );
pev->nextthink = gpGlobals->time + RANDOM_FLOAT( 0.1, 0.3 );
EMIT_SOUND( ENT(pev), CHAN_BODY, "common/null.wav", 0.5, ATTN_NORM ); // shut off chargeup
@ -380,7 +380,7 @@ void CTripSnarkGrenade::Explode( TraceResult *pTrace ) @@ -380,7 +380,7 @@ void CTripSnarkGrenade::Explode( TraceResult *pTrace )
pSqueak->pev->velocity = m_vecDir * 200;
// Tell the mine what do do for the next little while.
SetThink( RiftThink );
SetThink( &CTripSnarkGrenade::RiftThink );
pev->nextthink = gpGlobals->time + 0.1;
m_RiftTime = gpGlobals->time + 3;
}

2
dlls/bubblemod/BMOD_tripmines.cpp

@ -82,7 +82,7 @@ void CTripmineGrenade::FlashBang( void ) @@ -82,7 +82,7 @@ void CTripmineGrenade::FlashBang( void )
{
#define FLASH_RANGE 600
pev->nextthink = gpGlobals->time + 0.3;
SetThink( Smoke );
SetThink( &CTripmineGrenade::Smoke );
// Find all players in range
CBaseEntity *pEntity = NULL;

4
dlls/bubblemod/BMOD_util.cpp

@ -255,10 +255,10 @@ char* UTIL_CountVotes() @@ -255,10 +255,10 @@ char* UTIL_CountVotes()
static char string[128];
char maps[32][81];
int votes[32];
int p = 0;
int i, p = 0;
int q = 0;
for (int i = 0; i < 32; i++)
for( i = 0; i < 32; i++ )
{
strcpy(maps[i], "");
votes[i] = 0;

8
dlls/bubblemod/BMOD_zapgunrift.cpp

@ -76,7 +76,7 @@ void CZapRift::Spawn( void ) @@ -76,7 +76,7 @@ void CZapRift::Spawn( void )
m_pSprite->SetTransparency( kRenderGlow, 255, 255, 255, 180, kRenderFxNoDissipation );
m_pSprite->pev->spawnflags |= SF_SPRITE_TEMPORARY;
SetThink ( Animate );
SetThink( &CZapRift::Animate );
pev->nextthink = gpGlobals->time + 0.1;
m_fLifeSpan = gpGlobals->time + 3;
m_fNextElectrify = gpGlobals->time + 0.1;
@ -104,7 +104,7 @@ void CZapRift::Animate( void ) @@ -104,7 +104,7 @@ void CZapRift::Animate( void )
{
pev->effects |= EF_NODRAW;
m_pSprite->Expand( 10, 100 );
SetThink(SUB_Remove);
SetThink( &CBaseEntity::SUB_Remove );
pev->nextthink = gpGlobals->time + 5;
}
@ -255,7 +255,7 @@ void CZapBounce::Spawn( void ) @@ -255,7 +255,7 @@ void CZapBounce::Spawn( void )
m_iBounce = 5;
m_bFirstZap = TRUE;
SetThink ( BounceThink );
SetThink( &CZapBounce::BounceThink );
pev->nextthink = gpGlobals->time + 0.2;
EMIT_SOUND_DYN( ENT(pev), CHAN_WEAPON, "debris/zap4.wav", 1, ATTN_NORM, 0,100 );
@ -346,7 +346,7 @@ void CZapBounce::BounceThink( void ) @@ -346,7 +346,7 @@ void CZapBounce::BounceThink( void )
if (m_iBounce < 1)
{
// UTIL_ClientPrintAll( HUD_PRINTTALK, "<SERVER> Zap bounce point destroyed.\n");
SetThink(SUB_Remove);
SetThink( &CBaseEntity::SUB_Remove );
pev->nextthink = gpGlobals->time + .1;
return;
}

2
dlls/bubblemod/squeakgrenade.h

@ -43,7 +43,7 @@ class CSqueakGrenade : public CGrenade @@ -43,7 +43,7 @@ class CSqueakGrenade : public CGrenade
void Killed( entvars_t *pevAttacker, int iGib );
void GibMonster( void );
CBaseEntity *CSqueakGrenade :: BMOD_BestVisibleEnemy ( void );
CBaseEntity *BMOD_BestVisibleEnemy( void );
virtual int Save( CSave &save );
virtual int Restore( CRestore &restore );

4
dlls/bullsquid.cpp

@ -71,7 +71,7 @@ public: @@ -71,7 +71,7 @@ public:
int m_maxFrame;
};
LINK_ENTITY_TO_CLASS( squidspit, CSquidSpit )
LINK_ENTITY_TO_CLASS( csquidspit, CSquidSpit )
TYPEDESCRIPTION CSquidSpit::m_SaveData[] =
{
@ -83,7 +83,7 @@ IMPLEMENT_SAVERESTORE( CSquidSpit, CBaseEntity ) @@ -83,7 +83,7 @@ IMPLEMENT_SAVERESTORE( CSquidSpit, CBaseEntity )
void CSquidSpit::Spawn( void )
{
pev->movetype = MOVETYPE_FLY;
pev->classname = MAKE_STRING( "squidspit" );
pev->classname = MAKE_STRING( "csquidspit" );
pev->solid = SOLID_BBOX;
pev->rendermode = kRenderTransAlpha;

3
dlls/cbase.h

@ -12,6 +12,8 @@ @@ -12,6 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef CBASE_H
#define CBASE_H
/*
Class Hierachy
@ -781,3 +783,4 @@ public: @@ -781,3 +783,4 @@ public:
void Precache( void );
void KeyValue( KeyValueData *pkvd );
};
#endif

2
dlls/client.cpp

@ -296,7 +296,7 @@ void Host_Say( edict_t *pEntity, int teamonly ) @@ -296,7 +296,7 @@ void Host_Say( edict_t *pEntity, int teamonly )
if( (int)strlen( p ) > j )
p[j] = 0;
/ BMOD Start - Llamas!!
// BMOD Start - Llamas!!
if( ( (CBasePlayer*)CBasePlayer::Instance( pEntity ) )->m_IsLlama )
{
switch( RANDOM_LONG( 0, 3 ) )

1
dlls/enginecallback.h

@ -22,6 +22,7 @@ @@ -22,6 +22,7 @@
extern enginefuncs_t g_engfuncs;
// The actual engine callbacks
#define ADD_SERVER_COMMAND (*g_engfuncs.pfnAddServerCommand)
#define GETPLAYERUSERID (*g_engfuncs.pfnGetPlayerUserId)
#define PRECACHE_MODEL (*g_engfuncs.pfnPrecacheModel)
#define PRECACHE_SOUND (*g_engfuncs.pfnPrecacheSound)

12
dlls/game.cpp

@ -1089,7 +1089,7 @@ void BModCmd_AdminSay( void ) @@ -1089,7 +1089,7 @@ void BModCmd_AdminSay( void )
char text[128];
const char *cpSay = "say";
const char *cpSayTeam = "say_team";
const char *pcmd = CMD_ARGV(0);
const char *pc, *pcmd = CMD_ARGV(0);
// We can get a raw string now, without the "say " prepended
if( CMD_ARGC() < 2 )
@ -1101,7 +1101,7 @@ void BModCmd_AdminSay( void ) @@ -1101,7 +1101,7 @@ void BModCmd_AdminSay( void )
p = (char *)CMD_ARGS();
// make sure the text has content
for( char *pc = p; pc != NULL && *pc != 0; pc++ )
for( pc = p; pc != NULL && *pc != 0; pc++ )
{
if( isprint( *pc ) && !isspace( *pc ) )
{
@ -1137,7 +1137,7 @@ void BModCmd_AdminWhisper( void ) @@ -1137,7 +1137,7 @@ void BModCmd_AdminWhisper( void )
char text[128];
const char *cpSay = "say";
const char *cpSayTeam = "say_team";
const char *pcmd = CMD_ARGV( 0 );
const char *pc, *pcmd = CMD_ARGV( 0 );
// We can get a raw string now, without the "say " prepended
if( CMD_ARGC() < 3 )
@ -1164,7 +1164,7 @@ void BModCmd_AdminWhisper( void ) @@ -1164,7 +1164,7 @@ void BModCmd_AdminWhisper( void )
p++;
// make sure the text has content
for( char *pc = p; pc != NULL && *pc != 0; pc++ )
for( pc = p; pc != NULL && *pc != 0; pc++ )
{
if( isprint( *pc ) && !isspace( *pc ) )
{
@ -1229,7 +1229,7 @@ void BModCmd_ShowSpawns( void ) @@ -1229,7 +1229,7 @@ void BModCmd_ShowSpawns( void )
void BModCmd_SpeakAll( void )
{
int j;
char *p;
char *p, *pc;
char text[128];
if( CMD_ARGC() < 2 )
@ -1248,7 +1248,7 @@ void BModCmd_SpeakAll( void ) @@ -1248,7 +1248,7 @@ void BModCmd_SpeakAll( void )
}
// make sure the text has content
for( char *pc = p; pc != NULL && *pc != 0; pc++ )
for( pc = p; pc != NULL && *pc != 0; pc++ )
{
if( isprint( *pc ) && !isspace( *pc ) )
{

3
dlls/gamerules.h

@ -12,6 +12,8 @@ @@ -12,6 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef GAMERULES_H
#define GAMERULES_H
//=========================================================
// GameRules
//=========================================================
@ -378,3 +380,4 @@ protected: @@ -378,3 +380,4 @@ protected:
};
extern DLL_GLOBAL CGameRules *g_pGameRules;
#endif

4
dlls/ggrenade.cpp

@ -63,12 +63,12 @@ void CGrenade::Explode( TraceResult *pTrace, int bitsDamageType ) @@ -63,12 +63,12 @@ void CGrenade::Explode( TraceResult *pTrace, int bitsDamageType )
pev->nextthink = gpGlobals->time + 0.1;
pev->dmg = 150;
m_iMegaSmokeFrame = 0;
SetThink( MegaSmoke );
SetThink( &CGrenade::MegaSmoke );
}
else
{
pev->nextthink = gpGlobals->time + 0.3;
SetThink( Smoke );
SetThink( &CGrenade::Smoke );
}
// BMOD End - Grenade Rune

3
dlls/hornet.h

@ -12,6 +12,8 @@ @@ -12,6 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef CHORNET_H
#define CHORNET_H
//=========================================================
// Hornets
//=========================================================
@ -55,3 +57,4 @@ public: @@ -55,3 +57,4 @@ public:
int m_iHornetType;
float m_flFlySpeed;
};
#endif

6
dlls/hornetgun.cpp

@ -134,7 +134,7 @@ void BMODSquidSpit::Shoot( entvars_t *Owner, Vector vecStart, Vector vecVelocity @@ -134,7 +134,7 @@ void BMODSquidSpit::Shoot( entvars_t *Owner, Vector vecStart, Vector vecVelocity
pSpit->pev->owner = ENT( Owner );
pSpit->pevOwner = Owner;
pSpit->SetThink( Animate );
pSpit->SetThink( &BMODSquidSpit::Animate );
pSpit->pev->nextthink = gpGlobals->time + 0.1;
}
@ -184,7 +184,7 @@ void BMODSquidSpit::Touch( CBaseEntity *pOther ) @@ -184,7 +184,7 @@ void BMODSquidSpit::Touch( CBaseEntity *pOther )
ApplyMultiDamage( pev, pevOwner );
}
SetThink( SUB_Remove );
SetThink( &CBaseEntity::SUB_Remove );
pev->nextthink = gpGlobals->time;
}
@ -1061,7 +1061,7 @@ void CHgun::OldSecondaryAttack( void ) @@ -1061,7 +1061,7 @@ void CHgun::OldSecondaryAttack( void )
void CHgun::Reload( void )
{
m_iMaxammo = (bm_hornet_mod.value) ? 12 : 8
m_iMaxammo = (bm_hornet_mod.value) ? 12 : 8;
if( m_pPlayer->m_rgAmmo[m_iPrimaryAmmoType] >= m_iMaxammo )
return;

3
dlls/multiplay_gamerules.cpp

@ -1811,7 +1811,8 @@ int CountPlayers( void ) @@ -1811,7 +1811,8 @@ int CountPlayers( void )
for( int i = 1; i <= gpGlobals->maxClients; i++ )
{
CBaseEntity *pEnt = UTIL_PlayerByIndex( i );
//CBaseEntity *pEnt = UTIL_PlayerByIndex( i );
CBasePlayer *pEnt = (CBasePlayer*)UTIL_PlayerByIndex( i );
// BMOD Edit - Only count connected players.
//if( pEnt )

3
dlls/nodes.h

@ -12,6 +12,8 @@ @@ -12,6 +12,8 @@
* use or distribution of this code by or to any unlicensed person is illegal.
*
****/
#ifndef NODES_H
#define NODES_H
//=========================================================
// nodes.h
//=========================================================
@ -370,3 +372,4 @@ enum @@ -370,3 +372,4 @@ enum
};
extern CGraph WorldGraph;
#endif

5
dlls/player.cpp

@ -2888,8 +2888,9 @@ void CBasePlayer::Spawn( void ) @@ -2888,8 +2888,9 @@ void CBasePlayer::Spawn( void )
//m_LeetSpeak = FALSE;
// Spawn Runes
if (!g_runes_exist)
if( !g_runes_exist )
{
int i;
g_runes_exist = true;
CBaseEntity *pSpot = NULL;
@ -2898,7 +2899,7 @@ void CBasePlayer::Spawn( void ) @@ -2898,7 +2899,7 @@ void CBasePlayer::Spawn( void )
while( !pSpot );
// Spawn random runes
for( int i = 0; i < CVAR_GET_FLOAT( "bm_rune_rand" ); i++ )
for( i = 0; i < CVAR_GET_FLOAT( "bm_rune_rand" ); i++ )
{
CRune *rune = (CRune *)CBaseEntity::Create( "item_CrowbarRune", pSpot->pev->origin, Vector( 0, 0, 0 ), edict() );
rune->m_randomize = TRUE;

3
dlls/skill.h

@ -12,6 +12,8 @@ @@ -12,6 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef SKILL_H
#define SKILL_H
//=========================================================
// skill.h - skill level concerns
//=========================================================
@ -143,3 +145,4 @@ extern DLL_GLOBAL int g_iSkillLevel; @@ -143,3 +145,4 @@ extern DLL_GLOBAL int g_iSkillLevel;
#define SKILL_EASY 1
#define SKILL_MEDIUM 2
#define SKILL_HARD 3
#endif

3
dlls/teamplay_gamerules.cpp

@ -554,6 +554,7 @@ const char *CHalfLifeTeamplay::TeamWithFewestPlayers( void ) @@ -554,6 +554,7 @@ const char *CHalfLifeTeamplay::TeamWithFewestPlayers( void )
//=========================================================
void CHalfLifeTeamplay::RecountTeams( bool bResendInfo )
{
int i;
char *pName;
char teamlist[TEAMPLAY_TEAMLISTLENGTH];
@ -585,7 +586,7 @@ void CHalfLifeTeamplay::RecountTeams( bool bResendInfo ) @@ -585,7 +586,7 @@ void CHalfLifeTeamplay::RecountTeams( bool bResendInfo )
memset( team_scores, 0, sizeof(team_scores) );
// loop through all clients
for( int i = 1; i <= gpGlobals->maxClients; i++ )
for( i = 1; i <= gpGlobals->maxClients; i++ )
{
CBaseEntity *plr = UTIL_PlayerByIndex( i );

3
dlls/util.h

@ -12,6 +12,8 @@ @@ -12,6 +12,8 @@
* without written permission from Valve LLC.
*
****/
#ifndef UTIL_H
#define UTIL_H
//
// Misc utility code
//
@ -585,3 +587,4 @@ void UTIL_Speak_2_l33t( char *szTarget, char *szString ); @@ -585,3 +587,4 @@ void UTIL_Speak_2_l33t( char *szTarget, char *szString );
void UTIL_SayTime( void );
int UTIL_axtoi( char *hexStg );
// BMOD End - Custom UTIL functions
#endif

Loading…
Cancel
Save