doc/html/wdmisc.html
changeset 0 d15304fcb7a7
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/doc/html/wdmisc.html	Tue Apr 06 07:36:14 2004 +0000
     1.3 @@ -0,0 +1,48 @@
     1.4 +<!-- vi: set ts=4 sw=4 : -->
     1.5 +<!-- vim: set tw=75 : -->
     1.6 +
     1.7 +<HTML>
     1.8 +<head>
     1.9 +<title>Metamod WDMisc Plugin</title>
    1.10 +</head>
    1.11 +<body>
    1.12 +
    1.13 +<h1>WDMisc plugin
    1.14 +</h1>
    1.15 +
    1.16 +<p> This is a simple plugin that I use as a testbed for various features
    1.17 +and other things I need to try from a plugin.
    1.18 +
    1.19 +<p> It currently provides two features:
    1.20 +
    1.21 +<ul>
    1.22 +
    1.23 +   <p><li> a cvar "bounce" that, if set to 1, will exit the server at map
    1.24 +   change.  I use this when I need to shutdown or the server, and don't
    1.25 +   want to kill it in the middle of a map, nor watch the server constantly
    1.26 +   until the timelimit expires.
    1.27 +
    1.28 +   <p><li> it prints a centersay to all the players whenever someone in
    1.29 +   Counter-Strike plants the bomb.  This was done basically as a
    1.30 +   proof-of-concept for catching certain game-events that aren't otherwise
    1.31 +   triggered by the HL API.  It works only by examining every log message
    1.32 +   that the server generates, and checking to see if it includes the string
    1.33 +   indicating the particular event in question (in this case
    1.34 +   "Planted_The_Bomb").  
    1.35 +   
    1.36 +   <p>Although this works, it is really a rather <i><b>poor</b></i>
    1.37 +   solution to the problem, as it assumes a <i><b>lot</b></i> of
    1.38 +   string-compares, which <i>can</i> seriously degrade the performance of
    1.39 +   the server.  I did try to take as many short-cuts as reasonable in the
    1.40 +   code, to decrease the amount of string-comparing going on, which makes
    1.41 +   the code a bit less readable than doing just a "strstr" on the log line.
    1.42 +
    1.43 +</ul>
    1.44 +
    1.45 +Other features to be added/removed in the future...
    1.46 +
    1.47 +<p>
    1.48 +<hr>
    1.49 +
    1.50 +</body>
    1.51 +</HTML>