//
// P.A.M. version 1.04a (Project Ares Mod)
// Joint CAL/TWL/UGS/OGL/STA/CLANBASE/Pub Competition Mod
// (c) Garetjax
// Feb. 04, 2004
//
// Email:  Garetjax@fpscentral.com
// IRC: #vibclan on Gamesnet
//
// Post bugs or new feature requests at PAM Forums on callofduty.org
// http://www.callofduty.org/forums/forumdisplay.php?s=&forumid=85
//
// Thanks to scorpionmidget, poolermaster, monkster-x, and io.roc, whose code I used or modified for killcam, speclock, and weapons limits.  Also thanks to COV|Jesus for the sniper fix.
//
// Thanks to Gabriel "Warwitch" David for all the voice/special effects records - they are incredible.
//
// A big shoutout to all the guys that helped beta test from VIB, HFH, and everyone else.

To install this mod copy the file zzzpamv104.pk3 into the call of duty "main" directory on the server.  Make sure you remove all other mods on the server.  PAM is now a client side mode so you need
PAM in your pc's cod\main directory as well - use the same zzzpamv104.pk3 file that is put on the server.
 
This mod automatically sets your server up for CAL or TWL or other league rules by simply setting a cvar pam_mode to either cal or twl etc. and doing a map_restart.
NO special server configs need to be run.

Readyup is used and the match does not start until all players readyup by hitting their use key (default use key is F). At halftime teams need to readyup again and then they automatically switch sides.

There is also a pub mode (set pam_mode pub) that you can use with your current server config or any server config you want. 

Version 1.04a
------------
- Fixed speclock bug
- Fixed OGL and STA League settings
- Added cvar sv_axisgoat  0 no axisgoat, 1 axisgoat when kill is made by pummeling

Version 1.04
------------
- Added support for the COD 1.2 patch
- Fixed problem in PUB mode where if someone joined the server during warmup they would go into readyup mode
- Fixed problem where if during warmup a bomb was defused the score would be updated and next round would start
- Added "Allies Left Axis Left" on the screen to the left of the game clock - this option will use a cvar for off/on.
- Added support for SOTF, OGL, and STA

New Cvar:
sv_playersleft	- 0 off, 1 on to display allies left, axis left next to gameclock

New options for pam_mode:

SOTF 		- Survival of The Fittest Tournament
OGL		- OGL League
STA		- Stronger Than All Leauge



Version 1.03
------------
- Fixed CAL Sniper Limit Bug


Version 1.02
------------
- Fixed weapons limits that only affected twl_ladder mode

Version 1.01
------------
- Fixed problems with CAL mode or TWL mode not setting correct rules - ie if pub mode had panzer on switching to twl mode did not turn panzer off
- Updated graphics - The mode you are in now shows in the upper left corner and the pam version shows in the upper right corner
- Removed weapons limits for cal and twl that were set to 6 - snipers are still set to 2
- Added modes for ClanBase Ladders, TWL Ladders, and UGS


Version 1.01 - Dec. 28, 2003 New CVARS
----------------------
No new cvars, however new options for pam_mode

pam_mode - can be set to the following (name of the mode must be all lowercase)

pub 		- this is the default
cal 		- for cal league
twl 		- for twl league
ugs 		- for ugs league
cb_ladder 	- for clanbase ladder
twl_ladder 	- for twl ladder





Pub mode allows you to use any cvars you want in your server config. Here are the cvars pam adds:

Version 1.0 Dec. 21, 2003 CVARS
-----------------

pam_mode - cal, twl, or pub
scr_killcam - 0 killcam off, 1 killcam on
scr_speclock - 0 no team speclock, 1 teams are speclocked
g_matchwarmuptime - clock timer before match begins after a map restart
g_roundwarmuptime - clock timer between rounds
g_matchintermission - clock timer for intermission
sv_noDropSniper - 1 can't drop sniper rifle when player is dead
sv_alliedSniperLimit - allied sniper limit
sv_alliedSMGLimit - allied smg limit
sv_alliedMGLimit - allied mg limit
sv_axisSniperLimit - axis sniper limit
sv_axisSMGLimit - axis smg limit
sv_axisMGLimit - axis mg limit
g_teamswitch - teamswitch mode (round, score, none) If this is set when you are in pam_mode pub teams will switch sides at halftime. If you set it to round then after roundlimit is reached teams will switch sides. If you set it to score than after scorelimit is reached teams will switch sides. Note that players will not use readyup after the first half, instead for pub mode they use the matchintermission time clock.








