DDraceNetwork Documentation
Loading...
Searching...
No Matches
gameclient.h
Go to the documentation of this file.
1/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2/* If you are missing that file, acquire a complete release at teeworlds.com. */
3#ifndef GAME_CLIENT_GAMECLIENT_H
4#define GAME_CLIENT_GAMECLIENT_H
5
6#include "render.h"
7#include <base/color.h>
8#include <base/vmath.h>
9#include <engine/client.h>
10#include <engine/client/enums.h>
11#include <engine/console.h>
13
14#include <game/collision.h>
15#include <game/gamecore.h>
16#include <game/layers.h>
17#include <game/map/render_map.h>
18#include <game/mapbugs.h>
19#include <game/teamscore.h>
20
22#include <game/client/race.h>
23
24#include <generated/protocol7.h>
25#include <generated/protocolglue.h>
26
27// components
29#include "components/binds.h"
31#include "components/camera.h"
32#include "components/chat.h"
33#include "components/console.h"
34#include "components/controls.h"
37#include "components/debughud.h"
38#include "components/effects.h"
39#include "components/emoticon.h"
40#include "components/flow.h"
42#include "components/ghost.h"
43#include "components/hud.h"
45#include "components/items.h"
51#include "components/menus.h"
52#include "components/motd.h"
55#include "components/players.h"
58#include "components/skins.h"
59#include "components/skins7.h"
60#include "components/sounds.h"
63#include "components/tooltips.h"
65#include "components/voting.h"
66
67#include <vector>
68
116
123
125{
126 NO_INDENT,
128 INDENT_FORCE, // for rendering settings preview
129};
130
132{
133public:
134 // all components
160
166
171
173
176
178
180
181private:
182 std::vector<class CComponent *> m_vpAll;
183 std::vector<class CComponent *> m_vpInput;
186
204#if defined(CONF_AUTOUPDATE)
205 class IUpdater *m_pUpdater;
206#endif
208
213
214 void ProcessEvents();
215 void UpdatePositions();
216
219
222
225
228
230
232
233 static void ConTeam(IConsole::IResult *pResult, void *pUserData);
234 static void ConKill(IConsole::IResult *pResult, void *pUserData);
236
242
243 static void ConTuneParam(IConsole::IResult *pResult, void *pUserData);
244 static void ConTuneZone(IConsole::IResult *pResult, void *pUserData);
245 static void ConMapbug(IConsole::IResult *pResult, void *pUserData);
246
248
249 // only used in OnPredict
252
253 // only used in OnNewSnapshot
254 bool m_GameOver = false;
255 bool m_GamePaused = false;
257
258public:
260 IEngine *Engine() const { return m_pEngine; }
261 class IGraphics *Graphics() const { return m_pGraphics; }
262 class IClient *Client() const { return m_pClient; }
263 class CUi *Ui() { return &m_UI; }
264 class ISound *Sound() const { return m_pSound; }
265 class IInput *Input() const { return m_pInput; }
266 class IStorage *Storage() const { return m_pStorage; }
268 class CConfig *Config() const { return m_pConfig; }
269 class IConsole *Console() { return m_pConsole; }
270 class ITextRender *TextRender() const { return m_pTextRender; }
271 class IDemoPlayer *DemoPlayer() const { return m_pDemoPlayer; }
272 class IDemoRecorder *DemoRecorder(int Recorder) const { return Client()->DemoRecorder(Recorder); }
273 class IFavorites *Favorites() const { return m_pFavorites; }
276 class CRenderMap *RenderMap() { return &m_RenderMap; }
277 class CLayers *Layers() { return &m_Layers; }
279 const CCollision *Collision() const { return &m_Collision; }
280 const CRaceHelper *RaceHelper() const { return &m_RaceHelper; }
281 class IEditor *Editor() { return m_pEditor; }
282 class IFriends *Friends() { return m_pFriends; }
283 class IFriends *Foes() { return m_pFoes; }
284#if defined(CONF_AUTOUPDATE)
285 class IUpdater *Updater()
286 {
287 return m_pUpdater;
288 }
289#endif
290 class IHttp *Http()
291 {
292 return m_pHttp;
293 }
294
300
305
306 enum
307 {
311 };
314
316
318
319 // predicted players
322
323 // snap pointers
325 {
335
341
346
347 // spectate data
362
363 //
380
382 };
383
385 int m_aLocalTuneZone[NUM_DUMMIES]; // current tunezone (0-255)
386 bool m_aReceivedTuning[NUM_DUMMIES]; // was tuning message received after zone change
387 int m_aExpectingTuningForZone[NUM_DUMMIES]; // tunezone changed, waiting for tuning for that zone
388 int m_aExpectingTuningSince[NUM_DUMMIES]; // how many snaps received since tunezone changed
389 CTuningParams m_aTuning[NUM_DUMMIES]; // current local player tuning, only what the player/dummy has
390
391 std::bitset<RECORDER_MAX> m_ActiveRecordings;
392
393 // spectate cursor data
395 {
396 friend class CGameClient;
397 static constexpr int CURSOR_SAMPLES = 8; // how many samples to keep
398 static constexpr int SAMPLE_FRAME_WINDOW = 3; // how many samples should be used for polynomial interpolation
399 static constexpr int SAMPLE_FRAME_OFFSET = 2; // how many samples in the past should be included
400 static constexpr double INTERP_DELAY = 4.25; // how many ticks in the past to show, enables extrapolation with smaller value (<= SAMPLE_FRAME_WINDOW - SAMPLE_FRAME_OFFSET + 3)
401 static constexpr double REST_THRESHOLD = 3.0; // how many ticks of the same samples are considered to be resting
402
407
413
414 public:
415 bool IsAvailable() const { return m_Available; }
416 int Weapon() const { return m_Weapon; }
417 vec2 Target() const { return m_Target; }
418 vec2 WorldTarget() const { return m_WorldTarget; }
419 vec2 Position() const { return m_Position; }
421
422 // client data
424 {
425 friend class CGameClient;
428
429 public:
433
442
443 bool m_Solo;
461
464
465 std::shared_ptr<CManagedTeeRenderInfo> m_pSkinInfo = nullptr; // this is what the server reports
466 CTeeRenderInfo m_RenderInfo; // this is what we use
467
468 float m_Angle;
473 bool m_Foe;
474
476 bool m_Afk;
478 bool m_Spec;
479
480 // Editor allows 256 switches for now.
482
485
487
488 // rendered characters
497 int m_aPredTick[200];
500
501 void UpdateSkinInfo();
502 void UpdateSkin7HatSprite(int Dummy);
504 void UpdateRenderInfo();
505 void Reset();
507
508 int ClientId() const { return m_ClientId; }
509
519
520 // 0.7 Skin
522 };
523
525
527 {
531
532 public:
533 CClientStats();
534
542
545
546 void Reset();
547
548 bool IsActive() const { return m_Active; }
549 void JoinGame(int Tick)
550 {
551 m_Active = true;
552 m_JoinTick = Tick;
553 };
554 void JoinSpec(int Tick)
555 {
556 m_Active = false;
557 m_IngameTicks += Tick - m_JoinTick;
558 };
559 int GetIngameTicks(int Tick) const { return m_IngameTicks + Tick - m_JoinTick; }
560 float GetFPM(int Tick, int TickSpeed) const { return (float)(m_Frags * TickSpeed * 60) / GetIngameTicks(Tick); }
561 };
562
564
567
568 void OnReset();
569
570 size_t ComponentCount() { return m_vpAll.size(); }
571
572 // hooks
573 void OnConnected() override;
574 void OnRender() override;
575 void OnUpdate() override;
576 void OnDummyDisconnect() override;
577 virtual void OnRelease();
578 void OnInit() override;
579 void OnConsoleInit() override;
580 void OnStateChange(int NewState, int OldState) override;
581 template<typename T>
582 void ApplySkin7InfoFromGameMsg(const T *pMsg, int ClientId, int Conn);
583 void ApplySkin7InfoFromSnapObj(const protocol7::CNetObj_De_ClientInfo *pObj, int ClientId) override;
584 int OnDemoRecSnap7(class CSnapshot *pFrom, class CSnapshot *pTo, int Conn) override;
587 void OnMessage(int MsgId, CUnpacker *pUnpacker, int Conn, bool Dummy) override;
588 void InvalidateSnapshot() override;
589 void OnNewSnapshot() override;
590 void OnPredict() override;
591 void OnActivateEditor() override;
592 void OnDummySwap() override;
593 int OnSnapInput(int *pData, bool Dummy, bool Force) override;
594 void OnShutdown() override;
595 void OnEnterGame() override;
596 void OnRconType(bool UsernameReq) override;
597 void OnRconLine(const char *pLine) override;
598 virtual void OnGameOver();
599 virtual void OnStartGame();
600 virtual void OnStartRound();
601 virtual void OnFlagGrab(int TeamId);
602 void OnWindowResize() override;
603
604 void InitializeLanguage() override;
605 bool m_LanguageChanged = false;
606 void OnLanguageChange();
608
609 void RefreshSkin(const std::shared_ptr<CManagedTeeRenderInfo> &pManagedTeeRenderInfo);
611 void OnSkinUpdate(const char *pSkinName);
612 std::shared_ptr<CManagedTeeRenderInfo> CreateManagedTeeRenderInfo(const CTeeRenderInfo &TeeRenderInfo, const CSkinDescriptor &SkinDescriptor);
613 std::shared_ptr<CManagedTeeRenderInfo> CreateManagedTeeRenderInfo(const CClientData &Client);
614 void CollectManagedTeeRenderInfos(const std::function<void(const char *pSkinName)> &ActiveSkinAcceptor);
615
616 void RenderShutdownMessage() override;
617 void ProcessDemoSnapshot(CSnapshot *pSnap) override;
618
619 const char *GetItemName(int Type) const override;
620 const char *Version() const override;
621 const char *NetVersion() const override;
622 const char *NetVersion7() const override;
623 int DDNetVersion() const override;
624 const char *DDNetVersionStr() const override;
625 int ClientVersion7() const override;
626
627 void DoTeamChangeMessage7(const char *pName, int ClientId, int Team, const char *pPrefix = "");
628
629 // actions
630 // TODO: move these
631 void SendSwitchTeam(int Team) const;
632 void SendStartInfo7(bool Dummy);
633 void SendSkinChange7(bool Dummy);
634 // Returns true if the requested skin change got applied by the server
635 bool GotWantedSkin7(bool Dummy);
636 void SendInfo(bool Start);
637 void SendDummyInfo(bool Start) override;
638 void SendKill() const;
639 void SendReadyChange7();
640
642
643 // DDRace
644
648 unsigned int m_DummyFire;
650
652
654
655 int LastRaceTick() const;
656 int CurrentRaceTime() const;
657
659
660 bool AntiPingPlayers() { return g_Config.m_ClAntiPing && g_Config.m_ClAntiPingPlayers && !m_Snap.m_SpecInfo.m_Active && Client()->State() != IClient::STATE_DEMOPLAYBACK && (m_aTuning[g_Config.m_ClDummy].m_PlayerCollision || m_aTuning[g_Config.m_ClDummy].m_PlayerHooking); }
661 bool AntiPingGrenade() { return g_Config.m_ClAntiPing && g_Config.m_ClAntiPingGrenade && !m_Snap.m_SpecInfo.m_Active && Client()->State() != IClient::STATE_DEMOPLAYBACK; }
662 bool AntiPingWeapons() { return g_Config.m_ClAntiPing && g_Config.m_ClAntiPingWeapons && !m_Snap.m_SpecInfo.m_Active && Client()->State() != IClient::STATE_DEMOPLAYBACK; }
663 bool AntiPingGunfire() { return AntiPingGrenade() && AntiPingWeapons() && g_Config.m_ClAntiPingGunfire; }
664 bool Predict() const;
665 bool PredictDummy() { return g_Config.m_ClPredictDummy && Client()->DummyConnected() && m_Snap.m_LocalClientId >= 0 && m_PredictedDummyId >= 0 && !m_aClients[m_PredictedDummyId].m_Paused; }
666 const CTuningParams *GetTuning(int i) { return &m_aTuningList[i]; }
667 ColorRGBA GetDDTeamColor(int DDTeam, float Lightness = 0.5f) const;
668 void FormatClientId(int ClientId, char (&aClientId)[16], EClientIdFormat Format) const;
669
673
674 std::vector<SSwitchers> &Switchers() { return m_GameWorld.m_Core.m_vSwitchers; }
675 std::vector<SSwitchers> &PredSwitchers() { return m_PredictedWorld.m_Core.m_vSwitchers; }
676
677 void DummyResetInput() override;
678 void Echo(const char *pString) override;
679 bool IsOtherTeam(int ClientId) const;
680 int SwitchStateTeam() const;
681 bool IsLocalCharSuper() const;
682 bool CanDisplayWarning() const override;
685
686 void LoadGameSkin(const char *pPath, bool AsDir = false);
687 void LoadEmoticonsSkin(const char *pPath, bool AsDir = false);
688 void LoadParticlesSkin(const char *pPath, bool AsDir = false);
689 void LoadHudSkin(const char *pPath, bool AsDir = false);
690 void LoadExtrasSkin(const char *pPath, bool AsDir = false);
691
693 {
694 // health armor hud
699
700 // cursors
707
709
710 // weapons and hook
719
721
722 // particles
724
725 // stars
727
728 // projectiles
735
737
738 // muzzles
742
744
745 // pickups
758
761
762 // flags
765
766 // ninja bar (0.7)
771
772 bool IsSixup()
773 {
775 }
776 };
777
779 bool m_GameSkinLoaded = false;
780
793
796
801
804
806 {
838 };
839
841 bool m_HudSkinLoaded = false;
842
851
853 bool m_ExtrasSkinLoaded = false;
854
855 const std::vector<CSnapEntities> &SnapEntities() { return m_vSnapEntities; }
856
862
863 void ResetMultiView();
865 void CleanMultiViewId(int ClientId);
866
867private:
868 std::vector<CSnapEntities> m_vSnapEntities;
869 void SnapCollectEntities();
870
873
874 std::vector<std::shared_ptr<CManagedTeeRenderInfo>> m_vpManagedTeeRenderInfos;
876
877 void UpdateLocalTuning();
878 void UpdatePrediction();
881
883 void DetectStrongHook();
884
885 vec2 GetSmoothPos(int ClientId);
886
891
892 void LoadMapSettings();
894
895 // tunings for every zone on the map, 0 is a global tune
898
905
906 void HandleMultiView();
907 bool IsMultiViewIdSet();
908 void CleanMultiViewIds();
909 bool InitMultiView(int Team);
912 float MapValue(float MaxValue, float MinValue, float MaxRange, float MinRange, float Value);
913
926
928};
929
931
932#endif
Definition background.h:22
Definition binds.h:16
Definition broadcast.h:12
Definition camera.h:14
Definition gameworld.h:121
Definition gamecore.h:180
Definition chat.h:20
Definition collision.h:34
Definition config.h:25
Definition controls.h:14
Definition countryflags.h:11
Definition damageind.h:10
Definition debughud.h:10
Definition effects.h:11
Definition emoticon.h:12
Definition flow.h:9
Definition freezebars.h:6
Definition gameclient.h:511
int m_aUseCustomColors[protocol7::NUM_SKINPARTS]
Definition gameclient.h:516
void Reset()
Definition gameclient.cpp:2893
int m_aSkinPartColors[protocol7::NUM_SKINPARTS]
Definition gameclient.h:517
char m_aaSkinPartNames[protocol7::NUM_SKINPARTS][protocol7::MAX_SKIN_LENGTH]
Definition gameclient.h:515
Definition gameclient.h:424
int m_ColorFeet
Definition gameclient.h:432
bool m_ChatIgnore
Definition gameclient.h:470
bool m_HookHitDisabled
Definition gameclient.h:452
void UpdateSkinInfo()
Definition gameclient.cpp:2677
vec2 m_SpecChar
Definition gameclient.h:499
CSkinDescriptor ToSkinDescriptor() const
Definition gameclient.cpp:2866
int ClientId() const
Definition gameclient.h:508
int m_FreezeEnd
Definition gameclient.h:458
CNetMsg_Sv_PreInput m_aPreInputs[200]
Definition gameclient.h:486
char m_aClan[MAX_CLAN_LENGTH]
Definition gameclient.h:435
std::shared_ptr< CManagedTeeRenderInfo > m_pSkinInfo
Definition gameclient.h:465
bool m_Foe
Definition gameclient.h:473
int m_aPredTick[200]
Definition gameclient.h:497
bool m_EndlessHook
Definition gameclient.h:446
bool m_LiveFrozen
Definition gameclient.h:460
int m_Emoticon
Definition gameclient.h:439
bool m_DeepFrozen
Definition gameclient.h:459
bool m_Friend
Definition gameclient.h:472
vec2 m_aPredPos[200]
Definition gameclient.h:496
CCharacterCore m_Predicted
Definition gameclient.h:462
bool m_IsPredicted
Definition gameclient.h:492
bool m_Super
Definition gameclient.h:453
bool m_Active
Definition gameclient.h:469
CNetObj_Character m_RenderCur
Definition gameclient.h:489
bool m_HasTelegunLaser
Definition gameclient.h:457
int64_t m_aSmoothLen[2]
Definition gameclient.h:495
float m_EmoticonStartFraction
Definition gameclient.h:440
int m_ColorBody
Definition gameclient.h:431
CGameClient * m_pGameClient
Definition gameclient.h:426
vec2 m_RenderPos
Definition gameclient.h:491
int m_Team
Definition gameclient.h:438
int m_AuthLevel
Definition gameclient.h:475
bool m_aSwitchStates[256]
Definition gameclient.h:481
bool m_ShotgunHitDisabled
Definition gameclient.h:451
bool m_Solo
Definition gameclient.h:443
int m_ClientId
Definition gameclient.h:427
bool m_HasTelegunGun
Definition gameclient.h:455
int m_EmoticonStartTick
Definition gameclient.h:441
void UpdateRenderInfo()
Definition gameclient.cpp:2728
bool m_Invincible
Definition gameclient.h:454
char m_aName[MAX_NAME_LENGTH]
Definition gameclient.h:434
CNetObj_Character m_Evolved
Definition gameclient.h:484
CNetObj_Character m_RenderPrev
Definition gameclient.h:490
bool m_GrenadeHitDisabled
Definition gameclient.h:449
bool m_HammerHitDisabled
Definition gameclient.h:448
bool m_Jetpack
Definition gameclient.h:444
CSixup m_aSixup[NUM_DUMMIES]
Definition gameclient.h:521
bool m_Afk
Definition gameclient.h:476
float m_Angle
Definition gameclient.h:468
bool m_Spec
Definition gameclient.h:478
CNetObj_Character m_Snapped
Definition gameclient.h:483
bool m_IsPredictedLocal
Definition gameclient.h:493
CTeeRenderInfo m_RenderInfo
Definition gameclient.h:466
bool m_CollisionDisabled
Definition gameclient.h:445
bool m_EmoticonIgnore
Definition gameclient.h:471
void Reset()
Definition gameclient.cpp:2782
int m_Country
Definition gameclient.h:436
bool m_SpecCharPresent
Definition gameclient.h:498
int m_UseCustomColor
Definition gameclient.h:430
char m_aSkinName[MAX_SKIN_LENGTH]
Definition gameclient.h:437
int64_t m_aSmoothStart[2]
Definition gameclient.h:494
bool m_EndlessJump
Definition gameclient.h:447
bool m_HasTelegunGrenade
Definition gameclient.h:456
void UpdateSkin7BotDecoration(int Dummy)
Definition sixup_translate_game.cpp:140
bool m_Paused
Definition gameclient.h:477
void UpdateSkin7HatSprite(int Dummy)
Definition sixup_translate_game.cpp:121
CCharacterCore m_PrevPredicted
Definition gameclient.h:463
bool m_LaserHitDisabled
Definition gameclient.h:450
Definition gameclient.h:527
bool IsActive() const
Definition gameclient.h:548
float GetFPM(int Tick, int TickSpeed) const
Definition gameclient.h:560
int m_FlagGrabs
Definition gameclient.h:543
int m_aFragsWith[NUM_WEAPONS]
Definition gameclient.h:535
int m_aDeathsFrom[NUM_WEAPONS]
Definition gameclient.h:536
int GetIngameTicks(int Tick) const
Definition gameclient.h:559
int m_Suicides
Definition gameclient.h:539
void Reset()
Definition gameclient.cpp:2659
int m_BestSpree
Definition gameclient.h:540
int m_JoinTick
Definition gameclient.h:529
int m_Deaths
Definition gameclient.h:538
int m_CurrentSpree
Definition gameclient.h:541
int m_FlagCaptures
Definition gameclient.h:544
void JoinGame(int Tick)
Definition gameclient.h:549
bool m_Active
Definition gameclient.h:530
void JoinSpec(int Tick)
Definition gameclient.h:554
int m_Frags
Definition gameclient.h:537
int m_IngameTicks
Definition gameclient.h:528
CClientStats()
Definition gameclient.cpp:2654
Definition gameclient.h:395
int m_NumSamples
Definition gameclient.h:406
static constexpr int SAMPLE_FRAME_WINDOW
Definition gameclient.h:398
vec2 m_Position
Definition gameclient.h:412
int m_CursorOwnerId
Definition gameclient.h:403
bool m_Available
Definition gameclient.h:408
bool IsAvailable() const
Definition gameclient.h:415
static constexpr double INTERP_DELAY
Definition gameclient.h:400
vec2 Position() const
Definition gameclient.h:419
static constexpr int SAMPLE_FRAME_OFFSET
Definition gameclient.h:399
int Weapon() const
Definition gameclient.h:416
vec2 Target() const
Definition gameclient.h:417
static constexpr int CURSOR_SAMPLES
Definition gameclient.h:397
vec2 m_Target
Definition gameclient.h:410
static constexpr double REST_THRESHOLD
Definition gameclient.h:401
vec2 m_WorldTarget
Definition gameclient.h:411
int m_Weapon
Definition gameclient.h:409
vec2 m_aTargetSamplesData[CURSOR_SAMPLES]
Definition gameclient.h:405
vec2 WorldTarget() const
Definition gameclient.h:418
double m_aTargetSamplesTime[CURSOR_SAMPLES]
Definition gameclient.h:404
Definition gameclient.h:349
bool m_UsePosition
Definition gameclient.h:353
int m_FollowFactor
Definition gameclient.h:359
int m_Deadzone
Definition gameclient.h:358
vec2 m_Position
Definition gameclient.h:354
int m_SpectatorCount
Definition gameclient.h:360
bool m_Active
Definition gameclient.h:351
float m_Zoom
Definition gameclient.h:357
bool m_HasCameraInfo
Definition gameclient.h:356
int m_SpectatorId
Definition gameclient.h:352
Definition gameclient.h:132
void InitializeLanguage() override
Definition gameclient.cpp:285
void OnStateChange(int NewState, int OldState) override
Definition gameclient.cpp:1204
void DetectStrongHook()
Definition gameclient.cpp:3592
void UpdateSpectatorCursor()
Definition gameclient.cpp:3411
CSkins7 m_Skins7
Definition gameclient.h:145
void DummyResetInput() override
Definition gameclient.cpp:4552
const char * DDNetVersionStr() const override
Definition gameclient.cpp:88
void RefreshSkins(int SkinDescriptorFlags)
Definition gameclient.cpp:4318
unsigned int m_DummyFire
Definition gameclient.h:648
void LoadGameSkin(const char *pPath, bool AsDir=false)
Definition gameclient.cpp:3744
bool CanDisplayWarning() const override
Definition gameclient.cpp:4567
int OnDemoRecSnap7(class CSnapshot *pFrom, class CSnapshot *pTo, int Conn) override
Definition sixup_translate_snapshot.cpp:503
CCharacterCore m_PredictedChar
Definition gameclient.h:321
char m_aDDNetVersionStr[64]
Definition gameclient.h:231
int IntersectCharacter(vec2 HookPos, vec2 NewPos, vec2 &NewPos2, int OwnId)
Definition gameclient.cpp:3149
float m_LastZoom
Definition gameclient.h:900
static void ConchainSpecialDummyInfoupdate(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition gameclient.cpp:3127
CRenderTools m_RenderTools
Definition gameclient.h:565
class IConfigManager * m_pConfigManager
Definition gameclient.h:193
int m_PredictedTick
Definition gameclient.h:220
bool GotWantedSkin7(bool Dummy)
Definition gameclient.cpp:2945
void OnRender() override
Definition gameclient.cpp:780
int m_aCheckInfo[NUM_DUMMIES]
Definition gameclient.h:229
CSnapState m_Snap
Definition gameclient.h:384
const char * NetobjCorrectedOn()
Definition gameclient.h:299
bool m_NewTick
Definition gameclient.h:302
SClientHudSkin m_HudSkin
Definition gameclient.h:840
bool m_GameOver
Definition gameclient.h:254
CSounds m_Sounds
Definition gameclient.h:154
CNamePlates m_NamePlates
Definition gameclient.h:162
void SendSkinChange7(bool Dummy)
Definition gameclient.cpp:2929
int m_IsDummySwapping
Definition gameclient.h:888
const CRaceHelper * RaceHelper() const
Definition gameclient.h:280
class IConsole * Console()
Definition gameclient.h:269
CSkins m_Skins
Definition gameclient.h:144
const CCollision * Collision() const
Definition gameclient.h:279
vec2 m_aLastPos[MAX_CLIENTS]
Definition gameclient.h:250
void OnInit() override
Definition gameclient.cpp:294
float m_LastFollowFactor
Definition gameclient.h:903
static void ConMapbug(IConsole::IResult *pResult, void *pUserData)
Definition gameclient.cpp:4517
int m_MultiViewTeam
Definition gameclient.h:857
bool m_SuppressEvents
Definition gameclient.h:301
float m_MultiViewPersonalZoom
Definition gameclient.h:858
size_t ComponentCount()
Definition gameclient.h:570
float CalculateMultiViewZoom(vec2 MinPos, vec2 MaxPos, float Vel)
Definition gameclient.cpp:4881
class IServerBrowser * ServerBrowser() const
Definition gameclient.h:274
bool m_EmoticonsSkinLoaded
Definition gameclient.h:803
CCountryFlags m_CountryFlags
Definition gameclient.h:146
CDebugHud m_DebugHud
Definition gameclient.h:149
class IGraphics * Graphics() const
Definition gameclient.h:261
bool AntiPingGrenade()
Definition gameclient.h:661
bool m_HudSkinLoaded
Definition gameclient.h:841
class IStorage * m_pStorage
Definition gameclient.h:196
static void ConTuneParam(IConsole::IResult *pResult, void *pUserData)
Definition gameclient.cpp:4495
IEngine * Engine() const
Definition gameclient.h:260
void OnRconLine(const char *pLine) override
Definition gameclient.cpp:1337
CNetObj_PlayerInput m_DummyInput
Definition gameclient.h:646
CCollision m_Collision
Definition gameclient.h:210
int m_LastFlagCarrierRed
Definition gameclient.h:226
void OnActivateEditor() override
Definition gameclient.cpp:2649
class IEditor * Editor()
Definition gameclient.h:281
class IDemoPlayer * DemoPlayer() const
Definition gameclient.h:271
CInfoMessages m_InfoMessages
Definition gameclient.h:135
void RefreshSkin(const std::shared_ptr< CManagedTeeRenderInfo > &pManagedTeeRenderInfo)
Definition gameclient.cpp:4273
CHud m_Hud
Definition gameclient.h:148
void SendSwitchTeam(int Team) const
Definition gameclient.cpp:2903
void SendDummyInfo(bool Start) override
Definition gameclient.cpp:3027
class CConfig * Config() const
Definition gameclient.h:268
void DoTeamChangeMessage7(const char *pName, int ClientId, int Team, const char *pPrefix="")
Definition sixup_translate_game.cpp:73
void OnMessage(int MsgId, CUnpacker *pUnpacker, int Conn, bool Dummy) override
Definition gameclient.cpp:996
class CTeamsCore m_Teams
Definition gameclient.h:651
void OnReset()
Definition gameclient.cpp:609
bool IsMultiViewIdSet()
Definition gameclient.cpp:4940
void OnPredict() override
Definition gameclient.cpp:2333
std::vector< class CComponent * > m_vpAll
Definition gameclient.h:182
class IFavorites * Favorites() const
Definition gameclient.h:273
int LastRaceTick() const
Definition gameclient.cpp:922
virtual void OnStartGame()
Definition gameclient.cpp:1233
void OnConnected() override
Definition gameclient.cpp:568
void UpdatePositions()
Definition gameclient.cpp:716
void RenderShutdownMessage() override
Definition gameclient.cpp:1288
SClientEmoticonsSkin m_EmoticonsSkin
Definition gameclient.h:802
static void ConchainSpecialDummy(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition gameclient.cpp:3134
CCamera m_Camera
Definition gameclient.h:136
bool m_MultiViewShowHud
Definition gameclient.h:859
bool PredictDummy()
Definition gameclient.h:665
CGhost m_Ghost
Definition gameclient.h:175
float m_LastDeadzone
Definition gameclient.h:902
CLocalServer m_LocalServer
Definition gameclient.h:179
bool m_aReceivedTuning[NUM_DUMMIES]
Definition gameclient.h:386
class CGameClient::CCursorInfo m_CursorInfo
void UpdateManagedTeeRenderInfos()
Definition gameclient.cpp:4405
void ProcessDemoSnapshot(CSnapshot *pSnap) override
Definition gameclient.cpp:1307
std::vector< CSnapEntities > m_vSnapEntities
Definition gameclient.h:868
CBinds m_Binds
Definition gameclient.h:141
void SendStartInfo7(bool Dummy)
Definition gameclient.cpp:2910
class ITextRender * m_pTextRender
Definition gameclient.h:190
CEmoticon m_Emoticon
Definition gameclient.h:155
class IConsole * m_pConsole
Definition gameclient.h:195
const char * Version() const override
Definition gameclient.cpp:84
void UpdateLocalTuning()
Definition gameclient.cpp:3200
std::vector< class CComponent * > m_vpInput
Definition gameclient.h:183
class IClient * m_pClient
Definition gameclient.h:191
static void ConchainMenuMap(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition gameclient.cpp:4537
CCollision * Collision()
Definition gameclient.h:278
class ISound * m_pSound
Definition gameclient.h:192
float m_LastScreenAspect
Definition gameclient.h:901
CParticles m_Particles
Definition gameclient.h:142
CBroadcast m_Broadcast
Definition gameclient.h:139
void OnConsoleInit() override
Definition gameclient.cpp:92
class IDemoRecorder * DemoRecorder(int Recorder) const
Definition gameclient.h:272
static void ConchainLanguageUpdate(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition gameclient.cpp:3109
void OnLanguageChange()
Definition gameclient.cpp:1267
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:4431
virtual void OnGameOver()
Definition gameclient.cpp:1227
CScoreboard m_Scoreboard
Definition gameclient.h:152
class ITextRender * TextRender() const
Definition gameclient.h:270
int m_aExpectingTuningSince[NUM_DUMMIES]
Definition gameclient.h:388
bool Predict() const
Definition gameclient.cpp:936
int m_aLocalTuneZone[NUM_DUMMIES]
Definition gameclient.h:385
std::bitset< RECORDER_MAX > m_ActiveRecordings
Definition gameclient.h:391
CStatboard m_Statboard
Definition gameclient.h:153
const char * GetItemName(int Type) const override
Definition gameclient.cpp:90
bool m_NewPredictedTick
Definition gameclient.h:303
float m_LastShowDistanceZoom
Definition gameclient.h:899
virtual void OnStartRound()
Definition gameclient.cpp:1240
CMapSounds m_MapSounds
Definition gameclient.h:172
CMotd m_Motd
Definition gameclient.h:138
bool m_aLastActive[MAX_CLIENTS]
Definition gameclient.h:251
bool m_ExtrasSkinLoaded
Definition gameclient.h:853
static void ConchainSpecialInfoupdate(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
Definition gameclient.cpp:3120
void ResetMultiView()
Definition gameclient.cpp:4912
int m_PredictedDummyId
Definition gameclient.h:887
CGameInfo m_GameInfo
Definition gameclient.h:313
class CLayers * Layers()
Definition gameclient.h:277
vec2 GetSmoothPos(int ClientId)
Definition gameclient.cpp:3677
CNetObjHandler m_NetObjHandler
Definition gameclient.h:184
void InvalidateSnapshot() override
Definition gameclient.cpp:1585
protocol7::CNetObjHandler * GetNetObjHandler7() override
Definition gameclient.cpp:4577
class IInput * m_pInput
Definition gameclient.h:188
static void ConReadyChange7(IConsole::IResult *pResult, void *pUserData)
Definition gameclient.cpp:3102
void OnDummyDisconnect() override
Definition gameclient.cpp:913
class IServerBrowser * m_pServerBrowser
Definition gameclient.h:199
SClientParticlesSkin m_ParticlesSkin
Definition gameclient.h:794
void LoadEmoticonsSkin(const char *pPath, bool AsDir=false)
Definition gameclient.cpp:4001
int m_LastRoundStartTick
Definition gameclient.h:223
int NetobjNumCorrections()
Definition gameclient.h:295
CTuningParams m_aTuning[NUM_DUMMIES]
Definition gameclient.h:389
CRenderMap m_RenderMap
Definition gameclient.h:566
int m_LastFlagCarrierBlue
Definition gameclient.h:227
CTuningParams * TuningList()
Definition gameclient.h:897
void UpdateRenderedCharacters()
Definition gameclient.cpp:3536
void LoadParticlesSkin(const char *pPath, bool AsDir=false)
Definition gameclient.cpp:4045
int CurrentRaceTime() const
Definition gameclient.cpp:927
class IDiscord * m_pDiscord
Definition gameclient.h:203
CRaceDemo m_RaceDemo
Definition gameclient.h:174
CSpectator m_Spectator
Definition gameclient.h:159
CEffects m_Effects
Definition gameclient.h:151
class IEditor * m_pEditor
Definition gameclient.h:200
CGameWorld m_GameWorld
Definition gameclient.h:670
void ProcessEvents()
Definition gameclient.cpp:1342
void HandleLanguageChanged()
Definition gameclient.cpp:1275
bool m_GamePaused
Definition gameclient.h:255
SClientGameSkin m_GameSkin
Definition gameclient.h:778
CGameConsole m_GameConsole
Definition gameclient.h:140
bool m_aDDRaceMsgSent[NUM_DUMMIES]
Definition gameclient.h:871
virtual void OnFlagGrab(int TeamId)
Definition gameclient.cpp:1251
CGameWorld m_PrevPredictedWorld
Definition gameclient.h:672
const CTuningParams * GetTuning(int i)
Definition gameclient.h:666
CFlow m_Flow
Definition gameclient.h:147
void OnDummySwap() override
Definition gameclient.cpp:502
CLayers m_Layers
Definition gameclient.h:209
bool m_aMultiViewId[MAX_CLIENTS]
Definition gameclient.h:861
void SnapCollectEntities()
Definition gameclient.cpp:4582
void UpdatePrediction()
Definition gameclient.cpp:3287
void UpdateEditorIngameMoved()
Definition gameclient.cpp:2316
CMapLayers m_MapLayersBackground
Definition gameclient.h:167
CControls m_Controls
Definition gameclient.h:150
int m_ServerMode
Definition gameclient.h:312
CClientData m_aClients[MAX_CLIENTS]
Definition gameclient.h:524
int m_aSwitchStateTeam[NUM_DUMMIES]
Definition gameclient.h:890
int m_aFlagDropTick[2]
Definition gameclient.h:304
IKernel * Kernel()
Definition gameclient.h:259
int SwitchStateTeam() const
Definition gameclient.cpp:3726
float CalculateMultiViewMultiplier(vec2 TargetPos)
Definition gameclient.cpp:4858
int m_aExpectingTuningForZone[NUM_DUMMIES]
Definition gameclient.h:387
void CleanMultiViewId(int ClientId)
Definition gameclient.cpp:4930
int DDNetVersion() const override
Definition gameclient.cpp:87
int m_LastRaceTick
Definition gameclient.h:224
CFreezeBars m_FreezeBars
Definition gameclient.h:163
int m_DemoSpecId
Definition gameclient.h:315
class IClient * Client() const
Definition gameclient.h:262
class IFavorites * m_pFavorites
Definition gameclient.h:198
void CleanMultiViewIds()
Definition gameclient.cpp:4923
class IFriends * m_pFoes
Definition gameclient.h:202
CPlayers m_Players
Definition gameclient.h:161
class ISound * Sound() const
Definition gameclient.h:264
CTouchControls m_TouchControls
Definition gameclient.h:157
void SendKill() const
Definition gameclient.cpp:3069
CNetObj_PlayerInput m_HammerInput
Definition gameclient.h:647
const std::vector< CSnapEntities > & SnapEntities()
Definition gameclient.h:855
CClientStats m_aStats[MAX_CLIENTS]
Definition gameclient.h:563
static void ConTeam(IConsole::IResult *pResult, void *pUserData)
Definition gameclient.cpp:3092
class CRenderMap * RenderMap()
Definition gameclient.h:276
@ SERVERMODE_PUREMOD
Definition gameclient.h:310
@ SERVERMODE_PURE
Definition gameclient.h:308
@ SERVERMODE_MOD
Definition gameclient.h:309
CMapLayers m_MapLayersForeground
Definition gameclient.h:168
std::vector< SSwitchers > & PredSwitchers()
Definition gameclient.h:675
CMapImages m_MapImages
Definition gameclient.h:165
static void ConTuneZone(IConsole::IResult *pResult, void *pUserData)
Definition gameclient.cpp:4506
CTuningParams m_aTuningList[NUM_TUNEZONES]
Definition gameclient.h:896
vec2 m_LocalCharacterPos
Definition gameclient.h:317
CItems m_Items
Definition gameclient.h:164
const char * NetVersion() const override
Definition gameclient.cpp:85
std::shared_ptr< CManagedTeeRenderInfo > CreateManagedTeeRenderInfo(const CTeeRenderInfo &TeeRenderInfo, const CSkinDescriptor &SkinDescriptor)
Definition gameclient.cpp:4392
bool IsLocalCharSuper() const
Definition gameclient.cpp:3737
ColorRGBA GetDDTeamColor(int DDTeam, float Lightness=0.5f) const
Definition gameclient.cpp:955
bool IsOtherTeam(int ClientId) const
Definition gameclient.cpp:3703
void LoadHudSkin(const char *pPath, bool AsDir=false)
Definition gameclient.cpp:4116
CUi m_UI
Definition gameclient.h:211
class CConfig * m_pConfig
Definition gameclient.h:194
void OnWindowResize() override
Definition gameclient.cpp:1259
int FindFirstMultiViewId()
Definition gameclient.cpp:4945
CMapBugs m_MapBugs
Definition gameclient.h:893
SMultiView m_MultiView
Definition gameclient.h:927
void FormatClientId(int ClientId, char(&aClientId)[16], EClientIdFormat Format) const
Definition gameclient.cpp:963
void SendReadyChange7()
Definition gameclient.cpp:3081
bool m_GameSkinLoaded
Definition gameclient.h:779
void OnRconType(bool UsernameReq) override
Definition gameclient.cpp:1332
void OnSkinUpdate(const char *pSkinName)
Definition gameclient.cpp:4349
void * TranslateGameMsg(int *pMsgId, CUnpacker *pUnpacker, int Conn)
Definition sixup_translate_game.cpp:172
int m_aShowOthers[NUM_DUMMIES]
Definition gameclient.h:872
bool m_LastDummyConnected
Definition gameclient.h:904
void CollectManagedTeeRenderInfos(const std::function< void(const char *pSkinName)> &ActiveSkinAcceptor)
Definition gameclient.cpp:4420
class IInput * Input() const
Definition gameclient.h:265
bool AntiPingGunfire()
Definition gameclient.h:663
void Echo(const char *pString) override
Definition gameclient.cpp:3698
bool AntiPingWeapons()
Definition gameclient.h:662
protocol7::CNetObjHandler m_NetObjHandler7
Definition gameclient.h:185
CDamageInd m_DamageInd
Definition gameclient.h:156
CGameWorld m_PredictedWorld
Definition gameclient.h:671
bool IsTeamPlay()
Definition gameclient.h:658
void HandleMultiView()
Definition gameclient.cpp:4628
class CUi * Ui()
Definition gameclient.h:263
int m_aLastUpdateTick[MAX_CLIENTS]
Definition gameclient.h:882
CTooltips m_Tooltips
Definition gameclient.h:177
bool InitMultiView(int Team)
Definition gameclient.cpp:4749
class IDemoPlayer * m_pDemoPlayer
Definition gameclient.h:197
int m_EditorMovementDelay
Definition gameclient.h:217
CVoting m_Voting
Definition gameclient.h:158
void ApplySkin7InfoFromGameMsg(const T *pMsg, int ClientId, int Conn)
Definition sixup_translate_game.cpp:87
CMenus m_Menus
Definition gameclient.h:143
CBackground m_Background
Definition gameclient.h:169
void OnNewSnapshot() override
Definition gameclient.cpp:1594
void ApplySkin7InfoFromSnapObj(const protocol7::CNetObj_De_ClientInfo *pObj, int ClientId) override
Definition sixup_translate_game.cpp:102
class IFriends * m_pFriends
Definition gameclient.h:201
class IHttp * m_pHttp
Definition gameclient.h:207
class IStorage * Storage() const
Definition gameclient.h:266
void OnShutdown() override
Definition gameclient.cpp:1215
void LoadExtrasSkin(const char *pPath, bool AsDir=false)
Definition gameclient.cpp:4217
std::vector< std::shared_ptr< CManagedTeeRenderInfo > > m_vpManagedTeeRenderInfos
Definition gameclient.h:874
class IEngine * m_pEngine
Definition gameclient.h:187
int ClientVersion7() const override
Definition gameclient.cpp:89
void OnUpdate() override
Definition gameclient.cpp:444
bool m_LanguageChanged
Definition gameclient.h:605
int TranslateSnap(CSnapshot *pSnapDstSix, CSnapshot *pSnapSrcSeven, int Conn, bool Dummy) override
Definition sixup_translate_snapshot.cpp:9
CNetObjHandler * GetNetObjHandler() override
Definition gameclient.cpp:4572
bool m_MultiViewActivated
Definition gameclient.h:860
class IFriends * Foes()
Definition gameclient.h:283
CRaceHelper m_RaceHelper
Definition gameclient.h:212
class IConfigManager * ConfigManager() const
Definition gameclient.h:267
int m_aLastNewPredictedTick[NUM_DUMMIES]
Definition gameclient.h:221
bool m_ReceivedDDNetPlayer
Definition gameclient.h:649
CCharOrder m_CharOrder
Definition gameclient.h:889
bool AntiPingPlayers()
Definition gameclient.h:660
SClientExtrasSkin m_ExtrasSkin
Definition gameclient.h:852
class IGraphics * m_pGraphics
Definition gameclient.h:189
class IHttp * Http()
Definition gameclient.h:290
std::vector< SSwitchers > & Switchers()
Definition gameclient.h:674
CMenuBackground m_MenuBackground
Definition gameclient.h:170
int m_PrevLocalId
Definition gameclient.h:256
int m_aLocalIds[NUM_DUMMIES]
Definition gameclient.h:645
void LoadMapSettings()
Definition gameclient.cpp:4446
bool m_ParticlesSkinLoaded
Definition gameclient.h:795
int OnSnapInput(int *pData, bool Dummy, bool Force) override
Definition gameclient.cpp:516
class CRenderTools * RenderTools()
Definition gameclient.h:275
float MapValue(float MaxValue, float MinValue, float MaxRange, float MinRange, float Value)
Definition gameclient.cpp:4907
static void ConKill(IConsole::IResult *pResult, void *pUserData)
Definition gameclient.cpp:3097
void OnEnterGame() override
Definition gameclient.cpp:1223
CChat m_Chat
Definition gameclient.h:137
int m_NextChangeInfo
Definition gameclient.h:641
CCharacterCore m_PredictedPrevChar
Definition gameclient.h:320
class IFriends * Friends()
Definition gameclient.h:282
virtual void OnRelease()
Definition gameclient.cpp:989
void SendInfo(bool Start)
Definition gameclient.cpp:2985
Definition console.h:26
Definition gameclient.h:70
bool m_BugDDRaceGhost
Definition gameclient.h:83
bool m_EntitiesFNG
Definition gameclient.h:96
bool m_AllowZoom
Definition gameclient.h:81
bool m_AllowXSkins
Definition gameclient.h:105
bool m_EntitiesRace
Definition gameclient.h:95
bool m_AllowHookColl
Definition gameclient.h:80
bool m_NoWeakHookAndBounce
Definition gameclient.h:111
bool m_DDRaceTeam
Definition gameclient.h:114
bool m_PredictDDRace
Definition gameclient.h:89
bool m_FlagStartsRace
Definition gameclient.h:72
bool m_DDRaceRecordMessage
Definition gameclient.h:75
bool m_EntitiesFDDrace
Definition gameclient.h:99
bool m_EntitiesDDNet
Definition gameclient.h:93
bool m_PredictVanilla
Definition gameclient.h:91
bool m_RaceRecordMessage
Definition gameclient.h:76
bool m_AllowEyeWheel
Definition gameclient.h:79
bool m_PredictFNG
Definition gameclient.h:88
bool m_HudAmmo
Definition gameclient.h:108
bool m_RaceSounds
Definition gameclient.h:77
bool m_HudHealthArmor
Definition gameclient.h:107
bool m_EntitiesVanilla
Definition gameclient.h:97
bool m_EntitiesBW
Definition gameclient.h:98
bool m_PredictDDRaceTiles
Definition gameclient.h:90
bool m_TimeScore
Definition gameclient.h:73
bool m_EntitiesDDRace
Definition gameclient.h:94
bool m_DontMaskEntities
Definition gameclient.h:104
bool m_BugFNGLaserRange
Definition gameclient.h:85
bool m_HudDDRace
Definition gameclient.h:109
bool m_BugDDRaceInput
Definition gameclient.h:84
bool m_Pvp
Definition gameclient.h:102
bool m_UnlimitedAmmo
Definition gameclient.h:74
bool m_Race
Definition gameclient.h:101
bool m_NoSkinChangeForFrozen
Definition gameclient.h:112
bool m_BugVanillaBounce
Definition gameclient.h:86
Definition gameworld.h:18
CWorldCore m_Core
Definition gameworld.h:35
Definition ghost.h:51
Definition hud.h:46
Definition infomessages.h:10
Definition items.h:13
Definition layers.h:13
Definition local_server.h:9
Definition mapbugs.h:22
Definition mapimages.h:37
Definition maplayers.h:18
Definition mapsounds.h:12
Definition menu_background.h:32
Definition menus.h:47
Definition motd.h:12
Definition nameplates.h:46
Definition protocol.h:1501
int NumObjCorrections() const
Definition protocol.cpp:21
const char * CorrectedObjOn() const
Definition protocol.cpp:22
Definition particles.h:64
Definition players.h:12
Definition race_demo.h:10
Definition race.h:9
Definition render_map.h:55
Definition render.h:215
Definition scoreboard.h:13
Definition render.h:37
Definition skins7.h:22
Definition skins.h:25
Definition gameclient.h:118
const CNetObj_EntityEx * m_pDataEx
Definition gameclient.h:121
IClient::CSnapItem m_Item
Definition gameclient.h:120
Definition snapshot.h:31
Definition sounds.h:22
Definition spectator.h:12
Definition statboard.h:10
Definition teamscore.h:25
Definition render.h:69
Definition tooltips.h:27
Definition touch_controls.h:24
Definition gamecore.h:43
Definition ui.h:297
Definition packer.h:54
Definition voting.h:15
std::vector< SSwitchers > m_vSwitchers
Definition gamecore.h:176
Definition color.h:161
Definition color.h:198
Definition client.h:112
Definition client.h:39
@ STATE_DEMOPLAYBACK
Definition client.h:57
Definition config.h:9
Definition console.h:47
Definition console.h:18
void(* FCommandCallback)(IResult *pResult, void *pUserData)
Definition console.h:91
Definition demo.h:61
Definition demo.h:105
Definition discord.h:9
Definition editor.h:8
Definition engine.h:15
Definition favorites.h:14
Definition friends.h:19
Definition client.h:350
Definition graphics.h:205
bool IsValid() const
Definition graphics.h:215
Definition graphics.h:188
Definition http.h:12
Definition input.h:18
IKernel * Kernel()
Definition kernel.h:16
Definition kernel.h:34
Definition serverbrowser.h:267
Definition sound.h:12
Definition storage.h:21
Definition textrender.h:280
Definition updater.h:7
Definition protocol7.h:1230
Definition vmath.h:15
CConfig g_Config
Definition config.cpp:13
@ NUM_DUMMIES
Definition enums.h:8
@ NUM_TUNEZONES
Definition protocol.h:139
@ 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
@ GAMEFLAG_TEAMS
Definition protocol.h:153
@ NUM_WEAPONS
Definition protocol.h:1490
ColorRGBA CalculateNameColor(ColorHSLA TextColorHSL)
Definition gameclient.cpp:3195
EClientIdFormat
Definition gameclient.h:125
@ NUM_SKINPARTS
Definition protocol7.h:37
@ MAX_SKIN_LENGTH
Definition protocol7.h:69
@ RENDERTYPE_BACKGROUND
Definition render_interfaces.h:16
@ RENDERTYPE_FOREGROUND
Definition render_interfaces.h:18
Definition gameclient.h:365
vec2 m_Position
Definition gameclient.h:378
CNetObj_Character m_Cur
Definition gameclient.h:370
bool m_HasExtendedDisplayInfo
Definition gameclient.h:375
const CNetObj_DDNetCharacter * m_PrevExtendedData
Definition gameclient.h:373
CNetObj_DDNetCharacter m_ExtendedData
Definition gameclient.h:372
bool m_Active
Definition gameclient.h:366
bool m_HasExtendedData
Definition gameclient.h:374
CNetObj_Character m_Prev
Definition gameclient.h:369
Definition gameclient.h:325
int m_HighestClientId
Definition gameclient.h:345
class CGameClient::CSnapState::CSpectateInfo m_SpecInfo
const CNetObj_PlayerInfo * m_pLocalInfo
Definition gameclient.h:328
const CNetObj_SpectatorInfo * m_pSpectatorInfo
Definition gameclient.h:329
const CNetObj_GameInfo * m_pGameInfoObj
Definition gameclient.h:332
const CNetObj_SpectatorInfo * m_pPrevSpectatorInfo
Definition gameclient.h:330
int m_LocalClientId
Definition gameclient.h:342
const CNetObj_PlayerInfo * m_apInfoByDDTeamScore[MAX_CLIENTS]
Definition gameclient.h:339
const CNetObj_PlayerInfo * m_apInfoByScore[MAX_CLIENTS]
Definition gameclient.h:337
const CNetObj_PlayerInfo * m_apInfoByName[MAX_CLIENTS]
Definition gameclient.h:338
int m_aTeamSize[2]
Definition gameclient.h:344
const CNetObj_Character * m_pLocalPrevCharacter
Definition gameclient.h:327
CCharacterInfo m_aCharacters[MAX_CLIENTS]
Definition gameclient.h:381
const CNetObj_PlayerInfo * m_apPlayerInfos[MAX_CLIENTS]
Definition gameclient.h:336
const CNetObj_GameData * m_pGameDataObj
Definition gameclient.h:333
const CNetObj_PlayerInfo * m_apInfoByDDTeamName[MAX_CLIENTS]
Definition gameclient.h:340
const CNetObj_Character * m_pLocalCharacter
Definition gameclient.h:326
int m_NumPlayers
Definition gameclient.h:343
int m_GameDataSnapId
Definition gameclient.h:334
const CNetObj_Flag * m_apFlags[2]
Definition gameclient.h:331
Definition gameclient.h:798
IGraphics::CTextureHandle m_aSpriteEmoticons[16]
Definition gameclient.h:799
Definition gameclient.h:844
IGraphics::CTextureHandle m_SpritePulley
Definition gameclient.h:847
IGraphics::CTextureHandle m_SpriteParticleSnowflake
Definition gameclient.h:845
IGraphics::CTextureHandle m_aSpriteParticles[4]
Definition gameclient.h:849
IGraphics::CTextureHandle m_SpriteHectagon
Definition gameclient.h:848
IGraphics::CTextureHandle m_SpriteParticleSparkle
Definition gameclient.h:846
Definition gameclient.h:693
IGraphics::CTextureHandle m_aSpriteWeaponProjectiles[6]
Definition gameclient.h:736
IGraphics::CTextureHandle m_SpriteNinjaBarEmptyRight
Definition gameclient.h:770
IGraphics::CTextureHandle m_SpritePickupGun
Definition gameclient.h:756
IGraphics::CTextureHandle m_SpriteWeaponShotgun
Definition gameclient.h:715
IGraphics::CTextureHandle m_SpritePickupArmorLaser
Definition gameclient.h:751
IGraphics::CTextureHandle m_SpriteWeaponShotgunProjectile
Definition gameclient.h:730
IGraphics::CTextureHandle m_SpritePickupArmorGrenade
Definition gameclient.h:749
IGraphics::CTextureHandle m_SpriteArmorEmpty
Definition gameclient.h:698
IGraphics::CTextureHandle m_SpriteWeaponNinjaProjectile
Definition gameclient.h:733
IGraphics::CTextureHandle m_SpriteWeaponGun
Definition gameclient.h:714
bool IsSixup()
Definition gameclient.h:772
IGraphics::CTextureHandle m_aaSpriteWeaponNinjaMuzzles[3]
Definition gameclient.h:741
IGraphics::CTextureHandle m_SpritePickupArmorNinja
Definition gameclient.h:750
IGraphics::CTextureHandle m_SpriteHookChain
Definition gameclient.h:711
IGraphics::CTextureHandle m_SpriteHookHead
Definition gameclient.h:712
IGraphics::CTextureHandle m_SpriteWeaponGrenadeProjectile
Definition gameclient.h:731
IGraphics::CTextureHandle m_SpriteNinjaBarEmpty
Definition gameclient.h:769
IGraphics::CTextureHandle m_SpriteWeaponLaser
Definition gameclient.h:718
IGraphics::CTextureHandle m_SpriteWeaponLaserProjectile
Definition gameclient.h:734
IGraphics::CTextureHandle m_aSpriteWeaponGunMuzzles[3]
Definition gameclient.h:739
IGraphics::CTextureHandle m_aaSpriteWeaponsMuzzles[6][3]
Definition gameclient.h:743
IGraphics::CTextureHandle m_SpritePickupHealth
Definition gameclient.h:746
IGraphics::CTextureHandle m_SpriteWeaponNinjaCursor
Definition gameclient.h:705
IGraphics::CTextureHandle m_SpriteWeaponLaserCursor
Definition gameclient.h:706
IGraphics::CTextureHandle m_SpriteFlagRed
Definition gameclient.h:764
IGraphics::CTextureHandle m_SpritePickupGrenade
Definition gameclient.h:752
IGraphics::CTextureHandle m_SpritePickupLaser
Definition gameclient.h:754
IGraphics::CTextureHandle m_SpritePickupArmorShotgun
Definition gameclient.h:748
IGraphics::CTextureHandle m_aSpriteWeaponCursors[6]
Definition gameclient.h:708
IGraphics::CTextureHandle m_aSpritePickupWeaponArmor[4]
Definition gameclient.h:760
IGraphics::CTextureHandle m_SpritePickupArmor
Definition gameclient.h:747
IGraphics::CTextureHandle m_SpriteNinjaBarFullLeft
Definition gameclient.h:767
IGraphics::CTextureHandle m_SpriteWeaponGrenade
Definition gameclient.h:716
IGraphics::CTextureHandle m_SpriteWeaponShotgunCursor
Definition gameclient.h:703
IGraphics::CTextureHandle m_SpriteWeaponNinja
Definition gameclient.h:717
IGraphics::CTextureHandle m_aSpriteWeapons[6]
Definition gameclient.h:720
IGraphics::CTextureHandle m_SpriteArmorFull
Definition gameclient.h:697
IGraphics::CTextureHandle m_SpriteFlagBlue
Definition gameclient.h:763
IGraphics::CTextureHandle m_SpritePickupShotgun
Definition gameclient.h:753
IGraphics::CTextureHandle m_aSpriteWeaponShotgunMuzzles[3]
Definition gameclient.h:740
IGraphics::CTextureHandle m_SpriteHealthFull
Definition gameclient.h:695
IGraphics::CTextureHandle m_SpriteWeaponHammerCursor
Definition gameclient.h:701
IGraphics::CTextureHandle m_aSpriteParticles[9]
Definition gameclient.h:723
IGraphics::CTextureHandle m_SpriteHealthEmpty
Definition gameclient.h:696
IGraphics::CTextureHandle m_SpriteNinjaBarFull
Definition gameclient.h:768
IGraphics::CTextureHandle m_SpritePickupHammer
Definition gameclient.h:757
IGraphics::CTextureHandle m_SpriteWeaponGrenadeCursor
Definition gameclient.h:704
IGraphics::CTextureHandle m_SpriteWeaponHammer
Definition gameclient.h:713
IGraphics::CTextureHandle m_SpriteWeaponHammerProjectile
Definition gameclient.h:732
IGraphics::CTextureHandle m_aSpritePickupWeapons[6]
Definition gameclient.h:759
IGraphics::CTextureHandle m_SpriteWeaponGunCursor
Definition gameclient.h:702
IGraphics::CTextureHandle m_aSpriteStars[3]
Definition gameclient.h:726
IGraphics::CTextureHandle m_SpriteWeaponGunProjectile
Definition gameclient.h:729
IGraphics::CTextureHandle m_SpritePickupNinja
Definition gameclient.h:755
Definition gameclient.h:806
IGraphics::CTextureHandle m_SpriteHudEndlessJump
Definition gameclient.h:811
IGraphics::CTextureHandle m_SpriteHudTeam0Mode
Definition gameclient.h:835
IGraphics::CTextureHandle m_SpriteHudLaserHitDisabled
Definition gameclient.h:826
IGraphics::CTextureHandle m_SpriteHudFreezeBarFullLeft
Definition gameclient.h:814
IGraphics::CTextureHandle m_SpriteHudNinjaBarEmptyRight
Definition gameclient.h:821
IGraphics::CTextureHandle m_SpriteHudFreezeBarEmptyRight
Definition gameclient.h:817
IGraphics::CTextureHandle m_SpriteHudAirjumpEmpty
Definition gameclient.h:808
IGraphics::CTextureHandle m_SpriteHudTeleportGun
Definition gameclient.h:831
IGraphics::CTextureHandle m_SpriteHudGunHitDisabled
Definition gameclient.h:827
IGraphics::CTextureHandle m_SpriteHudJetpack
Definition gameclient.h:813
IGraphics::CTextureHandle m_SpriteHudCollisionDisabled
Definition gameclient.h:810
IGraphics::CTextureHandle m_SpriteHudNinjaBarEmpty
Definition gameclient.h:820
IGraphics::CTextureHandle m_SpriteHudEndlessHook
Definition gameclient.h:812
IGraphics::CTextureHandle m_SpriteHudFreezeBarEmpty
Definition gameclient.h:816
IGraphics::CTextureHandle m_SpriteHudNinjaBarFullLeft
Definition gameclient.h:818
IGraphics::CTextureHandle m_SpriteHudDummyHammer
Definition gameclient.h:836
IGraphics::CTextureHandle m_SpriteHudDummyCopy
Definition gameclient.h:837
IGraphics::CTextureHandle m_SpriteHudLiveFrozen
Definition gameclient.h:829
IGraphics::CTextureHandle m_SpriteHudAirjump
Definition gameclient.h:807
IGraphics::CTextureHandle m_SpriteHudHookHitDisabled
Definition gameclient.h:822
IGraphics::CTextureHandle m_SpriteHudShotgunHitDisabled
Definition gameclient.h:824
IGraphics::CTextureHandle m_SpriteHudLockMode
Definition gameclient.h:834
IGraphics::CTextureHandle m_SpriteHudSolo
Definition gameclient.h:809
IGraphics::CTextureHandle m_SpriteHudDeepFrozen
Definition gameclient.h:828
IGraphics::CTextureHandle m_SpriteHudHammerHitDisabled
Definition gameclient.h:823
IGraphics::CTextureHandle m_SpriteHudFreezeBarFull
Definition gameclient.h:815
IGraphics::CTextureHandle m_SpriteHudNinjaBarFull
Definition gameclient.h:819
IGraphics::CTextureHandle m_SpriteHudPracticeMode
Definition gameclient.h:833
IGraphics::CTextureHandle m_SpriteHudTeleportGrenade
Definition gameclient.h:830
IGraphics::CTextureHandle m_SpriteHudGrenadeHitDisabled
Definition gameclient.h:825
IGraphics::CTextureHandle m_SpriteHudTeleportLaser
Definition gameclient.h:832
Definition gameclient.h:782
IGraphics::CTextureHandle m_SpriteParticleBall
Definition gameclient.h:784
IGraphics::CTextureHandle m_SpriteParticleShell
Definition gameclient.h:787
IGraphics::CTextureHandle m_SpriteParticleAirJump
Definition gameclient.h:789
IGraphics::CTextureHandle m_SpriteParticleSmoke
Definition gameclient.h:786
IGraphics::CTextureHandle m_SpriteParticleExpl
Definition gameclient.h:788
IGraphics::CTextureHandle m_SpriteParticleHit
Definition gameclient.h:790
IGraphics::CTextureHandle m_aSpriteParticleSplat[3]
Definition gameclient.h:785
IGraphics::CTextureHandle m_aSpriteParticles[10]
Definition gameclient.h:791
IGraphics::CTextureHandle m_SpriteParticleSlice
Definition gameclient.h:783
Definition gameclient.h:915
bool m_IsInit
Definition gameclient.h:917
bool m_Teleported
Definition gameclient.h:918
float m_aLastFreeze[MAX_CLIENTS]
Definition gameclient.h:924
bool m_Solo
Definition gameclient.h:916
vec2 m_OldPos
Definition gameclient.h:920
int m_OldPersonalZoom
Definition gameclient.h:921
float m_SecondChance
Definition gameclient.h:922
bool m_aVanish[MAX_CLIENTS]
Definition gameclient.h:919
float m_OldCameraDistance
Definition gameclient.h:923
Definition protocol.h:1406
Definition protocol.h:497
Definition protocol.h:545
Definition protocol.h:716
Definition protocol.h:447
Definition protocol.h:468
Definition protocol.h:455
Definition protocol.h:509
Definition protocol.h:402
Definition protocol.h:531
Definition protocol7.h:395