]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/client.qh
Some more cleanup of defs.qh, use a flag to indicate crouch state instead of a separa...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / client.qh
index 328726df9ca696c7725fa538617550e7af8f64e2..2ad2d8f8d2c66d3048d1a0d7d2991cb550399fd1 100644 (file)
@@ -231,10 +231,22 @@ METHOD(Client, m_unwind, bool(Client this))
     return false;
 }
 
+//flood fields
+.float nickspamtime; // time of last nick change
+.float nickspamcount;
+.float floodcontrol_chat;
+.float floodcontrol_chatteam;
+.float floodcontrol_chattell;
+.float floodcontrol_voice;
+.float floodcontrol_voiceteam;
+
+// respawning
 .int respawn_flags;
 .float respawn_time;
 .float respawn_time_max;
 
+.float respawn_countdown; // next number to count
+
 // g_<gametype>_str:
 // If 0, default is used.
 // If <0, 0 is used.
@@ -252,6 +264,19 @@ bool PlayerInList(entity player, string list);
 
 void ClientData_Touch(entity e);
 
+int nJoinAllowed(entity this, entity ignore);
+
+void FixIntermissionClient(entity e);
+
+void checkSpectatorBlock(entity this);
+
+void PlayerUseKey(entity this);
+
+void FixClientCvars(entity e);
+
+// called when a client connects, useful for updating sounds and such of static objects
+.void(entity this, entity player) init_for_player;
+
 /// \brief Print the string to the client's chat.
 /// \param[in] client Client to print to.
 /// \param[in] text Text to print.