Updated docs and spawn protection speed.

This commit is contained in:
Richard Helgeby 2010-07-07 00:19:19 +02:00
parent ebf677c527
commit 68d7476f0e
3 changed files with 48 additions and 12 deletions

View File

@ -11,9 +11,9 @@
// Zombie-Related Server Variables
// ----------------------------------------------------------------------------
// The max speed of any client in the server. (225 is around the average speed, depending on weapon)
// Default: "500"
sv_maxspeed 500
// The max speed of any player in the server (250 is normal speed). This is just a speed limit, and not the real players' speed.
// Default: "800"
sv_maxspeed 800
// Amount of time, in minutes, zombies have to infect all humans.
// Default: "5"
@ -587,9 +587,9 @@ zr_spawnprotect "1"
// Default: "10"
zr_spawnprotect_time "10"
// Speed of the player during protection. ['300.0' = Normal | '600.0' = Double speed | Dependency: zr_spawnprotect]
// Default: "600.0"
zr_spawnprotect_speed "600.0"
// Speed of the player during protection. See the manual for more information. [Dependency: zr_spawnprotect]
// Default: "250.0"
zr_spawnprotect_speed "250.0"
// Alpha of the player during protection. ['255' = Fully visible | '0' = Completely invisible | Dependency: zr_spawnprotect]
// Default: "0"

View File

@ -1343,8 +1343,27 @@ the admin-only flag in the <span class="code">flags</span> attribute.</p>
<td class="indent" colspan="3">
<p>The player's running speed.</p>
<p><strong>Note:</strong> The limits of this attribute depends on the speed method used.
In LMV-mode the values are absolute (10 to 2000), but in prop-mode values are offsets from
normal speed at 250 (-200 to 800).</p>
See the table below:</p>
<table>
<tr>
<th>Speed method</th>
<th>Min</th>
<th>Max</th>
<th>CS:S default</th>
</tr>
<tr>
<td class="parameter">LMV</td>
<td class="parameter">10.0</td>
<td class="parameter">2000.0</td>
<td class="parameter">300.0</td>
</tr>
<tr>
<td class="parameter">prop</td>
<td class="parameter">-200.0</td>
<td class="parameter">800.0</td>
<td class="parameter">0.0</td>
</tr>
</table>
</td>
</tr>
@ -3508,12 +3527,29 @@ right after they've spawned.</p>
<tr>
<td class="commandheader">zr_spawnprotect_speed</td>
<td class="commandheader">600.0</td>
<td class="commandheader">250.0</td>
</tr>
<tr>
<td class="indent" colspan="2">
<p>Running speed for spawn protected players. Normal running speed is 300.0, double is
600.0.</p>
<p>Running speed for spawn protected players. Speed value depends on the speed method used.
See the table below for examples:</p>
<table>
<tr>
<th>Speed method</th>
<th>Normal speed</th>
<th>Double speed</th>
</tr>
<tr>
<td class="parameter">LMV</td>
<td class="parameter">300.0</td>
<td class="parameter">600.0</td>
</tr>
<tr>
<td class="parameter">prop</td>
<td class="parameter">0.0</td>
<td class="parameter">250.0</td>
</tr>
</table>
</td>
</tr>

View File

@ -441,7 +441,7 @@ CvarsCreate()
// ===========================
g_hCvarsList[CVAR_SPAWNPROTECT] = CreateConVar("zr_spawnprotect", "1", "Player will be protected from infection when spawning into the game late.");
g_hCvarsList[CVAR_SPAWNPROTECT_TIME] = CreateConVar("zr_spawnprotect_time", "10", "Amount of time to protect player. [Dependency: zr_spawnprotect]");
g_hCvarsList[CVAR_SPAWNPROTECT_SPEED] = CreateConVar("zr_spawnprotect_speed", "600.0", "Speed of the player during protection. ['300.0' = Normal | '600.0' = Double speed | Dependency: zr_spawnprotect]");
g_hCvarsList[CVAR_SPAWNPROTECT_SPEED] = CreateConVar("zr_spawnprotect_speed", "250.0", "Speed of the player during protection. See the manual for more information. [Dependency: zr_spawnprotect]");
g_hCvarsList[CVAR_SPAWNPROTECT_ALPHA] = CreateConVar("zr_spawnprotect_alpha", "0", "Alpha of the player during protection. ['255' = Fully visible | '0' = Completely invisible | Dependency: zr_spawnprotect]");