Author Topic: Noob questions regarding Lakitu's QVM  (Read 5422 times)

The_KGB

  • Posts: 3
  • Turrets: +0/-0
Noob questions regarding Lakitu's QVM
« 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.

/dev/humancontroller

  • Posts: 1033
  • Turrets: +1002/-383
Re: Noob questions regarding Lakitu's QVM
« Reply #1 on: June 14, 2013, 12:56:55 pm »
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, noob?
set the value of the g_markDeconstruct 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 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, but is most likely going to apply to any other version.
Code: [Select]
--- 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.
« Last Edit: June 15, 2013, 07:24:05 am by /dev/humancontroller »

ULTRA Random ViruS

  • Posts: 924
  • Turrets: +4/-101
    • ZdrytchX's reference website
Re: Noob questions regarding Lakitu's QVM
« Reply #2 on: June 15, 2013, 07:05:35 am »
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.