]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/client.qh
Some more defs.qh cleanup, update gameplay hash
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / client.qh
index 2ad2d8f8d2c66d3048d1a0d7d2991cb550399fd1..83de3f024d619746f1072302da47beead46a6047 100644 (file)
@@ -3,6 +3,46 @@
 #include "utils.qh"
 #include <common/sounds/all.qh>
 
+// replicated cvars TODO: needs better organisation!
+.float cvar_cl_handicap;
+.int cvar_cl_gunalign;
+.float cvar_cl_clippedspectating;
+.float cvar_cl_autoscreenshot;
+.float cvar_cl_jetpack_jump;
+.float cvar_cl_movement_track_canjump;
+.float cvar_cl_newusekeysupported;
+.float cvar_cl_cts_noautoswitch;
+.bool cvar_cl_weapon_switch_reload;
+.bool cvar_cl_weapon_switch_fallback_to_impulse;
+
+.string cvar_g_xonoticversion;
+.string cvar_cl_weaponpriority;
+.string cvar_cl_weaponpriorities[10];
+.float cvar_cl_noantilag;
+
+// WEAPONTODO
+.float autoswitch;
+.string weaponorder_byimpulse;
+.float cvar_cl_weaponimpulsemode;
+
+.float cvar_cl_allow_uid2name;
+.float cvar_cl_allow_uidtracking;
+.bool cvar_cl_allow_uidranking;
+
+.string cvar_cl_physics;
+
+// autotaunt system
+.float cvar_cl_autotaunt;
+.float cvar_cl_voice_directional;
+.float cvar_cl_voice_directional_taunt_attenuation;
+
+.entity clientdata;
+
+.float jointime; // time of connecting
+.float startplaytime; // time of switching from spectator to player
+.float alivetime; // time of being alive
+.float motd_actived_time; // used for both motd and campaign_message
+
 void ClientState_attach(entity this);
 
 IntrusiveList g_players;
@@ -247,6 +287,21 @@ METHOD(Client, m_unwind, bool(Client this))
 
 .float respawn_countdown; // next number to count
 
+float blockSpectators; // if set, new or existing spectators or observers will be removed unless they become a player within g_maxplayers_spectator_blocktime seconds
+.float spectatortime; // point in time since the client is spectating or observing
+
+// TODO: standardise resource regeneration
+.float pauseregen_finished;
+.float pauserothealth_finished;
+.float pauserotarmor_finished;
+.float pauserotfuel_finished;
+
+// idle kicking
+float sv_maxidle;
+float sv_maxidle_spectatorsareidle;
+int sv_maxidle_slots;
+bool sv_maxidle_slots_countbots;
+
 // g_<gametype>_str:
 // If 0, default is used.
 // If <0, 0 is used.