3 void Inventory_new(entity this);
4 void Inventory_delete(entity this);
6 void PlayerState_attach(entity this)
8 this._ps = NEW(PlayerState, this);
13 void PlayerState_detach(entity this)
15 if (!PS(this)) return; // initial connect
16 FOREACH_CLIENT(PS(it) == PS(this), { PS(it) = NULL; });
20 Inventory_delete(self);
24 void DecodeLevelParms(entity this);
25 void PlayerScore_Attach(entity this);
26 void ClientData_Attach(entity this);
27 void accuracy_init(entity this);
28 void entcs_attach(entity this);
29 void playerdemo_init(entity this);
30 void anticheat_init(entity this);
31 void W_HitPlotOpen(entity this);
32 void bot_clientconnect(entity this);
34 void ClientState_attach(entity this)
36 this._cs = NEW(ClientState, this);
38 GetCvars(0); // get other cvars from player
40 // TODO: xonstat elo.txt support, until then just 404s
41 if (false && IS_REAL_CLIENT(this)) { PlayerStats_PlayerBasic_CheckUpdate(this); }
43 // TODO: fold all of these into ClientState
45 DecodeLevelParms(this);
47 PlayerScore_Attach(this);
48 ClientData_Attach(this);
51 playerdemo_init(this);
55 bot_clientconnect(this);
58 void bot_clientdisconnect();
59 void W_HitPlotClose(entity this);
60 void anticheat_report();
61 void playerdemo_shutdown();
62 void entcs_detach(entity this);
63 void accuracy_free(entity this);
64 void ClientData_Detach(entity this);
65 void PlayerScore_Detach(entity this);
67 void ClientState_detach(entity this)
72 GetCvars(-1); // free cvars
74 bot_clientdisconnect();
78 playerdemo_shutdown();
81 ClientData_Detach(this);
82 PlayerScore_Detach(self);