Program: CPU Stat 
Version: 1.01
Author: James Couzens (Prodigy) (jcouzens@uhfco.net)
Info: A MetaMod plugin for Half-Life Mods 
Date: April 27, 2001

IRC: #metamod on irc.games.net
WWW: http://modNS.org

This was written primarily for Natural Selection for beta testing 
purposes, but it has use in many other mods.  In particular for people
renting servers, who want to be able to monitor the cpu use of the
machine they are renting and make sure they aren't being over sold.

This is a fully cross platform plugin.  However, in "windows"it will 
ONLY work with windows NT.  So don't cry when it won't work in win98/ME.

Files:
------

- Compiled against Will Day's HLSDK v2.3 and MetaMod 1.15.1

cpustat_ns_mm_i586.so - Linux Shared Object for Natural Selection
cpustat_mm_i586.so    - Linux Shared Object for other mods
cpustat_ns_mm.dll     - WinNT Dynamic Link Library for Natural Selection
cpustat_mm.dll        - WinNT Dynamic Link Library for other mods

Pentium 4 optimized binaries can be found in the p4_optimized directory,
these are for win32 only at the moment.

Compiler flags:
---------------

WITH_NS - for Natural Selection
WITH_FREEBSD - Yep works with FreeBSD (need linprocfs)
DEBUG - Enable debuggering (shows up in your logs) 

MM Vars: 
--------

cpustat_freq <number>
 : x - How often you want to get updates
 : (default is 1 for every mod except NS, which defaults to 6)

cpustat_numcpu <number>
 : x - How many cpu's are in your machine
 : (default is 1)

cpustat_display <number>
 : 0 - use "pretty_say" method (for NS will use autohelp subsystem)
 : 1 - use "PRINT_HUDCHAT" method (shows up like spoken text)

cpustat_passwd <string>
 : the password used to protect the "/cpu" command, the default password
 : is "modns" without quotes.

SysOp Commands:
---------------

cpustat <userid> <switch>
 : 0 - Turn the display off for <userid>
 : 1 - Turn the display on for <userid>

Client Commands:
----------------

say/say_team /cpu <password>
 : /cpu <password> (default password is modns, this can be changed by
 : the "cpustat_passwd" cvar)
 : Will either turn the display of cpu stats on or off
 : (default is off)
 : This is an alias command for SysOp command "cpustat"

CHANGE LOG:
-----------

1.01 - Update
=========================================================================

New cvars:
----------

- cpustat_display - set display modes
= cpustat_passwd - set password to protect /cpu command

Changes:
--------

- /cpu command now requires password to function, and clients can no
  longer see when other clients use this command (to protect password)

- startFrame() completely reworked to be optimized, its much more
  efficient now, not that you might notice, but it is!

1.00 - Initial Release
==========================================================================

Thanks to: 
 : hullu - twice he helped me find stupid bugs I had added
 : voogru & friends - for the win NT sample code
 : bugblatter - optimization suggestions

