]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge remote-tracking branch 'origin/Mario/respawn_delays'
authorSamual Lenks <samual@xonotic.org>
Sun, 24 Nov 2013 04:36:52 +0000 (23:36 -0500)
committerSamual Lenks <samual@xonotic.org>
Sun, 24 Nov 2013 04:36:52 +0000 (23:36 -0500)
# By Mario
# Via Mario
* origin/Mario/respawn_delays:
  Fix some issues brought up in the tracker
  Only use g_respawn_delay_max if it's higher than normal respawn delay
  Add a new option for forced respawn: g_respawn_delay_max. Forces players to spawn after this many seconds or optionally respawn after normal delay

1  2 
defaultXonotic.cfg
qcsrc/server/autocvars.qh
qcsrc/server/cl_client.qc
qcsrc/server/cl_player.qc
qcsrc/server/defs.qh

Simple merge
Simple merge
index 65443f4782992f51f3528ebcbbc36300f98f8d47,0c71bcc9e703da9511576b4b213f8eb2dc5c01d6..d803602ad6ccd6c229e5b61ffa20f4dfc976b6ae
@@@ -2305,10 -2305,10 +2305,10 @@@ void PlayerPreThink (void
                                if(frametime)
                                        player_anim();
                                button_pressed = (self.BUTTON_ATCK || self.BUTTON_JUMP || self.BUTTON_ATCK2 || self.BUTTON_HOOK || self.BUTTON_USE);
 -                              
 +
                                if (self.deadflag == DEAD_DYING)
                                {
-                                       if(self.respawn_flags & RESPAWN_FORCE)
+                                       if((self.respawn_flags & RESPAWN_FORCE) && !autocvar_g_respawn_delay_max)
                                                self.deadflag = DEAD_RESPAWNING;
                                        else if(!button_pressed)
                                                self.deadflag = DEAD_DEAD;
Simple merge
Simple merge