3#ifndef GAME_SERVER_PLAYER_H
4#define GAME_SERVER_PLAYER_H
43 void Respawn(
bool WeakHook =
false);
45 void SetTeam(
int Team,
bool DoChatMsg =
true);
57 void Snap(
int SnappingClient);
180 int Pause(
int State,
bool Force);
#define MACRO_ALLOC_POOL_ID()
Definition: alloc.h:36
Definition: character.h:30
Definition: gamecontext.h:79
int m_TimerType
Definition: player.h:213
int64_t m_LastSqlQuery
Definition: player.h:220
int m_ShowOthers
Definition: player.h:188
bool m_SpecTeam
Definition: player.h:191
@ TIMERTYPE_GAMETIMER
Definition: player.h:167
@ TIMERTYPE_DEFAULT
Definition: player.h:166
@ TIMERTYPE_BROADCAST
Definition: player.h:168
@ TIMERTYPE_SIXUP
Definition: player.h:170
@ TIMERTYPE_NONE
Definition: player.h:171
@ TIMERTYPE_GAMETIMER_AND_BROADCAST
Definition: player.h:169
void OverrideDefaultEmote(int Emote, int Tick)
Definition: player.cpp:745
int GetClientVersion() const
Definition: player.cpp:560
void SpectatePlayerName(const char *pName)
Definition: player.cpp:856
int m_AccumMin
Definition: player.h:124
void SetTeam(int Team, bool DoChatMsg=true)
Definition: player.cpp:608
bool m_IsReady
Definition: player.h:88
bool m_Moderating
Definition: player.h:196
bool m_LastBroadcastImportance
Definition: player.h:207
int m_Paused
Definition: player.h:146
int m_Team
Definition: player.h:144
void SetInitialAfk(bool Afk)
Definition: player.cpp:720
void KillCharacter(int Weapon=WEAPON_GAME, bool SendKillMsg=true)
Definition: player.cpp:579
vec2 m_ShowDistance
Definition: player.h:190
const uint32_t m_UniqueClientId
Definition: player.h:132
bool m_BirthdayAnnounced
Definition: player.h:228
CGameContext * GameServer() const
Definition: player.h:137
IServer * Server() const
Definition: player.cpp:20
int m_LastKill
Definition: player.h:102
bool m_Spawning
Definition: player.h:141
struct CPlayer::@263 m_Latency
int m_SpectatorId
Definition: player.h:86
int GetTeam() const
Definition: player.h:46
std::shared_ptr< CScorePlayerResult > m_ScoreQueryResult
Definition: player.h:222
int m_DieTick
Definition: player.h:112
int64_t m_EligibleForFinishCheck
Definition: player.h:225
void FakeSnap()
Definition: player.cpp:455
@ PAUSE_NONE
Definition: player.h:159
@ PAUSE_SPEC
Definition: player.h:161
@ PAUSE_PAUSED
Definition: player.h:160
void ProcessScoreResult(CScorePlayerResult &Result)
Definition: player.cpp:871
int m_VotePos
Definition: player.h:92
int GetDefaultEmote() const
Definition: player.cpp:737
CPlayer(CGameContext *pGameServer, uint32_t UniqueClientId, int ClientId, int Team)
Definition: player.cpp:22
bool IsAfk() const
Definition: player.h:202
CCharacter * m_pCharacter
Definition: player.h:133
void PostTick()
Definition: player.cpp:279
int m_aCurLatency[MAX_CLIENTS]
Definition: player.h:81
int m_TeamChangeTick
Definition: player.h:118
void OnPredictedEarlyInput(CNetObj_PlayerInput *pNewInput)
Definition: player.cpp:545
int m_Avg
Definition: player.h:126
CGameContext * m_pGameServer
Definition: player.h:135
CTeeInfo m_TeeInfos
Definition: player.h:110
int64_t m_ForcePauseTime
Definition: player.h:147
int m_DefEmote
Definition: player.h:151
int m_AccumMax
Definition: player.h:125
int m_OverrideEmoteReset
Definition: player.h:153
int m_LastChangeInfo
Definition: player.h:99
int m_LastActionTick
Definition: player.h:117
int m_LastInvited
Definition: player.h:106
int m_LastWhisperTo
Definition: player.h:105
int m_LastVoteTry
Definition: player.h:95
CSaveTee m_LastTeleTee
Definition: player.h:232
int m_ChatScore
Definition: player.h:194
void AfkTimer()
Definition: player.cpp:706
int m_PreviousDieTick
Definition: player.h:113
void Snap(int SnappingClient)
Definition: player.cpp:308
int m_LastSetSpectatorMode
Definition: player.h:98
int m_aLastCommands[4]
Definition: player.h:103
vec2 m_ViewPos
Definition: player.h:73
int64_t m_LastPlaytime
Definition: player.h:204
void OnDisconnect()
Definition: player.cpp:497
int m_Vote
Definition: player.h:91
std::shared_ptr< CScorePlayerResult > m_ScoreFinishResult
Definition: player.h:223
bool m_Afk
Definition: player.h:149
int m_RescueMode
Definition: player.h:230
int m_Max
Definition: player.h:128
bool m_EyeEmoteEnabled
Definition: player.h:212
void ProcessPause()
Definition: player.cpp:762
int m_LastVoteCall
Definition: player.h:94
int m_ClientId
Definition: player.h:143
bool m_ShowAll
Definition: player.h:189
int IsPaused() const
Definition: player.cpp:846
int m_SendVoteIndex
Definition: player.h:108
int ForcePause(int Time)
Definition: player.cpp:832
int m_OverrideEmote
Definition: player.h:152
void UpdatePlaytime()
Definition: player.cpp:701
int m_NumInputs
Definition: player.h:134
std::optional< int > m_Score
Definition: player.h:114
void OnPredictedInput(CNetObj_PlayerInput *pNewInput)
Definition: player.cpp:504
char m_aTimeoutCode[64]
Definition: player.h:177
void TryRespawn()
Definition: player.cpp:683
int GetCid() const
Definition: player.h:47
bool m_NotEligibleForFinish
Definition: player.h:224
int m_SwapTargetsClientId
Definition: player.h:227
int m_LastSetTeam
Definition: player.h:97
int64_t m_Last_KickVote
Definition: player.h:186
int64_t m_LastBroadcast
Definition: player.h:206
int m_LastCommandPos
Definition: player.h:104
CNetObj_PlayerInput * m_pLastTarget
Definition: player.h:209
int m_Min
Definition: player.h:127
bool m_ForceBalanced
Definition: player.h:116
bool m_LastTargetInit
Definition: player.h:210
void SetAfk(bool Afk)
Definition: player.cpp:711
uint32_t GetUniqueCid() const
Definition: player.h:48
int m_TuneZoneOld
Definition: player.h:75
int m_PlayerFlags
Definition: player.h:78
int Pause(int State, bool Force)
Definition: player.cpp:778
CCharacter * ForceSpawn(vec2 Pos)
Definition: player.cpp:599
void PostPostTick()
Definition: player.cpp:299
void Reset()
Definition: player.cpp:41
int m_TuneZone
Definition: player.h:74
int m_Accum
Definition: player.h:123
bool m_FirstPacket
Definition: player.h:219
int64_t m_LastPause
Definition: player.h:148
int m_LastEmote
Definition: player.h:100
CCharacter * GetCharacter()
Definition: player.cpp:565
~CPlayer()
Definition: player.cpp:33
void OnDirectInput(CNetObj_PlayerInput *pNewInput)
Definition: player.cpp:524
bool m_DND
Definition: player.h:174
bool CanSpec() const
Definition: player.cpp:757
bool m_WeakHookSpawn
Definition: player.h:142
bool SetTimerType(int TimerType)
Definition: player.cpp:637
int64_t m_LastEyeEmote
Definition: player.h:205
bool m_VotedForPractice
Definition: player.h:226
bool CanOverrideDefaultEmote() const
Definition: player.cpp:752
int m_LastEmoteGlobal
Definition: player.h:101
void Tick()
Definition: player.cpp:162
int m_SentSnaps
Definition: player.h:83
bool IsPlaying() const
Definition: player.cpp:851
int m_JoinTick
Definition: player.h:115
bool m_Halloween
Definition: player.h:154
bool m_Whispers
Definition: player.h:175
int m_LastChat
Definition: player.h:96
void Respawn(bool WeakHook=false)
Definition: player.cpp:590
bool m_NinjaJetpack
Definition: player.h:192
int64_t m_FirstVoteTick
Definition: player.h:176
int64_t m_Last_Team
Definition: player.h:187
@ MAX_CLIENTS
Definition: protocol.h:88
@ WEAPON_SELF
Definition: player.h:27
@ WEAPON_GAME
Definition: player.h:26
@ WEAPON_WORLD
Definition: player.h:28
Definition: scoreworker.h:27