//
// P.A.M. version 1.05a (Project Ares Mod)
// COD Competition Mod
// (c) Garetjax
// May. 19, 2004
//
// Email:  Garetjax@garetgg.com
// IRC: #pam or #vibclan on Gamesnet
// Website:  www.garetgg.com
//
// Post bugs or new feature requests at PAM Forums at www.garetgg.com
//
//
// Thanks to bullet-worm and monkster-x for help with some coding ideas and rudedog for messagecenter.
//
// 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.

Since some people are having problems installing pam as a true mod you can install it 2 ways, either the old way ie just putting it in the main folder or installing it as a true mod using the directions below.
The advantage of using it as a true mode in its own directory is that you don't have to worry about it conflicting with other mods you have installed.  Also it will show up in ASE and other browsers as they gametype PAM.

Note make sure you copy over all the rules files, not just the ones for the leagues you play in or pam will not function.
 
Old Way Server Install (still works)
1.  Unzip pamv105.zip file.  
2.  Move all the unzipped files to your servers call of duty /main directory (except pbsv.cfg)
3.  Move the file pbsv.cfg to your server's pb directory and edit web config if desired.
4.  Copy your server config to the /main directory.

True Mod Server Install:

1.  Unzip pamv105.zip file.  Create a PAM directory on your server below the Call of Duty directory - like /Call of Duty/pam.
2.  Move all the unzipped files to your servers call of duty /main directory (except pbsv.cfg)
3.  Add +set fs_game pam to your command that starts up the server
4.  Remove the old pam files from your servers cod main directory.
5.  For Linux copy game.mp.i386.so from your cod main directory to the pam directory. For windows copy game.mp.x86.dll to the pam directory.
6.  Copy your server config to the pam directory.
7.  Move the file pbsv.cfg to your server's pb directory and edit web config if desired.
 
Client Install - since servers may be installed either way do both steps for client install.

1.  Unzip pamv105.zip file.  Create a PAM directory on your pc below the Call of Duty directory - like /Call of Duty/pam
2.  copy the zzzpamv105_sounds file to the pam directory on your pc.


 
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.05a
------------------
Changed stats so that if stats are off specs still see them.  Same for showing shot hit locations.  Also some rule updates.

version 1.05 Final
------------------
PAM 1.05 New Features:

League Rules Plugins
--------------------  

Each League has their own pk3 file for their rules.  Leagues can update their rules by editing their pk3 file and PAM will execute them whenever their mode is invoked by /rcon pam_mode league and then /rcon map_restart.  I have included the CAL/TWL pb config in each ruleset.  The following leagues/ladders/tournaments are supported by PAM:

PAM Mode 		League


mohi			Mohi League
twl_ladder		TWL Ladder
twl			TWL League	
ogl			OGL League
esl			ESL League
ga			Game Arena
sg			SG League
ed			ED League
pg			PG League
bl			BL League
ccodl			CCODL League
sta			STA League
cal			CAL League
ig			IG League
cb_ladder		Clan Base Ladder
ugs			UGS League
sotf			SOTF Tournament
cb_opencup		ClanBase Open Cup
gotfrag			GotFrag Tournament
r60			r60 League
vg			Visual Gaming Tournament
proveg			Proving Grounds
jolt			Jolt League
 

Unready added to work with Readyup
----------------------------------

Hit your use key in readyup mode to switch between being ready and unready.

Show Hits
---------

Displays where you hit a player in lower left hand corner.  This can be toggled off or on using the cvar sv_showshots (0 off, 1 on)

PAMStats
--------

PAMStats tracks 34 different player stats.  It can be configured to display stats after each round or only at halftime and at the end of the game.  Unfortunately due to limitations with the game I cannot print to the console without also printing to the screen, so stats scroll by when printed out.  You should view stats using the console.  Stats are also printed out to the servers log file.  PAMStats prints out summary stats for each round which lists each team sorted by KD/Ratio.  Then detail stats are printed out for each player.  If you dont want overtime stats printed out every round set sv_showstats = 0 and stats will only be printed out at halftime and at the end of the game.  PAMStats also prints out match summary and detail stats at halftime and at the end of the game.

Overtime
--------

PAM now has the ability to do overtime.  Overtime rules are entered into a leagues rule pk3 file and you can set up any type of overtime rules you want.  You can use the following cvars to set up pam for overtime off/on, 1 overtime then a tie game if there is a tie after that overtime, or unlimited overtimes until someone wins.  The way overtime works is that if a match ends in a tie and overtime mode is on, PAM loads the overtime rules from the league rules pk3 and the map restarts.  You will see Overtime displayed in the upper left hand corner below the league mode so you know you are playing overtime.  

g_ot 			(0 overtime off, 1 overtime on)
g_allowtie	(0 no ties allowed so keep having overtimes until a winner, 1 tie allowed after playing 1 OT)

New Scoreboard
--------------

The scoreboard has been enhanced to show first and second half scores.


New Pub mode
------------

There is a pub mode rules file where you set up your rules for pub play.  This is the default setting for your server  you can always run pub mode by doing /rcon pam_mode pub and then /rcon map_restart

Limited TDM support
-------------------
I fixed the scoring in TDM regarding TeamKills and Suicides.  Just run tdm as you normally would. Full pam support will be added later.

Version 1.05beta2
------------
- Fixed spec bugs
- Added rudedog's message center for pub mode
- Added individual pk3 files for league plugins so they can update their rules by themselves
- Added autoteam lock, players cannot switch teams once match starts except while in pub mode

New cvars for rudedog's message center:

sv_messagecenter - if set to 1 and also pam_mode = "pub" message center will be activated.
sv_message1 
sv_message2
sv_message3
sv_message4
sv_message5
sv_message6
sv_message7
sv_message8
sv_message9
sv_msgdelay - Delay between messages in seconds

Options for pam_mode: All are done in lower case when doing /rcon pam_mode cal   etc

sotf 		- Survival of The Fittest Tournament
sta		- Stronger Than All League
cal		- CAL League
twl		- TWL League
cb_ladder	- ClanBase Ladder
ugs		- UGS League
twl_ladder	- TWL Ladder
ogl		- OGL League
cb_opencup	- ClanBase Spring Cup
ga		- GamesArena
sg		- SquadGames
gotfrag	- Gotfrag


Version 1.05beta1
------------
- Added CVAR sv_warmupmines o off/ 1 on
- Fixed 2 spec exploits
- Changed warmup so teams switch sides and then readyup
- Removed old sniper fix
- Updated league rules for several leagues and added GameArena,SquadGames, and gotfrag


Version 1.04b
------------
- Added CVAR sv_pamsounds o off/ 1 on for all pam sounds except the goat
- Made changes to CAL config - roundlength is now 3, axis goat, pam allies win, axis win, and round draw are off
- Fixed OGL settings
- Fixed UGS settings

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.








