FF Diff Viewer

Comparing 2006 Base SDK to Fortress Forever 2.46

game_shared/teamplay_gamerules.h

383940414243
#define MAX_TEAMS 32 #define TEAMPLAY_TEAMLISTLENGTH MAX_TEAMS*MAX_TEAMNAME_LENGTH class CTeamplayRules : public CMultiplayRules
38394041424344
#define MAX_TEAMS 32 #define TEAMPLAY_TEAMLISTLENGTH MAX_TEAMS*MAX_TEAMNAME_LENGTH #define TEAMPLAY_GAMEDESCLENGTH 32 class CTeamplayRules : public CMultiplayRules
57585960616263
virtual bool ClientCommand( const char *pcmd, CBaseEntity *pEdict ); virtual void ClientSettingsChanged( CBasePlayer *pPlayer ); virtual bool IsTeamplay( void ); virtual bool FPlayerCanTakeDamage( CBasePlayer *pPlayer, CBaseEntity *pAttacker ); virtual int PlayerRelationship( CBaseEntity *pPlayer, CBaseEntity *pTarget ); virtual bool PlayerCanHearChat( CBasePlayer *pListener, CBasePlayer *pSpeaker ); virtual const char *GetTeamID( CBaseEntity *pEntity );
58596061626364
virtual bool ClientCommand( const char *pcmd, CBaseEntity *pEdict ); virtual void ClientSettingsChanged( CBasePlayer *pPlayer ); virtual bool IsTeamplay( void ); virtual bool FCanTakeDamage( CBaseEntity *pVictim, CBaseEntity *pAttacker ); virtual int PlayerRelationship( CBaseEntity *pPlayer, CBaseEntity *pTarget ); virtual bool PlayerCanHearChat( CBasePlayer *pListener, CBasePlayer *pSpeaker ); virtual const char *GetTeamID( CBaseEntity *pEntity );
65666768697071
virtual int IPointsForKill( CBasePlayer *pAttacker, CBasePlayer *pKilled ); virtual void InitHUD( CBasePlayer *pl ); virtual void DeathNotice( CBasePlayer *pVictim, const CTakeDamageInfo &info ); virtual const char *GetGameDescription( void ) { return "Teamplay"; } // this is the game name that gets seen in the server browser virtual void PlayerKilled( CBasePlayer *pVictim, const CTakeDamageInfo &info ); virtual void Think ( void ); virtual int GetTeamIndex( const char *pTeamName );
6667686970717273
virtual int IPointsForKill( CBasePlayer *pAttacker, CBasePlayer *pKilled ); virtual void InitHUD( CBasePlayer *pl ); virtual void DeathNotice( CBasePlayer *pVictim, const CTakeDamageInfo &info ); virtual const char *GetGameDescription( void ) { if (*m_szGameDescription) { return m_szGameDescription; } else { return "Fortress Forever"; } } // this is the game name that gets seen in the server browser virtual void SetGameDescription( const char *szGameDescription ) { Q_snprintf( m_szGameDescription, sizeof(m_szGameDescription), "FF %s", szGameDescription ); } // this is the game name that gets seen in the server browser virtual void PlayerKilled( CBasePlayer *pVictim, const CTakeDamageInfo &info ); virtual void Think ( void ); virtual int GetTeamIndex( const char *pTeamName );
858687888990
bool m_DisableDeathPenalty; bool m_teamLimit; // This means the server set only some teams as valid char m_szTeamList[TEAMPLAY_TEAMLISTLENGTH]; #endif };
87888990919293
bool m_DisableDeathPenalty; bool m_teamLimit; // This means the server set only some teams as valid char m_szTeamList[TEAMPLAY_TEAMLISTLENGTH]; char m_szGameDescription[TEAMPLAY_GAMEDESCLENGTH]; #endif };