]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/client.qh
Some more defs.qh cleanup, update gameplay hash (again)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / client.qh
index 83de3f024d619746f1072302da47beead46a6047..0823e9214749499feaeecc8d1fb1304be9e6d868 100644 (file)
 .float alivetime; // time of being alive
 .float motd_actived_time; // used for both motd and campaign_message
 
+.bool wasplayer;
+
+.int spectatee_status;
+.bool zoomstate;
+
+.bool just_joined;
+
+.int pressedkeys;
+
 void ClientState_attach(entity this);
 
 IntrusiveList g_players;
@@ -271,6 +280,14 @@ METHOD(Client, m_unwind, bool(Client this))
     return false;
 }
 
+int autocvar__independent_players;
+bool independent_players;
+#define INDEPENDENT_PLAYERS (autocvar__independent_players ? (autocvar__independent_players > 0) : independent_players)
+#define IS_INDEPENDENT_PLAYER(e) ((e).solid == SOLID_TRIGGER)
+#define MAKE_INDEPENDENT_PLAYER(e) (((e).solid = SOLID_TRIGGER), ((e).frags = FRAGS_PLAYER_OUT_OF_GAME))
+
+.int killcount;
+
 //flood fields
 .float nickspamtime; // time of last nick change
 .float nickspamcount;