3#ifndef GAME_CLIENT_GAMECLIENT_H
4#define GAME_CLIENT_GAMECLIENT_H
200#if defined(CONF_AUTOUPDATE)
278#if defined(CONF_AUTOUPDATE)
584 int OnSnapInput(
int *pData,
bool Dummy,
bool Force)
override;
600 void RefreshSkin(
const std::shared_ptr<CManagedTeeRenderInfo> &pManagedTeeRenderInfo);
609 const char *
Version()
const override;
667 void Echo(
const char *pString)
override;
675 void LoadGameSkin(
const char *pPath,
bool AsDir =
false);
678 void LoadHudSkin(
const char *pPath,
bool AsDir =
false);
896 float MapValue(
float MaxValue,
float MinValue,
float MaxRange,
float MinRange,
float Value);
Definition: background.h:22
Definition: broadcast.h:12
Definition: gameworld.h:121
Definition: gamecore.h:177
Definition: collision.h:34
Definition: controls.h:14
Definition: countryflags.h:11
Definition: damageind.h:10
Definition: debughud.h:10
Definition: emoticon.h:12
Definition: freezebars.h:6
Definition: gameclient.h:503
int m_aUseCustomColors[protocol7::NUM_SKINPARTS]
Definition: gameclient.h:508
void Reset()
Definition: gameclient.cpp:2782
int m_aSkinPartColors[protocol7::NUM_SKINPARTS]
Definition: gameclient.h:509
char m_aaSkinPartNames[protocol7::NUM_SKINPARTS][protocol7::MAX_SKIN_LENGTH]
Definition: gameclient.h:507
Definition: gameclient.h:418
int m_ColorFeet
Definition: gameclient.h:426
bool m_ChatIgnore
Definition: gameclient.h:464
bool m_HookHitDisabled
Definition: gameclient.h:446
void UpdateSkinInfo()
Definition: gameclient.cpp:2570
vec2 m_SpecChar
Definition: gameclient.h:491
CSkinDescriptor ToSkinDescriptor() const
Definition: gameclient.cpp:2754
int ClientId() const
Definition: gameclient.h:500
int m_FreezeEnd
Definition: gameclient.h:452
char m_aClan[MAX_CLAN_LENGTH]
Definition: gameclient.h:429
std::shared_ptr< CManagedTeeRenderInfo > m_pSkinInfo
Definition: gameclient.h:459
bool m_Foe
Definition: gameclient.h:467
int m_aPredTick[200]
Definition: gameclient.h:489
bool m_EndlessHook
Definition: gameclient.h:440
bool m_LiveFrozen
Definition: gameclient.h:454
int m_Emoticon
Definition: gameclient.h:433
bool m_DeepFrozen
Definition: gameclient.h:453
bool m_Friend
Definition: gameclient.h:466
vec2 m_aPredPos[200]
Definition: gameclient.h:488
CCharacterCore m_Predicted
Definition: gameclient.h:456
bool m_IsPredicted
Definition: gameclient.h:484
bool m_Super
Definition: gameclient.h:447
bool m_Active
Definition: gameclient.h:463
CNetObj_Character m_RenderCur
Definition: gameclient.h:481
bool m_HasTelegunLaser
Definition: gameclient.h:451
int64_t m_aSmoothLen[2]
Definition: gameclient.h:487
float m_EmoticonStartFraction
Definition: gameclient.h:434
int m_ColorBody
Definition: gameclient.h:425
CGameClient * m_pGameClient
Definition: gameclient.h:420
vec2 m_RenderPos
Definition: gameclient.h:483
int m_Team
Definition: gameclient.h:432
int m_AuthLevel
Definition: gameclient.h:469
bool m_aSwitchStates[256]
Definition: gameclient.h:475
bool m_ShotgunHitDisabled
Definition: gameclient.h:445
bool m_Solo
Definition: gameclient.h:437
int m_ClientId
Definition: gameclient.h:421
bool m_HasTelegunGun
Definition: gameclient.h:449
int m_EmoticonStartTick
Definition: gameclient.h:435
void UpdateRenderInfo()
Definition: gameclient.cpp:2621
bool m_Invincible
Definition: gameclient.h:448
char m_aName[MAX_NAME_LENGTH]
Definition: gameclient.h:428
CNetObj_Character m_Evolved
Definition: gameclient.h:478
CNetObj_Character m_RenderPrev
Definition: gameclient.h:482
bool m_GrenadeHitDisabled
Definition: gameclient.h:443
bool m_HammerHitDisabled
Definition: gameclient.h:442
bool m_Jetpack
Definition: gameclient.h:438
CSixup m_aSixup[NUM_DUMMIES]
Definition: gameclient.h:513
bool m_Afk
Definition: gameclient.h:470
float m_Angle
Definition: gameclient.h:462
bool m_Spec
Definition: gameclient.h:472
CNetObj_Character m_Snapped
Definition: gameclient.h:477
bool m_IsPredictedLocal
Definition: gameclient.h:485
CTeeRenderInfo m_RenderInfo
Definition: gameclient.h:460
bool m_CollisionDisabled
Definition: gameclient.h:439
bool m_EmoticonIgnore
Definition: gameclient.h:465
void Reset()
Definition: gameclient.cpp:2675
int m_Country
Definition: gameclient.h:430
bool m_SpecCharPresent
Definition: gameclient.h:490
int m_UseCustomColor
Definition: gameclient.h:424
char m_aSkinName[MAX_SKIN_LENGTH]
Definition: gameclient.h:431
int64_t m_aSmoothStart[2]
Definition: gameclient.h:486
bool m_EndlessJump
Definition: gameclient.h:441
bool m_HasTelegunGrenade
Definition: gameclient.h:450
void UpdateSkin7BotDecoration(int Dummy)
Definition: sixup_translate_game.cpp:131
bool m_Paused
Definition: gameclient.h:471
void UpdateSkin7HatSprite(int Dummy)
Definition: sixup_translate_game.cpp:112
CCharacterCore m_PrevPredicted
Definition: gameclient.h:457
bool m_LaserHitDisabled
Definition: gameclient.h:444
Definition: gameclient.h:519
bool IsActive() const
Definition: gameclient.h:540
float GetFPM(int Tick, int TickSpeed) const
Definition: gameclient.h:552
int m_FlagGrabs
Definition: gameclient.h:535
int m_aFragsWith[NUM_WEAPONS]
Definition: gameclient.h:527
int m_aDeathsFrom[NUM_WEAPONS]
Definition: gameclient.h:528
int GetIngameTicks(int Tick) const
Definition: gameclient.h:551
int m_Suicides
Definition: gameclient.h:531
void Reset()
Definition: gameclient.cpp:2552
int m_BestSpree
Definition: gameclient.h:532
int m_JoinTick
Definition: gameclient.h:521
int m_Deaths
Definition: gameclient.h:530
int m_CurrentSpree
Definition: gameclient.h:533
int m_FlagCaptures
Definition: gameclient.h:536
void JoinGame(int Tick)
Definition: gameclient.h:541
bool m_Active
Definition: gameclient.h:522
void JoinSpec(int Tick)
Definition: gameclient.h:546
int m_Frags
Definition: gameclient.h:529
int m_IngameTicks
Definition: gameclient.h:520
CClientStats()
Definition: gameclient.cpp:2547
Definition: gameclient.h:389
int m_NumSamples
Definition: gameclient.h:400
static constexpr int SAMPLE_FRAME_WINDOW
Definition: gameclient.h:392
vec2 m_Position
Definition: gameclient.h:406
int m_CursorOwnerId
Definition: gameclient.h:397
bool m_Available
Definition: gameclient.h:402
bool IsAvailable() const
Definition: gameclient.h:409
static constexpr double INTERP_DELAY
Definition: gameclient.h:394
vec2 Position() const
Definition: gameclient.h:413
static constexpr int SAMPLE_FRAME_OFFSET
Definition: gameclient.h:393
int Weapon() const
Definition: gameclient.h:410
vec2 Target() const
Definition: gameclient.h:411
static constexpr int CURSOR_SAMPLES
Definition: gameclient.h:391
vec2 m_Target
Definition: gameclient.h:404
static constexpr double REST_THRESHOLD
Definition: gameclient.h:395
vec2 m_WorldTarget
Definition: gameclient.h:405
int m_Weapon
Definition: gameclient.h:403
vec2 m_aTargetSamplesData[CURSOR_SAMPLES]
Definition: gameclient.h:399
vec2 WorldTarget() const
Definition: gameclient.h:412
double m_aTargetSamplesTime[CURSOR_SAMPLES]
Definition: gameclient.h:398
Definition: gameclient.h:345
bool m_UsePosition
Definition: gameclient.h:349
int m_FollowFactor
Definition: gameclient.h:355
int m_Deadzone
Definition: gameclient.h:354
vec2 m_Position
Definition: gameclient.h:350
int m_SpectatorCount
Definition: gameclient.h:356
bool m_Active
Definition: gameclient.h:347
float m_Zoom
Definition: gameclient.h:353
bool m_HasCameraInfo
Definition: gameclient.h:352
int m_SpectatorId
Definition: gameclient.h:348
Definition: gameclient.h:130
void InitializeLanguage() override
Definition: gameclient.cpp:281
void OnStateChange(int NewState, int OldState) override
Definition: gameclient.cpp:1188
void DetectStrongHook()
Definition: gameclient.cpp:3463
void UpdateSpectatorCursor()
Definition: gameclient.cpp:3282
CSkins7 m_Skins7
Definition: gameclient.h:143
void DummyResetInput() override
Definition: gameclient.cpp:4366
const char * DDNetVersionStr() const override
Definition: gameclient.cpp:88
void RefreshSkins(int SkinDescriptorFlags)
Definition: gameclient.cpp:4183
unsigned int m_DummyFire
Definition: gameclient.h:637
void LoadGameSkin(const char *pPath, bool AsDir=false)
Definition: gameclient.cpp:3615
bool CanDisplayWarning() const override
Definition: gameclient.cpp:4381
int OnDemoRecSnap7(class CSnapshot *pFrom, class CSnapshot *pTo, int Conn) override
Definition: sixup_translate_snapshot.cpp:501
CCharacterCore m_PredictedChar
Definition: gameclient.h:317
char m_aDDNetVersionStr[64]
Definition: gameclient.h:227
int IntersectCharacter(vec2 HookPos, vec2 NewPos, vec2 &NewPos2, int OwnId)
Definition: gameclient.cpp:3038
float m_LastZoom
Definition: gameclient.h:884
static void ConchainSpecialDummyInfoupdate(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition: gameclient.cpp:3016
CRenderTools m_RenderTools
Definition: gameclient.h:557
class IConfigManager * m_pConfigManager
Definition: gameclient.h:189
int m_PredictedTick
Definition: gameclient.h:216
bool GotWantedSkin7(bool Dummy)
Definition: gameclient.cpp:2834
void OnRender() override
Definition: gameclient.cpp:769
int m_aCheckInfo[NUM_DUMMIES]
Definition: gameclient.h:225
CSnapState m_Snap
Definition: gameclient.h:380
const char * NetobjCorrectedOn()
Definition: gameclient.h:293
bool m_NewTick
Definition: gameclient.h:296
SClientHudSkin m_HudSkin
Definition: gameclient.h:829
bool m_GameOver
Definition: gameclient.h:249
CSounds m_Sounds
Definition: gameclient.h:152
CNamePlates m_NamePlates
Definition: gameclient.h:160
void SendSkinChange7(bool Dummy)
Definition: gameclient.cpp:2818
int m_IsDummySwapping
Definition: gameclient.h:874
const CRaceHelper * RaceHelper() const
Definition: gameclient.h:274
class IConsole * Console()
Definition: gameclient.h:264
CSkins m_Skins
Definition: gameclient.h:142
const CCollision * Collision() const
Definition: gameclient.h:273
vec2 m_aLastPos[MAX_CLIENTS]
Definition: gameclient.h:245
void OnInit() override
Definition: gameclient.cpp:290
float m_LastFollowFactor
Definition: gameclient.h:887
static void ConMapbug(IConsole::IResult *pResult, void *pUserData)
Definition: gameclient.cpp:4331
int m_MultiViewTeam
Definition: gameclient.h:844
bool m_SuppressEvents
Definition: gameclient.h:295
float m_MultiViewPersonalZoom
Definition: gameclient.h:845
size_t ComponentCount()
Definition: gameclient.h:561
float CalculateMultiViewZoom(vec2 MinPos, vec2 MaxPos, float Vel)
Definition: gameclient.cpp:4687
class IServerBrowser * ServerBrowser() const
Definition: gameclient.h:269
bool m_EmoticonsSkinLoaded
Definition: gameclient.h:792
CCountryFlags m_CountryFlags
Definition: gameclient.h:144
CDebugHud m_DebugHud
Definition: gameclient.h:147
class IGraphics * Graphics() const
Definition: gameclient.h:256
bool AntiPingGrenade()
Definition: gameclient.h:650
bool m_HudSkinLoaded
Definition: gameclient.h:830
class IStorage * m_pStorage
Definition: gameclient.h:192
IEngine * Engine() const
Definition: gameclient.h:255
void OnRconLine(const char *pLine) override
Definition: gameclient.cpp:1294
CNetObj_PlayerInput m_DummyInput
Definition: gameclient.h:635
CCollision m_Collision
Definition: gameclient.h:206
int m_LastFlagCarrierRed
Definition: gameclient.h:222
void OnActivateEditor() override
Definition: gameclient.cpp:2542
class IEditor * Editor()
Definition: gameclient.h:275
class IDemoPlayer * DemoPlayer() const
Definition: gameclient.h:266
CInfoMessages m_InfoMessages
Definition: gameclient.h:133
void RefreshSkin(const std::shared_ptr< CManagedTeeRenderInfo > &pManagedTeeRenderInfo)
Definition: gameclient.cpp:4138
CHud m_Hud
Definition: gameclient.h:146
void SendSwitchTeam(int Team) const
Definition: gameclient.cpp:2792
void SendDummyInfo(bool Start) override
Definition: gameclient.cpp:2916
class CConfig * Config() const
Definition: gameclient.h:263
void DoTeamChangeMessage7(const char *pName, int ClientId, int Team, const char *pPrefix="")
Definition: sixup_translate_game.cpp:68
void OnMessage(int MsgId, CUnpacker *pUnpacker, int Conn, bool Dummy) override
Definition: gameclient.cpp:985
class CTeamsCore m_Teams
Definition: gameclient.h:640
void OnReset()
Definition: gameclient.cpp:600
bool IsMultiViewIdSet()
Definition: gameclient.cpp:4746
void OnPredict() override
Definition: gameclient.cpp:2288
std::vector< class CComponent * > m_vpAll
Definition: gameclient.h:178
class IFavorites * Favorites() const
Definition: gameclient.h:268
int LastRaceTick() const
Definition: gameclient.cpp:911
virtual void OnStartGame()
Definition: gameclient.cpp:1215
void OnConnected() override
Definition: gameclient.cpp:558
void UpdatePositions()
Definition: gameclient.cpp:705
void RenderShutdownMessage() override
Definition: gameclient.cpp:1270
SClientEmoticonsSkin m_EmoticonsSkin
Definition: gameclient.h:791
static void ConchainSpecialDummy(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition: gameclient.cpp:3023
CCamera m_Camera
Definition: gameclient.h:134
bool m_MultiViewShowHud
Definition: gameclient.h:846
bool PredictDummy()
Definition: gameclient.h:654
CGhost m_Ghost
Definition: gameclient.h:173
float m_LastDeadzone
Definition: gameclient.h:886
bool m_aReceivedTuning[NUM_DUMMIES]
Definition: gameclient.h:382
class CGameClient::CCursorInfo m_CursorInfo
void UpdateManagedTeeRenderInfos()
Definition: gameclient.cpp:4240
std::vector< CSnapEntities > m_vSnapEntities
Definition: gameclient.h:855
CBinds m_Binds
Definition: gameclient.h:139
void SendStartInfo7(bool Dummy)
Definition: gameclient.cpp:2799
class ITextRender * m_pTextRender
Definition: gameclient.h:186
CEmoticon m_Emoticon
Definition: gameclient.h:153
class IConsole * m_pConsole
Definition: gameclient.h:191
const char * Version() const override
Definition: gameclient.cpp:84
std::vector< class CComponent * > m_vpInput
Definition: gameclient.h:179
class IClient * m_pClient
Definition: gameclient.h:187
static void ConchainMenuMap(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition: gameclient.cpp:4351
CCollision * Collision()
Definition: gameclient.h:272
class ISound * m_pSound
Definition: gameclient.h:188
float m_LastScreenAspect
Definition: gameclient.h:885
CParticles m_Particles
Definition: gameclient.h:140
CBroadcast m_Broadcast
Definition: gameclient.h:137
void OnConsoleInit() override
Definition: gameclient.cpp:92
class IDemoRecorder * DemoRecorder(int Recorder) const
Definition: gameclient.h:267
static void ConchainLanguageUpdate(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition: gameclient.cpp:2998
void OnLanguageChange()
Definition: gameclient.cpp:1249
const char * NetVersion7() const override
Definition: gameclient.cpp:86
static void ConchainRefreshSkins(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition: gameclient.cpp:4255
virtual void OnGameOver()
Definition: gameclient.cpp:1209
CScoreboard m_Scoreboard
Definition: gameclient.h:150
class ITextRender * TextRender() const
Definition: gameclient.h:265
int m_aExpectingTuningSince[NUM_DUMMIES]
Definition: gameclient.h:384
bool Predict() const
Definition: gameclient.cpp:925
int m_aLocalTuneZone[NUM_DUMMIES]
Definition: gameclient.h:381
CStatboard m_Statboard
Definition: gameclient.h:151
const char * GetItemName(int Type) const override
Definition: gameclient.cpp:90
bool m_NewPredictedTick
Definition: gameclient.h:297
float m_LastShowDistanceZoom
Definition: gameclient.h:883
virtual void OnStartRound()
Definition: gameclient.cpp:1222
CMapSounds m_MapSounds
Definition: gameclient.h:170
CMotd m_Motd
Definition: gameclient.h:136
bool m_aLastActive[MAX_CLIENTS]
Definition: gameclient.h:246
bool m_ExtrasSkinLoaded
Definition: gameclient.h:840
static void ConchainSpecialInfoupdate(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition: gameclient.cpp:3009
void ResetMultiView()
Definition: gameclient.cpp:4718
int m_PredictedDummyId
Definition: gameclient.h:873
CGameInfo m_GameInfo
Definition: gameclient.h:307
class CLayers * Layers()
Definition: gameclient.h:271
vec2 GetSmoothPos(int ClientId)
Definition: gameclient.cpp:3548
CNetObjHandler m_NetObjHandler
Definition: gameclient.h:180
void InvalidateSnapshot() override
Definition: gameclient.cpp:1542
protocol7::CNetObjHandler * GetNetObjHandler7() override
Definition: gameclient.cpp:4391
class IInput * m_pInput
Definition: gameclient.h:184
static void ConReadyChange7(IConsole::IResult *pResult, void *pUserData)
Definition: gameclient.cpp:2991
void OnDummyDisconnect() override
Definition: gameclient.cpp:902
class IServerBrowser * m_pServerBrowser
Definition: gameclient.h:195
SClientParticlesSkin m_ParticlesSkin
Definition: gameclient.h:783
void LoadEmoticonsSkin(const char *pPath, bool AsDir=false)
Definition: gameclient.cpp:3872
int m_LastRoundStartTick
Definition: gameclient.h:219
int NetobjNumCorrections()
Definition: gameclient.h:289
CTuningParams m_aTuning[NUM_DUMMIES]
Definition: gameclient.h:385
int m_LastFlagCarrierBlue
Definition: gameclient.h:223
CTuningParams * TuningList()
Definition: gameclient.h:881
void UpdateRenderedCharacters()
Definition: gameclient.cpp:3407
void LoadParticlesSkin(const char *pPath, bool AsDir=false)
Definition: gameclient.cpp:3916
int CurrentRaceTime() const
Definition: gameclient.cpp:916
class IDiscord * m_pDiscord
Definition: gameclient.h:199
CRaceDemo m_RaceDemo
Definition: gameclient.h:172
CSpectator m_Spectator
Definition: gameclient.h:157
CEffects m_Effects
Definition: gameclient.h:149
class IEditor * m_pEditor
Definition: gameclient.h:196
CGameWorld m_GameWorld
Definition: gameclient.h:659
void ProcessEvents()
Definition: gameclient.cpp:1299
void HandleLanguageChanged()
Definition: gameclient.cpp:1257
bool m_GamePaused
Definition: gameclient.h:250
SClientGameSkin m_GameSkin
Definition: gameclient.h:767
CGameConsole m_GameConsole
Definition: gameclient.h:138
bool m_aDDRaceMsgSent[NUM_DUMMIES]
Definition: gameclient.h:858
virtual void OnFlagGrab(int TeamId)
Definition: gameclient.cpp:1233
CGameWorld m_PrevPredictedWorld
Definition: gameclient.h:661
const CTuningParams * GetTuning(int i)
Definition: gameclient.h:655
CFlow m_Flow
Definition: gameclient.h:145
void OnDummySwap() override
Definition: gameclient.cpp:492
CLayers m_Layers
Definition: gameclient.h:205
bool m_aMultiViewId[MAX_CLIENTS]
Definition: gameclient.h:848
void SnapCollectEntities()
Definition: gameclient.cpp:4396
void UpdatePrediction()
Definition: gameclient.cpp:3089
void UpdateEditorIngameMoved()
Definition: gameclient.cpp:2271
CMapLayers m_MapLayersBackground
Definition: gameclient.h:165
CControls m_Controls
Definition: gameclient.h:148
int m_ServerMode
Definition: gameclient.h:306
CClientData m_aClients[MAX_CLIENTS]
Definition: gameclient.h:516
int m_aSwitchStateTeam[NUM_DUMMIES]
Definition: gameclient.h:876
int m_aFlagDropTick[2]
Definition: gameclient.h:298
IKernel * Kernel()
Definition: gameclient.h:254
int SwitchStateTeam() const
Definition: gameclient.cpp:3597
float CalculateMultiViewMultiplier(vec2 TargetPos)
Definition: gameclient.cpp:4664
int m_aExpectingTuningForZone[NUM_DUMMIES]
Definition: gameclient.h:383
void CleanMultiViewId(int ClientId)
Definition: gameclient.cpp:4736
int DDNetVersion() const override
Definition: gameclient.cpp:87
int m_LastRaceTick
Definition: gameclient.h:220
CFreezeBars m_FreezeBars
Definition: gameclient.h:161
int m_DemoSpecId
Definition: gameclient.h:311
class IClient * Client() const
Definition: gameclient.h:257
class IFavorites * m_pFavorites
Definition: gameclient.h:194
void CleanMultiViewIds()
Definition: gameclient.cpp:4729
class IFriends * m_pFoes
Definition: gameclient.h:198
CPlayers m_Players
Definition: gameclient.h:159
class ISound * Sound() const
Definition: gameclient.h:259
CTouchControls m_TouchControls
Definition: gameclient.h:155
void SendKill() const
Definition: gameclient.cpp:2958
CNetObj_PlayerInput m_HammerInput
Definition: gameclient.h:636
const std::vector< CSnapEntities > & SnapEntities()
Definition: gameclient.h:842
CClientStats m_aStats[MAX_CLIENTS]
Definition: gameclient.h:555
static void ConTeam(IConsole::IResult *pResult, void *pUserData)
Definition: gameclient.cpp:2981
CMapLayers m_MapLayersForeground
Definition: gameclient.h:166
std::vector< SSwitchers > & PredSwitchers()
Definition: gameclient.h:664
CMapImages m_MapImages
Definition: gameclient.h:163
static void ConTuneZone(IConsole::IResult *pResult, void *pUserData)
Definition: gameclient.cpp:4320
CTuningParams m_aTuningList[NUM_TUNEZONES]
Definition: gameclient.h:880
vec2 m_LocalCharacterPos
Definition: gameclient.h:313
CItems m_Items
Definition: gameclient.h:162
const char * NetVersion() const override
Definition: gameclient.cpp:85
std::shared_ptr< CManagedTeeRenderInfo > CreateManagedTeeRenderInfo(const CTeeRenderInfo &TeeRenderInfo, const CSkinDescriptor &SkinDescriptor)
Definition: gameclient.cpp:4227
bool IsLocalCharSuper() const
Definition: gameclient.cpp:3608
ColorRGBA GetDDTeamColor(int DDTeam, float Lightness=0.5f) const
Definition: gameclient.cpp:944
bool IsOtherTeam(int ClientId) const
Definition: gameclient.cpp:3574
void LoadHudSkin(const char *pPath, bool AsDir=false)
Definition: gameclient.cpp:3987
CUi m_UI
Definition: gameclient.h:207
class CConfig * m_pConfig
Definition: gameclient.h:190
void OnWindowResize() override
Definition: gameclient.cpp:1241
int FindFirstMultiViewId()
Definition: gameclient.cpp:4751
CMapBugs m_MapBugs
Definition: gameclient.h:879
SMultiView m_MultiView
Definition: gameclient.h:911
void FormatClientId(int ClientId, char(&aClientId)[16], EClientIdFormat Format) const
Definition: gameclient.cpp:952
void SendReadyChange7()
Definition: gameclient.cpp:2970
bool m_GameSkinLoaded
Definition: gameclient.h:768
void OnRconType(bool UsernameReq) override
Definition: gameclient.cpp:1289
void OnSkinUpdate(const char *pSkinName)
Definition: gameclient.cpp:4214
void * TranslateGameMsg(int *pMsgId, CUnpacker *pUnpacker, int Conn)
Definition: sixup_translate_game.cpp:163
int m_aShowOthers[NUM_DUMMIES]
Definition: gameclient.h:859
bool m_LastDummyConnected
Definition: gameclient.h:888
class IInput * Input() const
Definition: gameclient.h:260
bool AntiPingGunfire()
Definition: gameclient.h:652
void Echo(const char *pString) override
Definition: gameclient.cpp:3569
bool AntiPingWeapons()
Definition: gameclient.h:651
protocol7::CNetObjHandler m_NetObjHandler7
Definition: gameclient.h:181
CDamageInd m_DamageInd
Definition: gameclient.h:154
CGameWorld m_PredictedWorld
Definition: gameclient.h:660
bool IsTeamPlay()
Definition: gameclient.h:647
void HandleMultiView()
Definition: gameclient.cpp:4442
@ SERVERMODE_PUREMOD
Definition: gameclient.h:304
@ SERVERMODE_PURE
Definition: gameclient.h:302
@ SERVERMODE_MOD
Definition: gameclient.h:303
class CUi * Ui()
Definition: gameclient.h:258
int m_aLastUpdateTick[MAX_CLIENTS]
Definition: gameclient.h:868
CTooltips m_Tooltips
Definition: gameclient.h:175
bool InitMultiView(int Team)
Definition: gameclient.cpp:4555
class IDemoPlayer * m_pDemoPlayer
Definition: gameclient.h:193
int m_EditorMovementDelay
Definition: gameclient.h:213
CVoting m_Voting
Definition: gameclient.h:156
void ApplySkin7InfoFromGameMsg(const T *pMsg, int ClientId, int Conn)
Definition: sixup_translate_game.cpp:82
CMenus m_Menus
Definition: gameclient.h:141
CBackground m_Background
Definition: gameclient.h:167
void OnNewSnapshot() override
Definition: gameclient.cpp:1551
void ApplySkin7InfoFromSnapObj(const protocol7::CNetObj_De_ClientInfo *pObj, int ClientId) override
Definition: sixup_translate_game.cpp:97
class IFriends * m_pFriends
Definition: gameclient.h:197
class IHttp * m_pHttp
Definition: gameclient.h:203
class IStorage * Storage() const
Definition: gameclient.h:261
void OnShutdown() override
Definition: gameclient.cpp:1199
void LoadExtrasSkin(const char *pPath, bool AsDir=false)
Definition: gameclient.cpp:4088
std::vector< std::shared_ptr< CManagedTeeRenderInfo > > m_vpManagedTeeRenderInfos
Definition: gameclient.h:861
class IEngine * m_pEngine
Definition: gameclient.h:183
virtual int ClientVersion7() const override
Definition: gameclient.cpp:89
void OnUpdate() override
Definition: gameclient.cpp:439
bool m_LanguageChanged
Definition: gameclient.h:596
int TranslateSnap(CSnapshot *pSnapDstSix, CSnapshot *pSnapSrcSeven, int Conn, bool Dummy) override
Definition: sixup_translate_snapshot.cpp:7
CNetObjHandler * GetNetObjHandler() override
Definition: gameclient.cpp:4386
bool m_MultiViewActivated
Definition: gameclient.h:847
class IFriends * Foes()
Definition: gameclient.h:277
CRaceHelper m_RaceHelper
Definition: gameclient.h:208
class IConfigManager * ConfigManager() const
Definition: gameclient.h:262
int m_aLastNewPredictedTick[NUM_DUMMIES]
Definition: gameclient.h:217
bool m_ReceivedDDNetPlayer
Definition: gameclient.h:638
CCharOrder m_CharOrder
Definition: gameclient.h:875
bool AntiPingPlayers()
Definition: gameclient.h:649
char m_aSavedLocalRconPassword[sizeof(g_Config.m_SvRconPassword)]
Definition: gameclient.h:309
SClientExtrasSkin m_ExtrasSkin
Definition: gameclient.h:839
class IGraphics * m_pGraphics
Definition: gameclient.h:185
class IHttp * Http()
Definition: gameclient.h:284
std::vector< SSwitchers > & Switchers()
Definition: gameclient.h:663
CMenuBackground m_MenuBackground
Definition: gameclient.h:168
int m_PrevLocalId
Definition: gameclient.h:251
int m_aLocalIds[NUM_DUMMIES]
Definition: gameclient.h:634
void LoadMapSettings()
Definition: gameclient.cpp:4270
bool m_ParticlesSkinLoaded
Definition: gameclient.h:784
int OnSnapInput(int *pData, bool Dummy, bool Force) override
Definition: gameclient.cpp:506
class CRenderTools * RenderTools()
Definition: gameclient.h:270
float MapValue(float MaxValue, float MinValue, float MaxRange, float MinRange, float Value)
Definition: gameclient.cpp:4713
static void ConKill(IConsole::IResult *pResult, void *pUserData)
Definition: gameclient.cpp:2986
void OnEnterGame() override
Definition: gameclient.cpp:1205
CChat m_Chat
Definition: gameclient.h:135
int m_NextChangeInfo
Definition: gameclient.h:630
CCharacterCore m_PredictedPrevChar
Definition: gameclient.h:316
class IFriends * Friends()
Definition: gameclient.h:276
virtual void OnRelease()
Definition: gameclient.cpp:978
void SendInfo(bool Start)
Definition: gameclient.cpp:2874
Definition: gameclient.h:68
bool m_BugDDRaceGhost
Definition: gameclient.h:81
bool m_EntitiesFNG
Definition: gameclient.h:94
bool m_AllowZoom
Definition: gameclient.h:79
bool m_AllowXSkins
Definition: gameclient.h:103
bool m_EntitiesRace
Definition: gameclient.h:93
bool m_AllowHookColl
Definition: gameclient.h:78
bool m_NoWeakHookAndBounce
Definition: gameclient.h:109
bool m_DDRaceTeam
Definition: gameclient.h:112
bool m_PredictDDRace
Definition: gameclient.h:87
bool m_FlagStartsRace
Definition: gameclient.h:70
bool m_DDRaceRecordMessage
Definition: gameclient.h:73
bool m_EntitiesFDDrace
Definition: gameclient.h:97
bool m_EntitiesDDNet
Definition: gameclient.h:91
bool m_PredictVanilla
Definition: gameclient.h:89
bool m_RaceRecordMessage
Definition: gameclient.h:74
bool m_AllowEyeWheel
Definition: gameclient.h:77
bool m_PredictFNG
Definition: gameclient.h:86
bool m_HudAmmo
Definition: gameclient.h:106
bool m_RaceSounds
Definition: gameclient.h:75
bool m_HudHealthArmor
Definition: gameclient.h:105
bool m_EntitiesVanilla
Definition: gameclient.h:95
bool m_EntitiesBW
Definition: gameclient.h:96
bool m_PredictDDRaceTiles
Definition: gameclient.h:88
bool m_TimeScore
Definition: gameclient.h:71
bool m_EntitiesDDRace
Definition: gameclient.h:92
bool m_DontMaskEntities
Definition: gameclient.h:102
bool m_BugFNGLaserRange
Definition: gameclient.h:83
bool m_HudDDRace
Definition: gameclient.h:107
bool m_BugDDRaceInput
Definition: gameclient.h:82
bool m_Pvp
Definition: gameclient.h:100
bool m_UnlimitedAmmo
Definition: gameclient.h:72
bool m_Race
Definition: gameclient.h:99
bool m_NoSkinChangeForFrozen
Definition: gameclient.h:110
bool m_BugVanillaBounce
Definition: gameclient.h:84
Definition: gameworld.h:18
CWorldCore m_Core
Definition: gameworld.h:35
Definition: infomessages.h:10
Definition: mapimages.h:44
Definition: maplayers.h:28
@ TYPE_FOREGROUND
Definition: maplayers.h:139
@ TYPE_BACKGROUND
Definition: maplayers.h:137
Definition: mapsounds.h:12
Definition: nameplates.h:47
Definition: protocol.h:1261
int NumObjCorrections() const
Definition: protocol.cpp:17
const char * CorrectedObjOn() const
Definition: protocol.cpp:18
Definition: particles.h:64
Definition: race_demo.h:10
Definition: scoreboard.h:13
Definition: gameclient.h:116
const CNetObj_EntityEx * m_pDataEx
Definition: gameclient.h:119
IClient::CSnapItem m_Item
Definition: gameclient.h:118
Definition: snapshot.h:31
Definition: spectator.h:12
Definition: statboard.h:10
Definition: teamscore.h:25
Definition: touch_controls.h:23
Definition: gamecore.h:42
std::vector< SSwitchers > m_vSwitchers
Definition: gamecore.h:173
virtual class IDemoRecorder * DemoRecorder(int Recorder)=0
@ STATE_DEMOPLAYBACK
Definition: client.h:57
virtual bool DummyConnected() const =0
EClientState State() const
Definition: client.h:140
void(* FCommandCallback)(IResult *pResult, void *pUserData)
Definition: console.h:94
Definition: favorites.h:14
Definition: graphics.h:201
bool IsValid() const
Definition: graphics.h:211
Definition: graphics.h:184
IKernel * Kernel()
Definition: kernel.h:16
Definition: serverbrowser.h:263
Definition: textrender.h:314
Definition: protocol7.h:1229
CConfig g_Config
Definition: config.cpp:12
@ NUM_DUMMIES
Definition: enums.h:8
@ MAX_CLAN_LENGTH
Definition: protocol.h:99
@ MAX_CLIENTS
Definition: protocol.h:88
@ MAX_SKIN_LENGTH
Definition: protocol.h:100
@ MAX_NAME_LENGTH
Definition: protocol.h:98
@ NUM_TUNEZONES
Definition: protocol.h:138
@ GAMEFLAG_TEAMS
Definition: protocol.h:145
@ NUM_WEAPONS
Definition: protocol.h:1257
ColorRGBA CalculateNameColor(ColorHSLA TextColorHSL)
Definition: gameclient.cpp:3084
EClientIdFormat
Definition: gameclient.h:123
@ NUM_SKINPARTS
Definition: protocol7.h:36
@ MAX_SKIN_LENGTH
Definition: protocol7.h:63
Definition: gameclient.h:361
vec2 m_Position
Definition: gameclient.h:374
CNetObj_Character m_Cur
Definition: gameclient.h:366
bool m_HasExtendedDisplayInfo
Definition: gameclient.h:371
const CNetObj_DDNetCharacter * m_PrevExtendedData
Definition: gameclient.h:369
CNetObj_DDNetCharacter m_ExtendedData
Definition: gameclient.h:368
bool m_Active
Definition: gameclient.h:362
bool m_HasExtendedData
Definition: gameclient.h:370
CNetObj_Character m_Prev
Definition: gameclient.h:365
Definition: gameclient.h:321
int m_HighestClientId
Definition: gameclient.h:341
class CGameClient::CSnapState::CSpectateInfo m_SpecInfo
const CNetObj_PlayerInfo * m_pLocalInfo
Definition: gameclient.h:324
const CNetObj_SpectatorInfo * m_pSpectatorInfo
Definition: gameclient.h:325
const CNetObj_GameInfo * m_pGameInfoObj
Definition: gameclient.h:328
const CNetObj_SpectatorInfo * m_pPrevSpectatorInfo
Definition: gameclient.h:326
int m_LocalClientId
Definition: gameclient.h:338
const CNetObj_PlayerInfo * m_apInfoByDDTeamScore[MAX_CLIENTS]
Definition: gameclient.h:335
const CNetObj_PlayerInfo * m_apInfoByScore[MAX_CLIENTS]
Definition: gameclient.h:333
const CNetObj_PlayerInfo * m_apInfoByName[MAX_CLIENTS]
Definition: gameclient.h:334
int m_aTeamSize[2]
Definition: gameclient.h:340
const CNetObj_Character * m_pLocalPrevCharacter
Definition: gameclient.h:323
CCharacterInfo m_aCharacters[MAX_CLIENTS]
Definition: gameclient.h:377
const CNetObj_PlayerInfo * m_apPlayerInfos[MAX_CLIENTS]
Definition: gameclient.h:332
const CNetObj_GameData * m_pGameDataObj
Definition: gameclient.h:329
const CNetObj_PlayerInfo * m_apInfoByDDTeamName[MAX_CLIENTS]
Definition: gameclient.h:336
const CNetObj_Character * m_pLocalCharacter
Definition: gameclient.h:322
int m_NumPlayers
Definition: gameclient.h:339
int m_GameDataSnapId
Definition: gameclient.h:330
const CNetObj_Flag * m_apFlags[2]
Definition: gameclient.h:327
Definition: gameclient.h:787
IGraphics::CTextureHandle m_aSpriteEmoticons[16]
Definition: gameclient.h:788
Definition: gameclient.h:682
IGraphics::CTextureHandle m_aSpriteWeaponProjectiles[6]
Definition: gameclient.h:725
IGraphics::CTextureHandle m_SpriteNinjaBarEmptyRight
Definition: gameclient.h:759
IGraphics::CTextureHandle m_SpritePickupGun
Definition: gameclient.h:745
IGraphics::CTextureHandle m_SpriteWeaponShotgun
Definition: gameclient.h:704
IGraphics::CTextureHandle m_SpritePickupArmorLaser
Definition: gameclient.h:740
IGraphics::CTextureHandle m_SpriteWeaponShotgunProjectile
Definition: gameclient.h:719
IGraphics::CTextureHandle m_SpritePickupArmorGrenade
Definition: gameclient.h:738
IGraphics::CTextureHandle m_SpriteArmorEmpty
Definition: gameclient.h:687
IGraphics::CTextureHandle m_SpriteWeaponNinjaProjectile
Definition: gameclient.h:722
IGraphics::CTextureHandle m_SpriteWeaponGun
Definition: gameclient.h:703
bool IsSixup()
Definition: gameclient.h:761
IGraphics::CTextureHandle m_aaSpriteWeaponNinjaMuzzles[3]
Definition: gameclient.h:730
IGraphics::CTextureHandle m_SpritePickupArmorNinja
Definition: gameclient.h:739
IGraphics::CTextureHandle m_SpriteHookChain
Definition: gameclient.h:700
IGraphics::CTextureHandle m_SpriteHookHead
Definition: gameclient.h:701
IGraphics::CTextureHandle m_SpriteWeaponGrenadeProjectile
Definition: gameclient.h:720
IGraphics::CTextureHandle m_SpriteNinjaBarEmpty
Definition: gameclient.h:758
IGraphics::CTextureHandle m_SpriteWeaponLaser
Definition: gameclient.h:707
IGraphics::CTextureHandle m_SpriteWeaponLaserProjectile
Definition: gameclient.h:723
IGraphics::CTextureHandle m_aSpriteWeaponGunMuzzles[3]
Definition: gameclient.h:728
IGraphics::CTextureHandle m_aaSpriteWeaponsMuzzles[6][3]
Definition: gameclient.h:732
IGraphics::CTextureHandle m_SpritePickupHealth
Definition: gameclient.h:735
IGraphics::CTextureHandle m_SpriteWeaponNinjaCursor
Definition: gameclient.h:694
IGraphics::CTextureHandle m_SpriteWeaponLaserCursor
Definition: gameclient.h:695
IGraphics::CTextureHandle m_SpriteFlagRed
Definition: gameclient.h:753
IGraphics::CTextureHandle m_SpritePickupGrenade
Definition: gameclient.h:741
IGraphics::CTextureHandle m_SpritePickupLaser
Definition: gameclient.h:743
IGraphics::CTextureHandle m_SpritePickupArmorShotgun
Definition: gameclient.h:737
IGraphics::CTextureHandle m_aSpriteWeaponCursors[6]
Definition: gameclient.h:697
IGraphics::CTextureHandle m_aSpritePickupWeaponArmor[4]
Definition: gameclient.h:749
IGraphics::CTextureHandle m_SpritePickupArmor
Definition: gameclient.h:736
IGraphics::CTextureHandle m_SpriteNinjaBarFullLeft
Definition: gameclient.h:756
IGraphics::CTextureHandle m_SpriteWeaponGrenade
Definition: gameclient.h:705
IGraphics::CTextureHandle m_SpriteWeaponShotgunCursor
Definition: gameclient.h:692
IGraphics::CTextureHandle m_SpriteWeaponNinja
Definition: gameclient.h:706
IGraphics::CTextureHandle m_aSpriteWeapons[6]
Definition: gameclient.h:709
IGraphics::CTextureHandle m_SpriteArmorFull
Definition: gameclient.h:686
IGraphics::CTextureHandle m_SpriteFlagBlue
Definition: gameclient.h:752
IGraphics::CTextureHandle m_SpritePickupShotgun
Definition: gameclient.h:742
IGraphics::CTextureHandle m_aSpriteWeaponShotgunMuzzles[3]
Definition: gameclient.h:729
IGraphics::CTextureHandle m_SpriteHealthFull
Definition: gameclient.h:684
IGraphics::CTextureHandle m_SpriteWeaponHammerCursor
Definition: gameclient.h:690
IGraphics::CTextureHandle m_aSpriteParticles[9]
Definition: gameclient.h:712
IGraphics::CTextureHandle m_SpriteHealthEmpty
Definition: gameclient.h:685
IGraphics::CTextureHandle m_SpriteNinjaBarFull
Definition: gameclient.h:757
IGraphics::CTextureHandle m_SpritePickupHammer
Definition: gameclient.h:746
IGraphics::CTextureHandle m_SpriteWeaponGrenadeCursor
Definition: gameclient.h:693
IGraphics::CTextureHandle m_SpriteWeaponHammer
Definition: gameclient.h:702
IGraphics::CTextureHandle m_SpriteWeaponHammerProjectile
Definition: gameclient.h:721
IGraphics::CTextureHandle m_aSpritePickupWeapons[6]
Definition: gameclient.h:748
IGraphics::CTextureHandle m_SpriteWeaponGunCursor
Definition: gameclient.h:691
IGraphics::CTextureHandle m_aSpriteStars[3]
Definition: gameclient.h:715
IGraphics::CTextureHandle m_SpriteWeaponGunProjectile
Definition: gameclient.h:718
IGraphics::CTextureHandle m_SpritePickupNinja
Definition: gameclient.h:744
Definition: gameclient.h:795
IGraphics::CTextureHandle m_SpriteHudEndlessJump
Definition: gameclient.h:800
IGraphics::CTextureHandle m_SpriteHudTeam0Mode
Definition: gameclient.h:824
IGraphics::CTextureHandle m_SpriteHudLaserHitDisabled
Definition: gameclient.h:815
IGraphics::CTextureHandle m_SpriteHudFreezeBarFullLeft
Definition: gameclient.h:803
IGraphics::CTextureHandle m_SpriteHudNinjaBarEmptyRight
Definition: gameclient.h:810
IGraphics::CTextureHandle m_SpriteHudFreezeBarEmptyRight
Definition: gameclient.h:806
IGraphics::CTextureHandle m_SpriteHudAirjumpEmpty
Definition: gameclient.h:797
IGraphics::CTextureHandle m_SpriteHudTeleportGun
Definition: gameclient.h:820
IGraphics::CTextureHandle m_SpriteHudGunHitDisabled
Definition: gameclient.h:816
IGraphics::CTextureHandle m_SpriteHudJetpack
Definition: gameclient.h:802
IGraphics::CTextureHandle m_SpriteHudCollisionDisabled
Definition: gameclient.h:799
IGraphics::CTextureHandle m_SpriteHudNinjaBarEmpty
Definition: gameclient.h:809
IGraphics::CTextureHandle m_SpriteHudEndlessHook
Definition: gameclient.h:801
IGraphics::CTextureHandle m_SpriteHudFreezeBarEmpty
Definition: gameclient.h:805
IGraphics::CTextureHandle m_SpriteHudNinjaBarFullLeft
Definition: gameclient.h:807
IGraphics::CTextureHandle m_SpriteHudDummyHammer
Definition: gameclient.h:825
IGraphics::CTextureHandle m_SpriteHudDummyCopy
Definition: gameclient.h:826
IGraphics::CTextureHandle m_SpriteHudLiveFrozen
Definition: gameclient.h:818
IGraphics::CTextureHandle m_SpriteHudAirjump
Definition: gameclient.h:796
IGraphics::CTextureHandle m_SpriteHudHookHitDisabled
Definition: gameclient.h:811
IGraphics::CTextureHandle m_SpriteHudShotgunHitDisabled
Definition: gameclient.h:813
IGraphics::CTextureHandle m_SpriteHudLockMode
Definition: gameclient.h:823
IGraphics::CTextureHandle m_SpriteHudSolo
Definition: gameclient.h:798
IGraphics::CTextureHandle m_SpriteHudDeepFrozen
Definition: gameclient.h:817
IGraphics::CTextureHandle m_SpriteHudHammerHitDisabled
Definition: gameclient.h:812
IGraphics::CTextureHandle m_SpriteHudFreezeBarFull
Definition: gameclient.h:804
IGraphics::CTextureHandle m_SpriteHudNinjaBarFull
Definition: gameclient.h:808
IGraphics::CTextureHandle m_SpriteHudPracticeMode
Definition: gameclient.h:822
IGraphics::CTextureHandle m_SpriteHudTeleportGrenade
Definition: gameclient.h:819
IGraphics::CTextureHandle m_SpriteHudGrenadeHitDisabled
Definition: gameclient.h:814
IGraphics::CTextureHandle m_SpriteHudTeleportLaser
Definition: gameclient.h:821
Definition: gameclient.h:771
IGraphics::CTextureHandle m_SpriteParticleBall
Definition: gameclient.h:773
IGraphics::CTextureHandle m_SpriteParticleShell
Definition: gameclient.h:776
IGraphics::CTextureHandle m_SpriteParticleAirJump
Definition: gameclient.h:778
IGraphics::CTextureHandle m_SpriteParticleSmoke
Definition: gameclient.h:775
IGraphics::CTextureHandle m_SpriteParticleExpl
Definition: gameclient.h:777
IGraphics::CTextureHandle m_SpriteParticleHit
Definition: gameclient.h:779
IGraphics::CTextureHandle m_aSpriteParticleSplat[3]
Definition: gameclient.h:774
IGraphics::CTextureHandle m_aSpriteParticles[10]
Definition: gameclient.h:780
IGraphics::CTextureHandle m_SpriteParticleSlice
Definition: gameclient.h:772
Definition: gameclient.h:899
bool m_IsInit
Definition: gameclient.h:901
bool m_Teleported
Definition: gameclient.h:902
float m_aLastFreeze[MAX_CLIENTS]
Definition: gameclient.h:908
bool m_Solo
Definition: gameclient.h:900
vec2 m_OldPos
Definition: gameclient.h:904
int m_OldPersonalZoom
Definition: gameclient.h:905
float m_SecondChance
Definition: gameclient.h:906
bool m_aVanish[MAX_CLIENTS]
Definition: gameclient.h:903
float m_OldCameraDistance
Definition: gameclient.h:907
Definition: protocol.h:455
Definition: protocol.h:513
Definition: protocol.h:661
Definition: protocol.h:405
Definition: protocol.h:426
Definition: protocol.h:413
int m_GameFlags
Definition: protocol.h:415
Definition: protocol.h:467
Definition: protocol.h:499
Definition: protocol7.h:394