Updated the manual with new infection mode documentation.

This commit is contained in:
Richard Helgeby 2013-01-10 10:32:19 +01:00
parent e53e8233f1
commit 86319d21ac
1 changed files with 74 additions and 13 deletions

View File

@ -2485,22 +2485,83 @@ tune game balance.</p>
</tr>
<tr>
<td class="commandheader">zr_infect_mzombie_ratio</td>
<td class="commandheader">5</td>
<td class="commandheader">zr_infect_mzombie_mode</td>
<td class="commandheader">"dynamic"</td>
</tr>
<tr>
<td class="indent" colspan="2">
<p>Mother zombie ratio. Every random <em>n</em>-th player is infected. In this case it's
5 where every fifth player will be infected. If it's set to 0 there will only be 1 mother
zombie every time.</p>
<p>Note that this is NOT a percentage value. The ratio 5 does not mean 5%, but every
fifth player. To get the percentage you need to do <em>ratio</em> / <em>player slots</em>.
Like 5 / 24 = 0.20 &rArr; 20% infection rate.</p>
<p>Conversion formula from percent to ratio:</p>
<blockquote><p><em>ratio</em> = <em>player slots</em> - ((<em>percent</em> / 100) * <em>player slots</em>)</p></blockquote>
<p>Decimals are stripped from the ratio because it's a integer value.</p>
<p>Options:<br />
0 or a positive number up to max server slots</p>
<p>Mother zombie infection mode.</p>
<blockquote><table>
<tr>
<td class="valueoption">dynamic</td>
<td>Scales number of mother zombies according to a ratio and number of players
on the server. See <code>zr_infect_mzombie_ratio</code> below.</td>
</tr>
<tr>
<td class="valueoption">absolute</td>
<td>Absolute number of zombies infected. Adjusted by
<code>zr_infect_mzombie_ratio</code> below.</td>
</tr>
<tr>
<td class="valueoption">range</td>
<td>Infects a random number of players between a minimum and maximum range. See
<code>zr_infect_mzombie_min</code> and <code>zr_infect_mzombie_max</code> below.</td>
</tr>
</table></blockquote>
</td>
</tr>
<tr>
<td class="commandheader">zr_infect_mzombie_ratio</td>
<td class="commandheader">7</td>
</tr>
<tr>
<td class="indent" colspan="2">
<p>Usage of this variable depends on the mode above.</p>
<blockquote><table>
<tr>
<td class="valueoption">dynamic</td>
<td><p>Mother zombie ratio. Every random <em>n</em>-th player is infected. In
this case it's 7 where every seventh player will be infected. If it's set to 0
there will only be 1 mother zombie every time.</p>
<p>Note that this is <em>not</em> a percentage value. The ratio 5 does not mean 5%, but
every fifth player. To get the percentage you need to do
<em>ratio</em> / <em>player slots</em>. Like 5 / 24 = 0.20 &rArr; 20% infection
rate.</p>
<p>Conversion formula from percent to ratio:</p>
<blockquote><p><em>ratio</em> = <em>player slots</em> - ((<em>percent</em> / 100) * <em>player slots</em>)</p></blockquote>
<p>Decimals are stripped from the ratio because it's a integer value.</p>
<p>Options:<br />
0 or a positive number up to max server slots</p></td>
</tr>
<tr>
<td class="valueoption">absolute</td>
<td>Absolute number of zombies infected. If the number is negative, it will
keep that many humans (inversed infection). 5 will infect five humans, while
-5 will infect everyone and <em>keep</em> five humans.</td>
</tr>
</table></blockquote>
</td>
</tr>
<tr>
<td class="commandheader">zr_infect_mzombie_min</td>
<td class="commandheader">1</td>
</tr>
<tr>
<td class="indent" colspan="2">
<p>Minimum number of mother zombies. Only used by range mode. Must be above zero.</p>
</td>
</tr>
<tr>
<td class="commandheader">zr_infect_mzombie_max</td>
<td class="commandheader">3</td>
</tr>
<tr>
<td class="indent" colspan="2">
<p>Maximum number of mother zombies. Only used by range mode. Must be above zero.</p>
</td>
</tr>