void ClientState_attach(entity this);
+IntrusiveList g_players;
+STATIC_INIT(g_players) { g_players = IL_NEW(); }
+
CLASS(Client, Object)
/** Client name */
ATTRIB(Client, netname, string, this.netname);
CONSTRUCT(Client);
this.netname = name;
this.netaddress = "local";
- this.playermodel = "models/player/megaerebus.iqm";
+ this.playermodel = cvar_defstring("sv_defaultplayermodel");
}
ENDCLASS(Client)
CLASS(Player, Client)
INIT(Player) {
this.classname = STR_PLAYER;
+ IL_PUSH(g_players, this);
+ }
+ DESTRUCTOR(Player) {
+ IL_REMOVE(g_players, this);
}
- DESTRUCTOR(Player) { }
ENDCLASS(Player)
METHOD(Client, m_unwind, bool(Client this))