Skip to content
Snippets Groups Projects
Commit 8dd72e81 authored by Trillster's avatar Trillster
Browse files

Add CVar for customizing Domination score rate

parent dc890eb4
No related branches found
No related tags found
No related merge requests found
Pipeline #97393 passed
...@@ -74,6 +74,7 @@ ...@@ -74,6 +74,7 @@
+ - Added ACS functions: "GetPlayerJoinQueuePosition" and "SkipJoinQueue", to return the player's position in the join queue and allow true spectators in the join queue to join the game outside of normal game mode rules. Modders can also take advantage of the new GAMEEVENT_JOINQUEUECHANGED EVENT script type to know when players are added or removed from the join queue. [AKMDM] + - Added ACS functions: "GetPlayerJoinQueuePosition" and "SkipJoinQueue", to return the player's position in the join queue and allow true spectators in the join queue to join the game outside of normal game mode rules. Modders can also take advantage of the new GAMEEVENT_JOINQUEUECHANGED EVENT script type to know when players are added or removed from the join queue. [AKMDM]
+ - Added over a hundred new text colors recently made by Fuzzball. [AKMDM] + - Added over a hundred new text colors recently made by Fuzzball. [AKMDM]
+ - Added new SBARINFO top level "AppendStatusBar" to allow for adding extra SBARINFO code onto existing custom SBARINFO definitions. [Binary] + - Added new SBARINFO top level "AppendStatusBar" to allow for adding extra SBARINFO code onto existing custom SBARINFO definitions. [Binary]
+ - Added the CVar "sv_dominationscorerate" to allow customizing how often points are obtained in the Domination gamemode. [Trillster]
- - Fixed: clients didn't initialize a sector's friction properly in some cases due to a superfluous check that wasn't removed earlier. [AKMDM] - - Fixed: clients didn't initialize a sector's friction properly in some cases due to a superfluous check that wasn't removed earlier. [AKMDM]
- - Fixed: the server wouldn't initialize compatflags and compatflags2 properly if entered as command line parameters. [AKMDM] - - Fixed: the server wouldn't initialize compatflags and compatflags2 properly if entered as command line parameters. [AKMDM]
- - Fixed: serverinfo CVars entered on the command line were restored in reverse order. [AKMDM] - - Fixed: serverinfo CVars entered on the command line were restored in reverse order. [AKMDM]
......
...@@ -68,7 +68,11 @@ ...@@ -68,7 +68,11 @@
#include "cl_demo.h" #include "cl_demo.h"
#include "p_acs.h" #include "p_acs.h"
#define SCORERATE (TICRATE*3) CUSTOM_CVAR(Int, sv_dominationscorerate, 3, CVAR_SERVERINFO | CVAR_GAMEPLAYSETTING)
{
if ( self <= 0 )
self = 1;
};
// These default the default fade for points. I hope no one has a grey team... // These default the default fade for points. I hope no one has a grey team...
#define POINT_DEFAULT_R 0x7F #define POINT_DEFAULT_R 0x7F
...@@ -158,7 +162,7 @@ ...@@ -158,7 +162,7 @@
if ( NETWORK_InClientMode() ) if ( NETWORK_InClientMode() )
return; return;
if(!(level.maptime % SCORERATE)) if(!(level.maptime % (sv_dominationscorerate * TICRATE)))
{ {
for(unsigned int i = 0;i < NumPoints;i++) for(unsigned int i = 0;i < NumPoints;i++)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment