Tremulous Forum
Community => Servers => Topic started by: The_KGB on June 13, 2013, 04:14:50 am
-
Does anyone know with Lakitu's QVM if there is a way to disable the mark for deconstruction system (and instead remove things immediately)? I'd also like to alter the build timer and get !register working.
-
Does anyone know with Lakitu's QVM if there is a way to disable the mark for deconstruction system (and instead remove things immediately)?
have you performed a basic web search (http://www.duckduckgo.com/), noob?
set the value of the g_markDeconstruct cvar (http://en.wikipedia.org/wiki/Cvar) to 0 (on the server) to enable stock-style deconning behavior.
I'd also like to alter the build timer
the following is an untested patch (http://en.wikipedia.org/wiki/Patch_%28Unix%29) that adds a new cvar, g_buildDelayMult, which scales the build/deconstruct delay of construction kits and grangers. it applies to Lakitu7's QVM 5.41 (http://patches.mercenariesguild.net/index.php?do=details&task_id=198&project=2), but is most likely going to apply to any other version.
--- src/game/bg_misc.c
+++ src/game/bg_misc.c
@@ -4164,3 +4164,3 @@ int BG_FindBuildDelayForWeapon( int weapon )
{
- return bg_weapons[ i ].buildDelay;
+ return MAX( 0, bg_weapons[ i ].buildDelay * g_buildDelayMult.value );
}
--- src/game/g_local.h
+++ src/game/g_local.h
@@ -1292,2 +1292,3 @@ extern vmCvar_t g_humanBuildPoints;
extern vmCvar_t g_alienBuildPoints;
+extern vmCvar_t g_buildDelayMult;
extern vmCvar_t g_humanStage;
--- src/game/g_main.c
+++ src/game/g_main.c
@@ -109,2 +109,3 @@ vmCvar_t g_humanBuildPoints;
vmCvar_t g_alienBuildPoints;
+vmCvar_t g_buildDelayMult;
vmCvar_t g_humanStage;
@@ -280,2 +281,3 @@ static cvarTable_t gameCvarTable[ ] =
{ &g_alienBuildPoints, "g_alienBuildPoints", DEFAULT_ALIEN_BUILDPOINTS, CVAR_SERVERINFO, 0, qfalse },
+ { &g_buildDelayMult, "g_buildDelayMult", "1", 0, 0, qfalse },
{ &g_humanStage, "g_humanStage", "0", 0, 0, qfalse },
and get !register working.
AFAICT, you'll need to edit the admin.dat file and add the R flag to the definition of level 0. if there is no admin.dat file yet, then you'll first need to create it, for example, by setting a client's admin level via the server console to 5, and restarting the server.
-
Flags need to be set as well, as you'll get really weird ones. I remembered there was this server hoster who gave level0s kick and ban, but not specme or listmaps.