=============
*/
.entity chatbubbleentity;
+.string netname_previous;
void ReadyCount();
void ClientDisconnect(entity this)
{
MUTATOR_CALLHOOK(ClientDisconnect, this);
- if (CS(this).netname_previous) strunzone(CS(this).netname_previous); // needs to be before the CS entity is removed!
+ if (this.netname_previous) strunzone(this.netname_previous); // needs to be before the CS entity is removed!
ClientState_detach(this);
Portal_ClearAll(this);
zoomstate_set = false;
// Check for nameless players
- if (this.netname == "" || this.netname != CS(this).netname_previous)
+ if (this.netname == "" || this.netname != this.netname_previous)
{
if (isInvisibleString(this.netname))
{
if (autocvar_sv_eventlog) {
GameLogEcho(strcat(":name:", ftos(this.playerid), ":", playername(this, false)));
}
- if (CS(this).netname_previous) strunzone(CS(this).netname_previous);
- CS(this).netname_previous = strzone(this.netname);
+ if (this.netname_previous) strunzone(this.netname_previous);
+ this.netname_previous = strzone(this.netname);
}
// version nagging
ATTRIB(Client, jointime, float, this.jointime);
ATTRIB(Client, spectatortime, float, this.spectatortime);
ATTRIB(Client, version_nagtime, float, this.version_nagtime);
- ATTRIB(Client, netname_previous, string, this.netname_previous);
ATTRIB(Client, allowed_timeouts, int, this.allowed_timeouts);
ATTRIB(Client, active_minigame, entity, this.active_minigame);
ATTRIB(Client, taunt_soundtime, float, this.taunt_soundtime);