This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG).
Revision | 8a979c540d006196f585d9208d94e0dc3fd86892 (tree) |
---|---|
Time | 2021-11-11 00:50:41 |
Author | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Inform clients exactly how much longer they still need to wait before joining, changing teams, or suiciding again, not how long they should at least wait for.
@@ -564,7 +564,8 @@ | ||
564 | 564 | { |
565 | 565 | if (( sv_limitcommands ) && ( g_ulLastJoinTime > 0 ) && ( (ULONG)gametic < ( g_ulLastJoinTime + ( TICRATE * 3 )))) |
566 | 566 | { |
567 | - Printf( "You must wait at least 3 seconds before joining again.\n" ); | |
567 | + // [AK] Show the client how many more seconds they need to wait before they can join again. | |
568 | + Printf( "You must wait %d seconds before joining again.\n", static_cast<int>( 3 - ( gametic - g_ulLastJoinTime ) / TICRATE )); | |
568 | 569 | return; |
569 | 570 | } |
570 | 571 |
@@ -598,7 +599,8 @@ | ||
598 | 599 | { |
599 | 600 | if (( sv_limitcommands ) && ( g_ulLastSuicideTime > 0 ) && ( (ULONG)gametic < ( g_ulLastSuicideTime + ( TICRATE * 10 )))) |
600 | 601 | { |
601 | - Printf( "You must wait at least 10 seconds before suiciding again.\n" ); | |
602 | + // [AK] Show the client how many more seconds they need to wait before they can suicide again. | |
603 | + Printf( "You must wait %d seconds before suiciding again.\n", static_cast<int>( 10 - ( gametic - g_ulLastSuicideTime ) / TICRATE )); | |
602 | 604 | return; |
603 | 605 | } |
604 | 606 |
@@ -612,7 +614,8 @@ | ||
612 | 614 | { |
613 | 615 | if (( sv_limitcommands ) && !( ( lastmanstanding || teamlms ) && ( LASTMANSTANDING_GetState( ) == LMSS_COUNTDOWN ) ) && ( g_ulLastChangeTeamTime > 0 ) && ( (ULONG)gametic < ( g_ulLastChangeTeamTime + ( TICRATE * 3 )))) |
614 | 616 | { |
615 | - Printf( "You must wait at least 3 seconds before changing teams again.\n" ); | |
617 | + // [AK] Show the client how many more seconds they need to wait before they can change teams again. | |
618 | + Printf( "You must wait %d seconds before changing teams again.\n", static_cast<int>( 3 - ( gametic - g_ulLastChangeTeamTime ) / TICRATE )); | |
616 | 619 | return; |
617 | 620 | } |
618 | 621 |
@@ -990,7 +990,7 @@ | ||
990 | 990 | && ( (ULONG)gametic < ( g_ulLastNameChangeTime + ( TICRATE * CLIENT_NAMECHANGE_WAITTIME )))) |
991 | 991 | { |
992 | 992 | // [AK] Show the client how many more seconds they need to wait before they can change their name again. |
993 | - Printf( "You must wait another %d seconds before changing your name again.\n", static_cast<int>(CLIENT_NAMECHANGE_WAITTIME - ( gametic - g_ulLastNameChangeTime ) / TICRATE) ); | |
993 | + Printf( "You must wait %d seconds before changing your name again.\n", static_cast<int>(CLIENT_NAMECHANGE_WAITTIME - ( gametic - g_ulLastNameChangeTime ) / TICRATE) ); | |
994 | 994 | return false; |
995 | 995 | } |
996 | 996 | } |