Allow players to see players at every distance, but not effects

This commit is contained in:
def 2014-01-10 22:54:07 +01:00
parent 93a3fecea8
commit 5d23a38f66
3 changed files with 14 additions and 2 deletions

View file

@ -1046,6 +1046,16 @@ void CCharacter::Snap(int SnappingClient)
pCharacter->m_PlayerFlags = GetPlayer()->m_PlayerFlags;
}
int CCharacter::NetworkClipped(int SnappingClient)
{
return NetworkClipped(SnappingClient, m_Pos);
}
int CCharacter::NetworkClipped(int SnappingClient, vec2 CheckPos)
{
return 0;
}
// DDRace
bool CCharacter::CanCollide(int ClientID)

View file

@ -34,6 +34,8 @@ public:
virtual void TickDefered();
virtual void TickPaused();
virtual void Snap(int SnappingClient);
virtual int NetworkClipped(int SnappingClient);
virtual int NetworkClipped(int SnappingClient, vec2 CheckPos);
bool IsGrounded();

View file

@ -138,8 +138,8 @@ public:
Returns:
Non-zero if the entity doesn't have to be in the snapshot.
*/
int NetworkClipped(int SnappingClient);
int NetworkClipped(int SnappingClient, vec2 CheckPos);
virtual int NetworkClipped(int SnappingClient);
virtual int NetworkClipped(int SnappingClient, vec2 CheckPos);
bool GameLayerClipped(vec2 CheckPos);