]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/vote.qh
Give bots genuine ready status, fixes not appearing ready until a human is ready
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / vote.qh
index 4dfd9e8575f2abf22c9cdc1e639171ca64988e0e..d92c6a0656d05066dd0c7a182681c7ad8847b0db 100644 (file)
@@ -62,16 +62,15 @@ void VoteCommand(int request, entity caller, int argc, string vote_command);
 // warmup and nagger stuff
 const float RESTART_COUNTDOWN = 10;
 entity nagger;
-float readycount;                  // amount of players who are ready
-float readyrestart_happened;       // keeps track of whether a restart has already happened
-float restart_mapalreadyrestarted; // bool, indicates whether reset_map() was already executed
-.float ready;                      // flag for if a player is ready
+int readycount;                    // amount of players who are ready
+.bool ready;                       // flag for if a player is ready
+.float last_ready;                 // last ready time for anti-spam
 .int team_saved;                   // team number to restore upon map reset
-.void(entity this) reset;             // if set, an entity is reset using this
+.void(entity this) reset;          // if set, an entity is reset using this
 .void(entity this) reset2;         // if set, an entity is reset using this (after calling ALL the reset functions for other entities)
-void reset_map(float dorespawn);
+void reset_map(float dorespawn, bool is_fake_round_start);
 void ReadyCount();
-void ReadyRestart_force();
+void ReadyRestart_force(bool is_fake_round_start);
 void VoteCount(float first_count);
 void Nagger_Init();