Reupload after bitbucket wipe

This commit is contained in:
Chris Lynch
2013-12-25 18:43:29 -05:00
commit 965453909e
5942 changed files with 99045 additions and 0 deletions

View File

@ -0,0 +1,76 @@
ALTER TABLE `hlstats_Actions`
DROP KEY `gamecode`,
ADD UNIQUE KEY `gamecode` (`code`,`game`,`object`,`event`,`team`);
INSERT IGNORE INTO `hlstats_Actions` (`game`, `code`, `reward_player`, `reward_team`, `team`, `description`, `for_PlayerActions`, `for_PlayerPlayerActions`, `for_TeamActions`, `for_WorldActions`, `count`, `object`, `event`) VALUES
('ff', 'headshot', 1, 0, '', 'Headshot kill', '1', '', '', '', 0, NULL, NULL),
('hidden', 'kill_streak_2', 1, 0, '', 'Double Kill (2 kills)', '1', '', '', '', 0, NULL, NULL),
('hidden', 'kill_streak_3', 2, 0, '', 'Triple Kill (3 kills)', '1', '', '', '', 0, NULL, NULL),
('hidden', 'kill_streak_4', 3, 0, '', 'Domination (4 kills)', '1', '', '', '', 0, NULL, NULL),
('hidden', 'kill_streak_5', 4, 0, '', 'Rampage (5 kills)', '1', '', '', '', 0, NULL, NULL),
('hidden', 'kill_streak_6', 5, 0, '', 'Mega Kill (6 kills)', '1', '', '', '', 0, NULL, NULL),
('hidden', 'kill_streak_7', 6, 0, '', 'Ownage (7 kills)', '1', '', '', '', 0, NULL, NULL),
('hidden', 'kill_streak_8', 7, 0, '', 'Ultra Kill (8 kills)', '1', '', '', '', 0, NULL, NULL),
('hidden', 'kill_streak_9', 8, 0, '', 'Killing Spree (9 kills)', '1', '', '', '', 0, NULL, NULL),
('hidden', 'kill_streak_10', 9, 0, '', 'Monster Kill (10 kills)', '1', '', '', '', 0, NULL, NULL),
('hidden', 'kill_streak_11', 10, 0, '', 'Unstoppable (11 kills)', '1', '', '', '', 0, NULL, NULL),
('hidden', 'kill_streak_12', 11, 0, '', 'God Like (12+ kills)', '1', '', '', '', 0, NULL, NULL);
UPDATE `hlstats_Actions` SET `for_PlayerActions`='0', `for_PlayerPlayerActions`='0', `for_TeamActions`='1', `for_WorldActions`='0' WHERE `game`='tf' AND `code` IN ('Round_Win','Mini_Round_Win');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`, `d_winner_id`, `d_winner_count`) VALUES
('W', 'hidden', 'fn2000', 'FN2000 Assault Rifle', 'kills with FN2000 Assault Rifle', NULL, NULL),
('W', 'hidden', 'p90', 'FN P90 Sub Machine Gun', 'kills with FN P90 Sub Machine Gun', NULL, NULL),
('W', 'hidden', 'shotgun', 'Remington 870 MCS Shotgun', 'kills with Remington 870 MCS Shotgun', NULL, NULL),
('W', 'hidden', 'fn303', 'FN303 Less Lethal Launcher', 'kills with FN303 Less Lethal Launcher', NULL, NULL),
('W', 'hidden', 'pistol', 'FN FiveSeven Pistol', 'kills with FN FiveSeven Pistol', NULL, NULL),
('W', 'hidden', 'pistol2', 'FNP-9 Pistol', 'kills with FNP-9 Pistol', NULL, NULL),
('W', 'hidden', 'knife', 'Kabar D2 Knife', 'kills with Kabar D2 Knife', NULL, NULL),
('W', 'hidden', 'grenade_projectile', 'Pipe Bomb', 'kills with Pipe Bomb', NULL, NULL),
('W', 'hidden', 'physics', 'Physics', 'kills with Physics', NULL, NULL);
INSERT IGNORE INTO `hlstats_Games` (`code`, `name`, `hidden`) VALUES
('hidden','The Hidden: Source','1');
INSERT IGNORE INTO `hlstats_Options` (`keyname`, `value`) VALUES
('gamehome_show_awards', '0');
INSERT IGNORE INTO `hlstats_Ranks` (`image`, `minKills`, `maxKills`, `rankName`, `game`) VALUES
('recruit',0,49,'Recruit','hidden'),
('private',50,99,'Private','hidden'),
('private_firstclass',100,149,'Private First Class','hidden'),
('second_lieutenant',150,249,'2nd Lieutenant','hidden'),
('first_lieutenant',250,499,'1st Lieutenant','hidden'),
('captain',500,749,'Captain','hidden'),
('major',750,999,'Major','hidden'),
('lieutenant_colonel',1000,1249,'Lieutenant Colonel','hidden'),
('colonel',1250,1749,'Colonel','hidden'),
('brigadier_general',1750,2499,'Brigardier General','hidden'),
('major_general',2500,4999,'Major General','hidden'),
('lieutenant_general',5000,7499,'Lieutenant General','hidden'),
('general',7500,9999,'General','hidden'),
('general_5Star',10000,14999,'5 Star General','hidden'),
('ubersoldat',15000,999999999,'The Ubersoldat','hidden');
INSERT IGNORE INTO `hlstats_Teams` (`game`, `code`, `name`, `hidden`, `playerlist_bgcolor`, `playerlist_color`, `playerlist_index`) VALUES
('hidden','Hidden','Subject 617', '0', '#F7FF89', '#808700', 1),
('hidden','IRIS','I.R.I.S.', '0', '#D2E8F7','#0080C0', 2),
('hidden','Spectator','Spectator','0', '#D5D5D5','#050505', 0);
UPDATE `hlstats_Teams` SET `code`='#FF_TEAM_UNASSIGNED' WHERE `code`='SPECTATOR' and `game`='ff';
INSERT IGNORE INTO `hlstats_Weapons` (`game`, `code`, `name`, `modifier`, `kills`, `headshots`) VALUES
('ff', 'weapon_umbrella','Umbrella', 10.00, 0, 0),
('ff', 'grenade_gas','Gas Grenade', 1.00, 0, 0),
('ff', 'weapon_tommygun', 'Tommygun', 1.00, 0, 0),
('ff', 'weapon_nailgun', 'Nailgun', 1.00, 0, 0),
('hidden', 'fn2000','FN2000 Assault Rifle',1.50, 0, 0),
('hidden', 'p90','FN P90 Sub Machine Gun',2.00, 0, 0),
('hidden', 'shotgun','Remington 870 MCS Shotgun',2.00, 0, 0),
('hidden', 'fn303','FN303 Less Lethal Launcher',2.00, 0, 0),
('hidden', 'pistol','FN FiveSeven Pistol',3.00, 0, 0),
('hidden', 'pistol2','FNP-9 Pistol',3.00, 0, 0),
('hidden', 'knife','Kabar D2 Knife',2.50, 0, 0),
('hidden', 'grenade_projectile','Pipe Bomb',2.00, 0, 0),
('hidden', 'physics','Physics',3.00, 0, 0);

View File

@ -0,0 +1,3 @@
INSERT IGNORE INTO `hlstats_Actions` (`game`, `code`, `reward_player`, `reward_team`, `team`, `description`, `for_PlayerActions`, `for_PlayerPlayerActions`, `for_TeamActions`, `for_WorldActions`, `count`, `object`, `event`) VALUES
('dods', 'domination', 7, 0, '', 'Domination', '1', '', '', '', 0, NULL, NULL),
('dods', 'revenge', 5, 0, '', 'Revenge', '1', '', '', '', 0, NULL, NULL);

View File

@ -0,0 +1,226 @@
DELETE FROM `hlstats_Actions` WHERE `game`='tf' and `code` in ('Round_Win','Mini_Round_Win') and `team`='red';
UPDATE `hlstats_Actions` SET `team`='' WHERE `game`='tf' and `code` in ('Round_Win','Mini_Round_Win') and `team`='blue';
INSERT IGNORE INTO `hlstats_Actions` (`game`, `code`, `reward_player`, `reward_team`, `team`, `description`, `for_PlayerActions`, `for_PlayerPlayerActions`, `for_TeamActions`, `for_WorldActions`, `count`, `object`, `event`) VALUES
('tf', 'Round_Win', 0, 10, '', 'Round Win', '', '', '1', '', 0, NULL, NULL),
('tf', 'Mini_Round_Win', 0, 5, '', 'Mini-Round Win', '', '', '1', '', 0, NULL, NULL),
('tf', 'sandvich', 0, 0, '', 'Ate a Sandvich', '1', '', '', '', 0, NULL, NULL),
('zps', 'kill_streak_2', 1, 0, '', 'Double Kill (2 kills)', '1', '', '', '', 0, NULL, NULL),
('zps', 'kill_streak_3', 2, 0, '', 'Triple Kill (3 kills)', '1', '', '', '', 0, NULL, NULL),
('zps', 'kill_streak_4', 3, 0, '', 'Domination (4 kills)', '1', '', '', '', 0, NULL, NULL),
('zps', 'kill_streak_5', 4, 0, '', 'Rampage (5 kills)', '1', '', '', '', 0, NULL, NULL),
('zps', 'kill_streak_6', 5, 0, '', 'Mega Kill (6 kills)', '1', '', '', '', 0, NULL, NULL),
('zps', 'kill_streak_7', 6, 0, '', 'Ownage (7 kills)', '1', '', '', '', 0, NULL, NULL),
('zps', 'kill_streak_8', 7, 0, '', 'Ultra Kill (8 kills)', '1', '', '', '', 0, NULL, NULL),
('zps', 'kill_streak_9', 8, 0, '', 'Killing Spree (9 kills)', '1', '', '', '', 0, NULL, NULL),
('zps', 'kill_streak_10', 9, 0, '', 'Monster Kill (10 kills)', '1', '', '', '', 0, NULL, NULL),
('zps', 'kill_streak_11', 10, 0, '', 'Unstoppable (11 kills)', '1', '', '', '', 0, NULL, NULL),
('zps', 'kill_streak_12', 11, 0, '', 'God Like (12+ kills)', '1', '', '', '', 0, NULL, NULL),
('aoc', 'kill_streak_2', 1, 0, '', 'Double Kill (2 kills)', '1', '', '', '', 0, NULL, NULL),
('aoc', 'kill_streak_3', 2, 0, '', 'Triple Kill (3 kills)', '1', '', '', '', 0, NULL, NULL),
('aoc', 'kill_streak_4', 3, 0, '', 'Domination (4 kills)', '1', '', '', '', 0, NULL, NULL),
('aoc', 'kill_streak_5', 4, 0, '', 'Rampage (5 kills)', '1', '', '', '', 0, NULL, NULL),
('aoc', 'kill_streak_6', 5, 0, '', 'Mega Kill (6 kills)', '1', '', '', '', 0, NULL, NULL),
('aoc', 'kill_streak_7', 6, 0, '', 'Ownage (7 kills)', '1', '', '', '', 0, NULL, NULL),
('aoc', 'kill_streak_8', 7, 0, '', 'Ultra Kill (8 kills)', '1', '', '', '', 0, NULL, NULL),
('aoc', 'kill_streak_9', 8, 0, '', 'Killing Spree (9 kills)', '1', '', '', '', 0, NULL, NULL),
('aoc', 'kill_streak_10', 9, 0, '', 'Monster Kill (10 kills)', '1', '', '', '', 0, NULL, NULL),
('aoc', 'kill_streak_11', 10, 0, '', 'Unstoppable (11 kills)', '1', '', '', '', 0, NULL, NULL),
('aoc', 'kill_streak_12', 11, 0, '', 'God Like (12+ kills)', '1', '', '', '', 0, NULL, NULL),
('aoc', 'headshot', 2, 0, '', 'Headshot/Decapitate Kill', '1', '', '', '', 0, NULL, NULL);
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`, `d_winner_id`, `d_winner_count`) VALUES
('O', 'tf', 'sandvich', 'Hungry Hungry Heavy', 'sandviches eaten.', NULL, NULL),
('W', 'zps', 'arms', 'Armed and Dangerous', 'kills with Zombie Arms', NULL, NULL),
('W', 'zps', 'carrierarms', 'Carry on...', 'kills with Carrier Arms', NULL, NULL),
('W', 'zps', 'ak47', 'AK-47', 'kills with AK-47', NULL, NULL),
('W', 'zps', 'mp5', 'MP5', 'kills with MP5', NULL, NULL),
('W', 'zps', 'revolver', 'Revolver', 'kills with Revolver', NULL, NULL),
('W', 'zps', 'glock', 'Glock 17', 'kills with Glock 17', NULL, NULL),
('W', 'zps', 'glock18c', 'Glock 18c', 'kills with Glock 18c', NULL, NULL),
('W', 'zps', 'ppk', 'PPK', 'kills with PPK', NULL, NULL),
('W', 'zps', 'usp', 'H & K USP', 'kills with H & K USP', NULL, NULL),
('W', 'zps', '870', 'Rem. 870', 'kills with Rem. 870', NULL, NULL),
('W', 'zps', 'supershorty', 'Super Shorty', 'kills with Super Shorty', NULL, NULL),
('W', 'zps', 'grenade_frag', 'Grenade', 'kills with Grenades', NULL, NULL),
('W', 'zps', 'sledgehammer', 'Sledgehammer', 'kills with Sledgehammer', NULL, NULL),
('W', 'zps', 'crowbar', 'Hello, I\'m Gordon Freeman', 'kills with Crowbar', NULL, NULL),
('W', 'zps', 'chair', 'Sorry, I thought this was \"pro\" wrestling', 'kills with Chair', NULL, NULL),
('W', 'zps', 'keyboard', 'Keyboard', 'kills with Keyboard', NULL, NULL),
('W', 'zps', 'plank', 'Plank', 'kills with Plank', NULL, NULL),
('W', 'zps', 'shovel', 'Grave Digger', 'kills with Shovel', NULL, NULL),
('W', 'zps', 'golf', 'Fore!', 'kills with Golf Club', NULL, NULL),
('W', 'zps', 'machete', 'Cuttin\' em Down', 'kills with Machete', NULL, NULL),
('W', 'zps', 'fryingpan', 'Frying Pan', 'kills with Frying Pan', NULL, NULL),
('W', 'zps', 'spanner', 'Wrench', 'kills with Wrench', NULL, NULL),
('W', 'zps', 'axe', 'Axe', 'kills with Axe', NULL, NULL),
('W', 'zps', 'tireiron', 'Tire Iron', 'kills with Tire Iron', NULL, NULL),
('W', 'zps', 'hammer', 'Hammer', 'kills with Hammer', NULL, NULL),
('W', 'zps', 'broom', 'Broom', 'kills with Broom', NULL, NULL),
('W', 'zps', 'pot', 'Pot', 'kills with Pot', NULL, NULL),
('W', 'zps', 'racket', 'Tennis Racket', 'kills with Tennis Racket', NULL, NULL),
('W', 'aoc', 'flamberge', 'Flamberge', 'kills with Flamberge', NULL, NULL),
('W', 'aoc', 'longsword', 'Longsword', 'kills with Longsword', NULL, NULL),
('W', 'aoc', 'halberd', 'Knights Halberd', 'kills with Knights Halbred', NULL, NULL),
('W', 'aoc', 'dagger', 'Daggers', 'kills with Dual Daggers', NULL, NULL),
('W', 'aoc', 'flamberge_kiteshield', 'Flamberge & Kite Shield', 'kills with Flamberge & Kite Shield', NULL, NULL),
('W', 'aoc', 'sword2', 'Shortsword', 'kills with Shortsword', NULL, NULL),
('W', 'aoc', 'warhammer', 'Warhammer', 'kills with Warhammer', NULL, NULL),
('W', 'aoc', 'mace', 'Mace', 'kills with Mace', NULL, NULL),
('W', 'aoc', 'mace_buckler', 'Mace & Buckler', 'kills with Mace & Buckler', NULL, NULL),
('W', 'aoc', 'sword01_evil_shield', 'Mason Broadsword & Shield', 'kills with Mason Broadsword & Shield', NULL, NULL),
('W', 'aoc', 'crossbow', 'Crossbow', 'kills with Crossbow', NULL, NULL),
('W', 'aoc', 'longbow', 'Longbow', 'kills with Longbow', NULL, NULL),
('W', 'aoc', 'longsword_kiteshield', 'Longsword & Kite Shield', 'kills with Longsword & Kite Shield', NULL, NULL),
('W', 'aoc', 'sword01_good_shield', 'Knights Broadsword & Shield', 'kills with Knights Broadsword & Shield', NULL, NULL),
('W', 'aoc', 'onehandaxe', 'Hatchet', 'kills with Hatchet', NULL, NULL),
('W', 'aoc', 'doubleaxe', 'Battle Axe', 'kills with Battle Axe', NULL, NULL),
('W', 'aoc', 'flail_evil_shield', 'Mason Flail & Shield', 'kills with Mason Flail & Shield', NULL, NULL),
('W', 'aoc', 'flail_good_shield', 'Knights Flail & Shield', 'kills with Knights Flail & Shield', NULL, NULL),
('W', 'aoc', 'thrown_spear', 'Javelin', 'kills with Javelin', NULL, NULL),
('W', 'aoc', 'shortsword', 'Spiked Mace', 'kills with Spiked Mace', NULL, NULL),
('W', 'aoc', 'spear_buckler', 'Knights Spear & Buckler', 'kills with Knights Spear & Buckler', NULL, NULL),
('W', 'aoc', 'spikedmace_buckler', 'Spiked Mace & Buckler', 'kills with Spiked Mace & Buckler', NULL, NULL),
('W', 'aoc', 'dagger2', 'Dagger', 'kills with Dagger', NULL, NULL),
('W', 'aoc', 'mtest', 'Footman Longsward', 'kills with Footman Longsword', NULL, NULL),
('W', 'aoc', 'thrown_dagger2', 'Thrown Dagger', 'kills with Thrown Dagger', NULL, NULL),
('W', 'aoc', 'spear_buckler2', 'Spiked Mace & Buckler', 'kills with Spiked Mace & Buckler', NULL, NULL),
('W', 'aoc', 'evil_halberd', 'Mason Halberd', 'kills with Mason Halberd', NULL, NULL),
('W', 'aoc', 'env_explosion', 'Fire', 'kills with Fire', NULL, NULL),
('W', 'aoc', 'oilpot', 'Oil Pot', 'kills with Oil Pot', NULL, NULL),
('O', 'aoc', 'headshot', 'Headshot/Decapitation', 'Headshots and Decapitations', NULL, NULL);
INSERT IGNORE INTO `hlstats_Games` (`code`, `name`, `hidden`) VALUES
('zps','Zombie Panic! Source','1'),
('aoc','Age of Chivalry','1');
DELETE FROM `hlstats_PerlConfig` WHERE `parameter` IN ('HLStatsXCountryMaster','MasterBanlistBantime');
DELETE FROM `hlstats_PerlConfig_Default` WHERE `parameter` IN ('HLStatsXCountryMaster','MasterBanlistBantime');
INSERT IGNORE INTO `hlstats_Ranks` (`image`, `minKills`, `maxKills`, `rankName`, `game`) VALUES
('recruit',0,49,'Recruit','zps'),
('private',50,99,'Private','zps'),
('private_firstclass',100,149,'Private First Class','zps'),
('second_lieutenant',150,249,'2nd Lieutenant','zps'),
('first_lieutenant',250,499,'1st Lieutenant','zps'),
('captain',500,749,'Captain','zps'),
('major',750,999,'Major','zps'),
('lieutenant_colonel',1000,1249,'Lieutenant Colonel','zps'),
('colonel',1250,1749,'Colonel','zps'),
('brigadier_general',1750,2499,'Brigardier General','zps'),
('major_general',2500,4999,'Major General','zps'),
('lieutenant_general',5000,7499,'Lieutenant General','zps'),
('general',7500,9999,'General','zps'),
('general_5Star',10000,14999,'5 Star General','zps'),
('ubersoldat',15000,999999999,'The Ubersoldat','zps'),
('recruit',0,49,'Recruit','aoc'),
('private',50,99,'Private','aoc'),
('private_firstclass',100,149,'Private First Class','aoc'),
('second_lieutenant',150,249,'2nd Lieutenant','aoc'),
('first_lieutenant',250,499,'1st Lieutenant','aoc'),
('captain',500,749,'Captain','aoc'),
('major',750,999,'Major','aoc'),
('lieutenant_colonel',1000,1249,'Lieutenant Colonel','aoc'),
('colonel',1250,1749,'Colonel','aoc'),
('brigadier_general',1750,2499,'Brigardier General','aoc'),
('major_general',2500,4999,'Major General','aoc'),
('lieutenant_general',5000,7499,'Lieutenant General','aoc'),
('general',7500,9999,'General','aoc'),
('general_5Star',10000,14999,'5 Star General','aoc'),
('ubersoldat',15000,999999999,'The Ubersoldat','aoc');
INSERT IGNORE INTO `hlstats_Roles` (`game`, `code`, `name`, `hidden`, `picked`, `kills`, `deaths`) VALUES
('ff','Engineer','Engineer','0',0,0,0),
('ff','Spy','Spy','0',0,0,0),
('ff','Soldier','Soldier','0',0,0,0),
('ff','Scout','Scout','0',0,0,0),
('ff','Demoman','Demo Man','0',0,0,0),
('ff','Sniper','Sniper','0',0,0,0),
('ff','Medic','Medic','0',0,0,0),
('ff','Pyro','Pyro','0',0,0,0),
('ff','HWGuy','HWGuy','0',0,0,0),
('ff','Civilian','Civilian','0',0,0,0);
DELETE FROM `hlstats_Servers_Config` WHERE `parameter` IN ('MasterServerData','MasterServerInterval','RawSocketSupport','RawSocketHelpNotice');
DELETE FROM `hlstats_Servers_Config_Default` WHERE `parameter` IN ('MasterServerData','MasterServerInterval','RawSocketSupport','RawSocketHelpNotice');
ALTER TABLE `hlstats_Servers`
ADD COLUMN `lat` varchar(32) NOT NULL default '',
ADD COLUMN `lng` varchar(32) NOT NULL default '',
ADD COLUMN `city` varchar(128) NOT NULL default '',
ADD COLUMN `country` varchar(128) NOT NULL default '';
INSERT IGNORE INTO `hlstats_Teams` (`game`, `code`, `name`, `hidden`, `playerlist_bgcolor`, `playerlist_color`, `playerlist_index`) VALUES
('zps','Undead','Undead', '0', '#F7FF89', '#808700', 1),
('zps','Survivor','Survivors', '0', '#D2E8F7','#0080C0', 2),
('zps','Spectator','Spectator','0', '#D5D5D5','#050505', 0),
('aoc','The Mason Order','The Mason Order','','#FFD5D5','#FF2D2D',2),
('aoc','Agathia Knights','Agathia Knights','','#D2E8F7','#0080C0',1),
('aoc','Spectator','Spectator','0', '#D5D5D5','#050505', 0);
INSERT IGNORE INTO `hlstats_Weapons` (`game`, `code`, `name`, `modifier`, `kills`, `headshots`) VALUES
('zps', 'arms','Zombie',1, 0, 0),
('zps', 'carrierarms','Carrier',1, 0, 0),
('zps', 'ak47','AK-47',1, 0, 0),
('zps', 'mp5','MP5',1, 0, 0),
('zps', 'revolver','Revolver',1, 0, 0),
('zps', 'glock','Glock 17',1, 0, 0),
('zps', 'glock18c','Glock 18c',1, 0, 0),
('zps', 'ppk','Walther PPK',1, 0, 0),
('zps', 'usp','Heckler & Kock USP',1, 0, 0),
('zps', '870','Remington 870',1, 0, 0),
('zps', 'supershorty','Mossberg Super Shorty',1, 0, 0),
('zps', 'grenade_frag','Grenade',1, 0, 0),
('zps', 'sledgehammer','Sledgehammer',1.5, 0, 0),
('zps', 'crowbar','Crowbar',1.5, 0, 0),
('zps', 'chair','Chair',1.5, 0, 0),
('zps', 'keyboard','Keyboard',1.5, 0, 0),
('zps', 'plank','Wooden Plank',1.5, 0, 0),
('zps', 'shovel','Shovel',1.5, 0, 0),
('zps', 'golf','Golf Club',1.5, 0, 0),
('zps', 'machete','Machete',1.5, 0, 0),
('zps', 'fryingpan','Frying Pan',1.5, 0, 0),
('zps', 'spanner','Wrench',1.5, 0, 0),
('zps', 'axe','Axe',1.5, 0, 0),
('zps', 'tireiron','Tire Iron',1.5, 0, 0),
('zps', 'hammer','Hammer',1.5, 0, 0),
('zps', 'broom','Broom',1.5, 0, 0),
('zps', 'pot','Pot',1.5, 0, 0),
('zps', 'world','World',1.5, 0, 0),
('zps', 'physics','Physics',1.5, 0, 0),
('zps', 'racket','Tennis Racket',1.5, 0, 0),
('zps', 'torque','Torque', 1.5, 0, 0),
('aoc', 'flamberge','Flamberge',1, 0, 0),
('aoc', 'longsword','Longsword',1, 0, 0),
('aoc', 'halberd','Knights Halberd',1, 0, 0),
('aoc', 'dagger','Dual Daggers',1, 0, 0),
('aoc', 'flamberge_kiteshield', 'Flamberge & Kite Shield', 1, 0, 0),
('aoc', 'world','World',1, 0, 0),
('aoc', 'chivalry','Chivalry',1, 0, 0),
('aoc', 'sword2','Shortsword',1, 0, 0),
('aoc', 'warhammer','Warhammer',1, 0, 0),
('aoc', 'mace','Mace',1, 0, 0),
('aoc', 'mace_buckler','Mace & Buckler',1, 0, 0),
('aoc', 'sword01_evil_shield', 'Mason Broadsword & Shield', 1, 0, 0),
('aoc', 'crossbow','Crossbow',1, 0, 0),
('aoc', 'longbow','Longbow',1, 0, 0),
('aoc', 'longsword_kiteshield', 'Longsword & Kite Shield', 1, 0, 0),
('aoc', 'sword01_good_shield', 'Knights Broadsword & Shield', 1, 0, 0),
('aoc', 'onehandaxe', 'Hatchet', 1, 0, 0),
('aoc', 'doubleaxe','Battle Axe',1, 0, 0),
('aoc', 'flail_evil_shield','Mason Flail & Shield',1, 0, 0),
('aoc', 'flail_good_shield','Knights Flail & Shield',1, 0, 0),
('aoc', 'thrown_spear', 'Javelin', 1, 0, 0),
('aoc', 'spear_buckler', 'Knights Spear & Buckler', 1, 0, 0),
('aoc', 'dagger2', 'Dagger', 1, 0, 0),
('aoc', 'mtest', 'Footman Longsword', 1, 0, 0),
('aoc', 'thrown_dagger2', 'Thrown Dagger', 1, 0, 0),
('aoc', 'spear_buckler2', 'Mason Spear & Buckler', 1, 0, 0),
('aoc', 'shortsword', 'Spiked Mace', 1, 0, 0),
('aoc', 'spikedmace_buckler','Spiked Mace & Buckler',1, 0, 0),
('aoc', 'evil_halberd', 'Mason Halberd', 1, 0, 0),
('aoc', 'env_explosion', 'Fire', 1, 4, 0),
('aoc', 'oilpot', 'Oil Pot', 1, 1, 0);

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,834 @@
UPDATE `hlstats_Actions` SET `code` = 'flagevent_defended' WHERE `code` = 'flagevent' AND `event` = 'defended' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE `hlstats_Actions` SET `code` = 'flagevent_captured' WHERE `code` = 'flagevent' AND `event` = 'captured' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE `hlstats_Actions` SET `code` = 'flagevent_dropped', `description` = 'Dropped the flag (while alive)' WHERE `code` = 'flagevent' AND `event` = 'dropped' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE `hlstats_Actions` SET `code` = 'flagevent_picked_up' WHERE `code` = 'flagevent' AND `event` = 'picked up' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE `hlstats_Actions` SET `code` = 'killedobject_obj_teleporter_exit' WHERE `code` = 'killedobject' AND `object` = 'OBJ_TELEPORTER_EXIT' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE `hlstats_Actions` SET `code` = 'killedobject_obj_teleporter_entrance' WHERE `code` = 'killedobject' AND `object` = 'OBJ_TELEPORTER_ENTRANCE' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE `hlstats_Actions` SET `code` = 'killedobject_obj_dispenser' WHERE `code` = 'killedobject' AND `object` = 'OBJ_DISPENSER' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE `hlstats_Actions` SET `code` = 'killedobject_obj_sentrygun' WHERE `code` = 'killedobject' AND `object` = 'OBJ_SENTRYGUN' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE `hlstats_Actions` SET `code` = 'killedobject_obj_attachment_sapper' WHERE `code` = 'killedobject' AND `object` = 'OBJ_ATTACHMENT_SAPPER' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE `hlstats_Actions` SET `code` = 'builtobject_obj_teleporter_exit' WHERE `code` = 'builtobject' AND `object` = 'OBJ_TELEPORTER_EXIT' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE `hlstats_Actions` SET `code` = 'builtobject_obj_teleporter_entrance' WHERE `code` = 'builtobject' AND `object` = 'OBJ_TELEPORTER_ENTRANCE' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE `hlstats_Actions` SET `code` = 'builtobject_obj_dispenser' WHERE `code` = 'builtobject' AND `object` = 'OBJ_DISPENSER' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE `hlstats_Actions` SET `code` = 'builtobject_obj_sentrygun' WHERE `code` = 'builtobject' AND `object` = 'OBJ_SENTRYGUN' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE `hlstats_Actions` SET `code` = 'builtobject_obj_attachment_sapper' WHERE `code` = 'builtobject' AND `object` = 'OBJ_ATTACHMENT_SAPPER' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE `hlstats_Actions` SET `code` = 'owner_killedobject_obj_teleporter_exit' WHERE `code` = 'owner_killedobject' AND `object` = 'OBJ_TELEPORTER_EXIT' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE `hlstats_Actions` SET `code` = 'owner_killedobject_obj_teleporter_entrance' WHERE `code` = 'owner_killedobject' AND `object` = 'OBJ_TELEPORTER_ENTRANCE' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE `hlstats_Actions` SET `code` = 'owner_killedobject_obj_dispenser' WHERE `code` = 'owner_killedobject' AND `object` = 'OBJ_DISPENSER' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE `hlstats_Actions` SET `code` = 'owner_killedobject_obj_sentrygun' WHERE `code` = 'owner_killedobject' AND `object` = 'OBJ_SENTRYGUN' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
ALTER TABLE `hlstats_Actions`
DROP KEY `gamecode`,
DROP COLUMN `object`,
DROP COLUMN `event`,
ADD UNIQUE KEY `gamecode` (`code`,`game`,`team`);
INSERT IGNORE INTO `hlstats_Actions` (`game`, `code`, `reward_player`, `reward_team`, `team`, `description`, `for_PlayerActions`, `for_PlayerPlayerActions`, `for_TeamActions`, `for_WorldActions`) VALUES
('tf', 'flagevent_dropped_death', 0, 0, '', 'Dropped the flag (on death)', '1', '', '', ''),
('tf', 'crit_kill', -1, 0, '', 'Critical Kill', '1', '', '', ''),
('tf', 'force_suicide', 0, 0, '', 'Force Suicide', '1', '', '', ''),
('tf', 'hit_by_train', 0, 0, '', 'LOL TRAIN\'D', '1', '', '', ''),
('tf', 'drowned', 0, 0, '', 'Drowned', '1', '', '', ''),
('tf', 'owner_killedobject_obj_attachment_sapper', -2, 0, '', 'Console-killed sapper', '1', '', '', ''),
('tfc','Sentry_Dismantle',3,0,'0','Dismantled Sentry Gun','0','1','0','0'),
('tfc','Dispenser_Dismantle',3,0,'0','Dismantled Dispenser','0','1','0','0'),
('l4d', 'headshot', 0, 0, '', 'Headshot Kill', '1', '', '', ''),
('l4d', 'rescued_survivor', 2, 0, '', 'Rescued Teammate', '1', '0', '0', '0'),
('l4d', 'healed_teammate', 5, 0, '', 'Healed Teammate', '1', '0', '0', '0'),
('l4d', 'revived_teammate', 3, 0, '', 'Revived Teammate', '1', '0', '0', '0'),
('l4d', 'startled_witch', -5, 0, '', 'Startled the Witch', '1', '0', '0', '0'),
('l4d', 'pounce', 6, 0, '', '(Hunter) Pounced on Survivor', '0', '1', '0', '0'),
('l4d', 'tongue_grab', 6, 0, '', '(Smoker) Tongue Grabbed Survivor', '0', '1', '0', '0'),
('l4d', 'vomit', 6, 0, '', '(Boomer) Vomited on Survivor', '0', '1', '0', '0'),
('l4d', 'killed_gas', 1, 0, '', 'Killed a Smoker', '1', '0', '0', '0'),
('l4d', 'killed_exploding', 1, 0, '', 'Killed a Boomer', '1', '0', '0', '0'),
('l4d', 'killed_hunter', 1, 0, '', 'Killed a Hunter', '1', '0', '0', '0'),
('l4d', 'killed_tank', 3, 0, '', 'Killed a Tank', '1', '0', '0', '0'),
('l4d', 'killed_witch', 3, 0, '', 'Killed a Witch', '1', '0', '0', '0'),
('l4d', 'killed_survivor', 25, 0, '', 'Incapacitated/Killed Survivor', '0', '1', '0', '0'),
('l4d', 'friendly_fire', -10, 0, '', 'Friendly Fire', '1', '0', '0', '0'),
('ff', 'sentrygun_upgraded', 1, 0, '', 'Upgraded Sentry Gun', '1', '', '', ''),
('ff', 'build_sentrygun', 1, 0, '', 'Built Sentry Gun', '1', '', '', ''),
('ff', 'build_dispenser', 1, 0, '', 'Built Dispenser', '1', '', '', ''),
('ff', 'dispenser_detonated', -1, 0, '', 'Dispenser Detonated', '1', '', '', ''),
('ff', 'sentry_detonated', -1, 0, '', 'Sentry Gun Detonated', '1', '', '', ''),
('ff', 'sentry_dismantled', -1, 0, '', 'Sentry Gun Dismantled', '1', '', '', ''),
('ff', 'dispenser_dismantled', -1, 0, '', 'Dispenser Dismantled', '1', '', '', ''),
('ff', 'build_mancannon', 1, 0, '', 'Built Jump Pad', '1', '', '', ''),
('ff', 'mancannon_detonated', -1, 0, '', 'Detonated Jump Pad', '1', '', '', ''),
('ff', 'build_detpack', 1, 0, '', 'Placed Detpack', '1', '', '', ''),
('ff', 'flag_touch', 3, 0, '', 'Flag Picked Up', '1', '', '', ''),
('ff', 'flag_capture', 3, 0, '', 'Flag Captured', '1', '', '', ''),
('ff', 'flag_dropped', -3, 0, '', 'Flag Dropped', '1', '', '', ''),
('ff', 'flag_thrown', -3, 0, '', 'Flag Thrown', '1', '', '', ''),
('ff', 'disguise_lost', 1, 0, '', 'Uncovered Enemy', '', '1', '', ''),
('fof', 'kill_streak_2', 1, 0, '', 'Double Kill (2 kills)', '1', '', '', ''),
('fof', 'kill_streak_3', 2, 0, '', 'Triple Kill (3 kills)', '1', '', '', ''),
('fof', 'kill_streak_4', 3, 0, '', 'Domination (4 kills)', '1', '', '', ''),
('fof', 'kill_streak_5', 4, 0, '', 'Rampage (5 kills)', '1', '', '', ''),
('fof', 'kill_streak_6', 5, 0, '', 'Mega Kill (6 kills)', '1', '', '', ''),
('fof', 'kill_streak_7', 6, 0, '', 'Ownage (7 kills)', '1', '', '', ''),
('fof', 'kill_streak_8', 7, 0, '', 'Ultra Kill (8 kills)', '1', '', '', ''),
('fof', 'kill_streak_9', 8, 0, '', 'Killing Spree (9 kills)', '1', '', '', ''),
('fof', 'kill_streak_10', 9, 0, '', 'Monster Kill (10 kills)', '1', '', '', ''),
('fof', 'kill_streak_11', 10, 0, '', 'Unstoppable (11 kills)', '1', '', '', ''),
('fof', 'kill_streak_12', 11, 0, '', 'God Like (12+ kills)', '1', '', '', ''),
('fof', 'loot_drop', -2, 0, '', 'Dropped the loot', '1', '', '', ''),
('fof', 'loot_capture', 8, 0, '', 'Captured the loot', '1', '', '', ''),
('fof', 'carrier_protect', 5, 0, '', 'Protected the carrier', '1', '', '', ''),
('fof', 'headshot', 1, 0, '', 'Headshot Kill', '1', '', '', ''),
('ges', 'kill_streak_2', 1, 0, '', 'Double Kill (2 kills)', '1', '', '', ''),
('ges', 'kill_streak_3', 2, 0, '', 'Triple Kill (3 kills)', '1', '', '', ''),
('ges', 'kill_streak_4', 3, 0, '', 'Domination (4 kills)', '1', '', '', ''),
('ges', 'kill_streak_5', 4, 0, '', 'Rampage (5 kills)', '1', '', '', ''),
('ges', 'kill_streak_6', 5, 0, '', 'Mega Kill (6 kills)', '1', '', '', ''),
('ges', 'kill_streak_7', 6, 0, '', 'Ownage (7 kills)', '1', '', '', ''),
('ges', 'kill_streak_8', 7, 0, '', 'Ultra Kill (8 kills)', '1', '', '', ''),
('ges', 'kill_streak_9', 8, 0, '', 'Killing Spree (9 kills)', '1', '', '', ''),
('ges', 'kill_streak_10', 9, 0, '', 'Monster Kill (10 kills)', '1', '', '', ''),
('ges', 'kill_streak_11', 10, 0, '', 'Unstoppable (11 kills)', '1', '', '', ''),
('ges', 'kill_streak_12', 11, 0, '', 'God Like (12+ kills)', '1', '', '', ''),
('ges', 'Round_Win', 5, 0, '', 'Round Win', '1', '', '', ''),
('ges', 'Round_Win_Team', 0, 3, '', 'Team Round Win', '', '', '1', '');
ALTER TABLE `hlstats_Awards` CHANGE `awardType` `awardType` CHAR( 1 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'W';
UPDATE `hlstats_Awards` SET `code` = 'weapon_fnfal' WHERE `code`='weapon_fnfa1' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'insmod');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`) VALUES
('O', 'l4d', 'headshot', 'Brain Salad', 'headshot kills'),
('O', 'l4d', 'healed_teammate', 'Field Medic', 'healed Survivors'),
('O', 'l4d', 'killed_exploding', 'Stomach Upset', 'killed Boomers'),
('O', 'l4d', 'killed_gas', 'No Smoking Section', 'killed Smokers'),
('O', 'l4d', 'killed_hunter', 'Hunter Punter', 'killed Hunters'),
('P', 'l4d', 'killed_survivor', 'Dead Wreckening', 'downed Survivors'),
('O', 'l4d', 'killed_tank', 'Tankbuster', 'killed Tanks'),
('O', 'l4d', 'killed_witch', 'Inquisitor', 'killed Witches'),
('P', 'l4d', 'pounce', 'Free to Fly', 'pounced Survivors'),
('O', 'l4d', 'rescued_survivor', 'Ground Cover', 'rescued Survivors'),
('O', 'l4d', 'revived_teammate', 'Helping Hand', 'revived Survivors'),
('P', 'l4d', 'tongue_grab', 'Drag & Drop', 'constricted Survivors'),
('P', 'l4d', 'vomit', 'Barf Bagged', 'vomited on Survivors'),
('W', 'l4d', 'autoshotgun', 'Automation', 'kills with Auto Shotgun'),
('W', 'l4d', 'boomer_claw', 'Boom!', 'kills with Boomer\'s Claws'),
('W', 'l4d', 'dual_pistols', 'Akimbo Assassin', 'kills with Dual Pistols'),
('W', 'l4d', 'hunter_claw', 'Open Season', 'kills with Hunter\'s Claws'),
('W', 'l4d', 'hunting_rifle', 'Hawk Eye', 'kills with Hunting Rifle'),
('W', 'l4d', 'inferno', 'Pyromaniac', 'cremated Infected'),
('W', 'l4d', 'pipe_bomb', 'Pyrotechnician', 'blown up Infected'),
('W', 'l4d', 'pistol', 'Ammo Saver', 'kills with Pistol'),
('W', 'l4d', 'prop_minigun', 'No-One Left Behind', 'kills with Mounted Machine Gun'),
('W', 'l4d', 'pumpshotgun', 'Pump It!', 'kills with Pump Shotgun'),
('W', 'l4d', 'rifle', 'Commando', 'kills with M16 Assault Rifle'),
('W', 'l4d', 'smg', 'Safety First', 'kills with Uzi'),
('W', 'l4d', 'smoker_claw', 'Chain Smoker', 'kills with Smoker\'s Claws'),
('W', 'l4d', 'tank_claw', 'Burger Tank', 'kills with Tank\'s Claws'),
('W', 'l4d', 'tank_rock', 'Rock Star', 'kills with Tank\'s Rock'),
('W', 'l4d', 'latency', 'Lowest Ping', 'ms average connection'),
('W', 'fof', 'deringer', 'Deringer', 'kills with Deringer'),
('W', 'fof', 'carbine', 'Carbine', 'kills with Carbine'),
('W', 'fof', 'coltnavy', 'Colt Navy', 'kills with Colt Navy'),
('W', 'fof', 'bow', 'Bow', 'kills with Bow'),
('W', 'fof', 'arrow', 'Arrow', 'kills with Arrow'),
('W', 'fof', 'sharps', 'Sharps', 'kills with Sharps'),
('W', 'fof', 'coachgun', 'Coach Gun', 'kills with Coach Gun'),
('W', 'fof', 'peacemaker', 'Peacemaker', 'kills with Peacemaker'),
('W', 'fof', 'knife', 'Knife', 'kills with Knife'),
('W', 'fof', 'dualderinger', 'Dual Deringers', 'kills with Dual Deringers'),
('W', 'fof', 'thrown_axe', 'Thrown Axe', 'kills with Thrown Axe'),
('W', 'fof', 'arrow_fiery', 'Fire Arrow', 'kills with Fire Arrow'),
('W', 'fof', 'thrown_knife', 'Thrown Knife', 'kills with Thrown Knife'),
('W', 'fof', 'dualnavy', 'Dual Colt Navys', 'kills with Dual Colt Navys'),
('W', 'fof', 'dynamite', 'Dynamite', 'kills with Dynamite'),
('W', 'fof', 'explosive_arrow', 'Explosive Arrow', 'kills with Explosive Arrows'),
('W', 'fof', 'fists', 'Fists', 'kills with Fists'),
('W', 'fof', 'axe', 'Axe', 'kills with Axe'),
('W', 'fof', 'dualpeacemaker', 'Dual Peacemakers', 'kills with Dual Peacemakers'),
('W', 'fof', 'henryrifle', 'Henry Rifle', 'kills with Henry Rifle'),
('W', 'fof', 'whiskey', 'Whiskey', 'kills with Whiskey'),
('O', 'fof', 'loot_drop', 'Butter Fingers', 'Loot Drops'),
('O', 'fof', 'loot_capture', 'Gimme all yo loot', 'Loot Captures'),
('O', 'fof', 'carrier_protect', 'Grand Protector', 'carrier protections'),
('O', 'fof', 'headshot', 'BOOM HEADSHOT','headshot kills'),
('W', 'fof', 'latency', 'Lowest Ping','ms average connection'),
('W', 'ges', '#GE_ProximityMine', 'Proximity Mines', 'kills with Proximity Mines'),
('W', 'ges', '#GE_AutoShotgun', 'Automatic Shotgun', 'kills with Automatic Shotgun'),
('W', 'ges', '#GE_Phantom', 'Phantom', 'kills with Phantom'),
('W', 'ges', '#GE_Knife', 'Knife', 'kills with Hunting Knife'),
('W', 'ges', '#GE_D5K', 'D5K', 'kills with D5K Deutsche'),
('W', 'ges', '#GE_SilverPP7', 'Silver PP7', 'kills with Silver PP7'),
('W', 'ges', '#GE_DD44', 'DD44', 'kills with DD44'),
('W', 'ges', '#GE_Grenade', 'Grenade', 'kills with Grenades'),
('W', 'ges', '#GE_CougarMagnum', 'Cougar Magnum', 'kills with Cougar Magnum'),
('W', 'ges', '#GE_D5K_SILENCED', 'Silenced D5K', 'kills with D5K (Silenced)'),
('W', 'ges', '#GE_Shotgun', 'Shotgun', 'kills with Shotgun'),
('W', 'ges', '#GE_Klobb', 'Klobb', 'kills with Klobb'),
('W', 'ges', '#GE_RCP90', 'RC-P90', 'kills with RC-P90'),
('W', 'ges', '#GE_RemoteMine', 'Remote Mines', 'kills with Remote Mines'),
('W', 'ges', '#GE_KF7Soviet', 'KF7 Soviet', 'kills with KF7 Soviet'),
('W', 'ges', '#GE_ZMG', 'ZMG', 'kills with ZMG'),
('W', 'ges', '#GE_SniperRifle', 'Sniper Rifle', 'kills with Sniper Rifle'),
('W', 'ges', '#GE_GoldPP7', 'Golden PP7', 'kills with Golden PP7'),
('W', 'ges', '#GE_AR33', 'AR33', 'kills with US AR33 Assault'),
('W', 'ges', '#GE_GoldenGun', 'Golden Gun', 'kills with Golden Gun'),
('W', 'ges', '#GE_ThrowingKnife', 'Thorwing Knives', 'kills with Throwing Knives'),
('W', 'ges', '#GE_PP7', 'PP7', 'kills with PP7'),
('W', 'ges', '#GE_PP7_SILENCED', 'Silenced PP7', 'kills with PP7 (Silenced)'),
('W', 'ges', '#GE_TimedMine', 'Timed Mines', 'kills with Timed Mines'),
('W', 'ges', '#GE_MilitaryLaser', 'Military Laser', 'kills with Military Laser'),
('W', 'ges', '#GE_GrenadeLauncher', 'Grenade Launcher', 'kills with Grenade Launcher'),
('W', 'ges', '#GE_Rocket', 'Rocket Launcher', 'kills with Rocket Launcher'),
('W', 'ges', '#GE_Taser', 'Taser', 'kills with Taser'),
('W', 'ges', '#GE_SniperButt', 'Sniper Butt', 'kills with Sniper Butt'),
('W', 'ges', '#GE_Slapper', 'Slapper', 'kills with Slappers'),
('W', 'ges', '#GE_RocketLauncher', ', Rocket Launcher', 'kills with Rocket Launcher'),
('W', 'ges', 'latency', 'Lowest Ping','ms average connection');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'O',`code`,'flagevent_defended','Defender of the Flag','flag defenses' FROM `hlstats_Games` WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'O',`code`,'flagevent_captured','The Mad Capper','flag captures' FROM `hlstats_Games` WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'O',`code`,'killedobject_obj_dispenser','NO METAL FOR YOU!','dispensers destroyed' FROM `hlstats_Games` WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'O',`code`,'killedobject_obj_sentrygun','Say no to sentries','sentry guns destoryed' FROM `hlstats_Games` WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'O',`code`,'builtobject_obj_sentrygun','Bob the Builder','sentry guns built' FROM `hlstats_Games` WHERE `realgame` = 'tf');
ALTER TABLE `hlstats_Events_Admin`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '';
ALTER TABLE `hlstats_Events_ChangeName`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '';
ALTER TABLE `hlstats_Events_ChangeRole`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '',
CHANGE `role` `role` VARCHAR( 64 ) NOT NULL default '';
ALTER TABLE `hlstats_Events_ChangeTeam`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '',
CHANGE `team` `team` VARCHAR( 64 ) NOT NULL default '';
ALTER TABLE `hlstats_Events_Chat`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '';
ALTER TABLE `hlstats_Events_Connects`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '';
ALTER TABLE `hlstats_Events_Disconnects`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '';
ALTER TABLE `hlstats_Events_Entries`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '';
ALTER TABLE `hlstats_Events_Frags`
DROP INDEX `map`,
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '',
CHANGE `weapon` `weapon` VARCHAR( 64 ) NOT NULL default '',
CHANGE `killerRole` `killerRole` VARCHAR( 64 ) NOT NULL default '',
CHANGE `victimRole` `victimRole` VARCHAR( 64 ) NOT NULL default '',
ADD INDEX ( `serverId` ),
ADD INDEX ( `headshot` ),
ADD INDEX ( `map` ( 5 ) );
UPDATE `hlstats_Events_Frags` SET `weapon` = 'weapon_fnfal' WHERE `weapon` = 'weapon_fnfa1' AND serverId IN (SELECT serverId FROM `hlstats_Servers` WHERE `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'insmod'));
ALTER TABLE `hlstats_Events_Latency`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '';
ALTER TABLE `hlstats_Events_PlayerActions`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '';
ALTER TABLE `hlstats_Events_PlayerPlayerActions`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '';
ALTER TABLE `hlstats_Events_Rcon`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '',
CHANGE `password` `password` VARCHAR( 128 ) NOT NULL default '';
ALTER TABLE `hlstats_Events_Statsme`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '',
CHANGE `weapon` `weapon` VARCHAR( 64 ) NOT NULL default '';
ALTER TABLE `hlstats_Events_Statsme2`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '',
CHANGE `weapon` `weapon` VARCHAR( 64 ) NOT NULL default '';
ALTER TABLE `hlstats_Events_StatsmeLatency`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '';
ALTER TABLE `hlstats_Events_StatsmeTime`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '';
ALTER TABLE `hlstats_Events_Suicides`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '',
CHANGE `weapon` `weapon` VARCHAR( 64 ) NOT NULL default '';
UPDATE `hlstats_Events_Suicides` SET `weapon` = 'weapon_fnfal' WHERE `weapon` = 'weapon_fnfa1' AND serverId IN (SELECT serverId FROM `hlstats_Servers` WHERE `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'insmod'));
ALTER TABLE `hlstats_Events_TeamBonuses`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '';
ALTER TABLE `hlstats_Events_Teamkills`
CHANGE `map` `map` VARCHAR( 64 ) NOT NULL default '',
CHANGE `weapon` `weapon` VARCHAR( 64 ) NOT NULL default '';
UPDATE `hlstats_Events_Teamkills` SET `weapon` = 'weapon_fnfal' WHERE `weapon` = 'weapon_fnfa1' AND serverId IN (SELECT serverId FROM `hlstats_Servers` WHERE `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'insmod'));
INSERT IGNORE INTO `hlstats_Games` (`code`, `name`, `realgame`, `hidden`) VALUES
('l4d', 'Left 4 Dead', 'l4d', '1'),
('fof', 'Fistful of Frags', 'fof', '1'),
('ges', 'GoldenEye: Source', 'ges', '1');
DELETE FROM `hlstats_Games_Defaults` WHERE `parameter` = 'AdminContact';
INSERT IGNORE INTO `hlstats_Games_Defaults` (`code`, `parameter`, `value`) VALUES
('l4d', 'DisplayResultsInBrowser', '1'),
('l4d', 'GameEngine', '3'),
('l4d', 'AddressPort', '0.0.0.0:27015'),
('l4d', 'Admins', ''),
('l4d', 'AutoBanRetry', '0'),
('l4d', 'AutoTeamBalance', '0'),
('l4d', 'BonusRoundIgnore', '0'),
('l4d', 'BonusRoundTime', '0'),
('l4d', 'BroadCastEvents', '0'),
('l4d', 'BroadCastPlayerActions', '0'),
('l4d', 'EnablePublicCommands', '0'),
('l4d', 'GameType', '0'),
('l4d', 'HLStatsURL', 'http://yoursite.com/hlstats'),
('l4d', 'IgnoreBots', '0'),
('l4d', 'MinimumPlayersRank', '0'),
('l4d', 'MinPlayers', '1'),
('l4d', 'PlayerEvents', '1'),
('l4d', 'ShowStats', '1'),
('l4d', 'SkillMode', '0'),
('l4d', 'SuicidePenalty', '5'),
('l4d', 'SwitchAdmins', '0'),
('l4d', 'TKPenalty', '25'),
('l4d', 'TrackServerLoad', '1'),
('fof', 'DisplayResultsInBrowser', '1'),
('fof', 'GameEngine', '3'),
('fof', 'AddressPort', '0.0.0.0:27015'),
('fof', 'Admins', ''),
('fof', 'AutoBanRetry', '0'),
('fof', 'AutoTeamBalance', '0'),
('fof', 'BonusRoundIgnore', '0'),
('fof', 'BonusRoundTime', '0'),
('fof', 'BroadCastEvents', '1'),
('fof', 'BroadCastPlayerActions', '1'),
('fof', 'EnablePublicCommands', '1'),
('fof', 'GameType', '0'),
('fof', 'HLStatsURL', 'http://yoursite.com/hlstats'),
('fof', 'IgnoreBots', '1'),
('fof', 'MinimumPlayersRank', '0'),
('fof', 'MinPlayers', '4'),
('fof', 'PlayerEvents', '1'),
('fof', 'ShowStats', '1'),
('fof', 'SkillMode', '0'),
('fof', 'SuicidePenalty', '5'),
('fof', 'SwitchAdmins', '0'),
('fof', 'TKPenalty', '25'),
('fof', 'TrackServerLoad', '1'),
('ges', 'DisplayResultsInBrowser', '1'),
('ges', 'GameEngine', '3'),
('ges', 'AddressPort', '0.0.0.0:27015'),
('ges', 'Admins', ''),
('ges', 'AutoBanRetry', '0'),
('ges', 'AutoTeamBalance', '0'),
('ges', 'BonusRoundIgnore', '0'),
('ges', 'BonusRoundTime', '0'),
('ges', 'BroadCastEvents', '1'),
('ges', 'BroadCastPlayerActions', '1'),
('ges', 'EnablePublicCommands', '1'),
('ges', 'GameType', '0'),
('ges', 'HLStatsURL', 'http://yoursite.com/hlstats'),
('ges', 'IgnoreBots', '1'),
('ges', 'MinimumPlayersRank', '0'),
('ges', 'MinPlayers', '4'),
('ges', 'PlayerEvents', '1'),
('ges', 'ShowStats', '1'),
('ges', 'SkillMode', '0'),
('ges', 'SuicidePenalty', '5'),
('ges', 'SwitchAdmins', '0'),
('ges', 'TKPenalty', '25'),
('ges', 'TrackServerLoad', '1');
INSERT IGNORE INTO `hlstats_Games_Supported` (`code`, `name`) VALUES
('l4d', 'Left 4 Dead'),
('fof', 'Fistful of Frags'),
('ges', 'GoldenEye: Source');
ALTER TABLE `hlstats_Livestats`
CHANGE `team` `team` VARCHAR( 64 ) NOT NULL default '';
ALTER TABLE `hlstats_Options`
ADD `opttype` TINYINT NOT NULL DEFAULT '1',
ADD INDEX ( `opttype` );
UPDATE `hlstats_Options` SET `opttype` = 2;
INSERT INTO `hlstats_Options` (`keyname`, `value`, `opttype`)
(SELECT `parameter`, `value`, 0 FROM `hlstats_PerlConfig`);
INSERT IGNORE INTO `hlstats_Options` (`keyname`, `value`, `opttype`) VALUES
('slider', '1',2),
('modrewrite','0',2),
('UseGeoIPBinary', '0',0);
UPDATE `hlstats_Options` SET `value` = 'skill' WHERE `keyname` = 'rankingtype' AND `value`=1;
UPDATE `hlstats_Options` SET `value` = 'kills' WHERE `keyname` = 'rankingtype' AND `value`=2;
UPDATE `hlstats_Options` SET `opttype` = 1 WHERE `keyname` IN ('Mode','rankingtype','DeleteDays','MinActivity');
TRUNCATE TABLE `hlstats_Options_Choices`;
INSERT IGNORE INTO `hlstats_Options_Choices` (`keyname`, `value`, `text`, `isDefault`) VALUES
('rankingtype', 'skill', 'Skill', 1),
('rankingtype', 'kills', 'Kills', 0),
('bannerdisplay', '0', 'None', 1),
('bannerdisplay', '1', 'All Pages', 0),
('bannerdisplay', '2', 'Contents Page Only', 0),
('playerinfo_tabs', '1', 'New Style (hide sections by default)', 1),
('playerinfo_tabs', '0', 'Old Style (show all at once)', 0),
('nav_globalchat', '1', 'Show', 1),
('nav_globalchat', '0', 'Hide', 0),
('nav_cheaters', '0', 'Hide', 1),
('nav_cheaters', '1', 'Show', 0),
('show_weapon_target_flash', '1', 'Flash hitbox', 1),
('show_weapon_target_flash', '0', 'HTML Table', 0),
('show_server_load_image', '1', 'Show', 0),
('show_server_load_image', '0', 'Hide', 1),
('countrydata', '1', 'Show', 1),
('countrydata', '0', 'Hide', 0),
('gamehome_show_awards', '1', 'Show', 0),
('gamehome_show_awards', '0', 'Hide', 1),
('show_google_map', '0', 'Hide', 0),
('show_google_map', '1', 'Show', 1),
('google_map_region', 'NORTH AMERICA', 'North America', 1),
('google_map_region', 'SOUTH AMERICA', 'South America', 0),
('google_map_region', 'NORTH AFRICA', 'North Africa', 0),
('google_map_region', 'SOUTH AFRICA', 'South Africa', 0),
('google_map_region', 'NORTH EUROPE', 'North Europe', 0),
('google_map_region', 'EAST EUROPE', 'East Europe', 0),
('google_map_region', 'GERMANY', 'Germany', 0),
('google_map_region', 'FRANCE', 'France', 0),
('google_map_region', 'SPAIN', 'Spain', 0),
('google_map_region', 'UNITED KINGDOM', 'United Kingdom', 0),
('google_map_region', 'DENMARK', 'Denmark', 0),
('google_map_region', 'SWEDEN', 'Sweden', 0),
('google_map_region', 'NORWAY', 'Norway', 0),
('google_map_region', 'FINLAND', 'Finland', 0),
('google_map_region', 'NETHERLANDS', 'Netherlands', 0),
('google_map_region', 'BELGIUM', 'Belgium', 0),
('google_map_region', 'POLAND', 'Poland', 0),
('google_map_region', 'SUISSE', 'Suisse', 0),
('google_map_region', 'AUSTRIA', 'Austria', 0),
('google_map_region', 'ITALY', 'Italy', 0),
('google_map_region', 'TURKEY', 'Turkey', 0),
('google_map_region', 'BRAZIL', 'Brazil', 0),
('google_map_region', 'ARGENTINA', 'Argentina', 0),
('google_map_region', 'RUSSIA', 'Russia', 0),
('google_map_region', 'ASIA', 'Asia', 0),
('google_map_region', 'CHINA', 'China', 0),
('google_map_region', 'JAPAN', 'Japan', 0),
('google_map_region', 'SOUTH KOREA', 'South Korea', 0),
('google_map_region', 'AUSTRALIA', 'Australia', 0),
('google_map_region', 'WORLD', 'World', 0),
('google_map_type', 'HYBRID', 'Hybrid', 1),
('google_map_type', 'SATELLITE', 'Satellite', 0),
('google_map_type', 'MAP', 'Normal', 0),
('google_map_type', 'PHYSICAL', 'Physical', 0),
('slider', '1', 'Enabled', 1),
('slider', '0', 'Disabled', 0),
('modrewrite', '1', 'Enabled', 0),
('modrewrite', '0', 'Disabled', 1),
('DNSResolveIP', '1', 'Yes', 1),
('DNSResolveIP', '0', 'No', 0),
('Rcon', '1', 'Yes', 1),
('Rcon', '0', 'No', 0),
('RconIgnoreSelf', '0', 'No', 1),
('RconIgnoreSelf', '1', 'Yes', 0),
('RconRecord', '0', 'No', 1),
('RconRecord', '1', 'Yes', 0),
('Mode', 'Normal', 'Steam ID (recommended)', 1),
('Mode', 'NameTrack', 'Player Name', 0),
('Mode', 'LAN', 'IP Address', 0),
('UseTimestamp', '0', 'No', 1),
('UseTimestamp', '1', 'Yes', 0),
('AllowOnlyConfigServers', '0', 'No', 0),
('AllowOnlyConfigServers', '1', 'Yes', 1),
('TrackStatsTrend', '0', 'No', 0),
('TrackStatsTrend', '1', 'Yes', 1),
('GlobalBanning', '0', 'No', 1),
('GlobalBanning', '1', 'Yes', 0),
('LogChat', '0', 'No', 0),
('LogChat', '1', 'Yes', 1),
('LogChatAdmins', '0', 'No', 0),
('LogChatAdmins', '1', 'Yes', 1),
('GlobalChat', '0', 'None', 1),
('GlobalChat', '1', 'Broadcast to all', 0),
('GlobalChat', '2', 'Broadcast to admins', 0),
('SkillRatioCap', '0', 'No', 1),
('SkillRatioCap', '1', 'Yes', 0),
('UseGeoIPBinary', '0', 'GeoIP lookup via database', 1),
('UseGeoIPBinary', '1', 'GeoIP lookup via binary file', 0);
DROP TABLE `hlstats_PerlConfig`;
DROP TABLE `hlstats_PerlConfig_Choices`;
ALTER TABLE `hlstats_Players` CHANGE `last_event` `last_event` INT( 11 ) NOT NULL DEFAULT '0';
INSERT IGNORE INTO `hlstats_Ranks` (`image`, `minKills`, `maxKills`, `rankName`, `game`) VALUES
('recruit', 0, 49, 'Recruit', 'l4d'),
('private', 50, 99, 'Private', 'l4d'),
('private-first-class', 100, 199, 'Private First Class', 'l4d'),
('lance-corporal', 200, 299, 'Lance Corporal', 'l4d'),
('corporal', 300, 399, 'Corporal', 'l4d'),
('sergeant', 400, 499, 'Sergeant', 'l4d'),
('staff-sergeant', 500, 599, 'Staff Sergeant', 'l4d'),
('gunnery-sergeant', 600, 699, 'Gunnery Sergeant', 'l4d'),
('master-sergeant', 700, 799, 'Master Sergeant', 'l4d'),
('first-sergeant', 800, 899, 'First Sergeant', 'l4d'),
('master-chief', 900, 999, 'Master Chief', 'l4d'),
('sergeant-major', 1000, 1199, 'Sergeant Major', 'l4d'),
('ensign', 1200, 1399, 'Ensign', 'l4d'),
('third-lieutenant', 1400, 1599, 'Third Lieutenant', 'l4d'),
('second-lieutenant', 1600, 1799, 'Second Lieutenant', 'l4d'),
('first-lieutenant', 1800, 1999, 'First Lieutenant', 'l4d'),
('captain', 2000, 2249, 'Captain', 'l4d'),
('group-captain', 2250, 2499, 'Group Captain', 'l4d'),
('senior-captain', 2500, 2749, 'Senior Captain', 'l4d'),
('lieutenant-major', 2750, 2999, 'Lieutenant Major', 'l4d'),
('major', 3000, 3499, 'Major', 'l4d'),
('group-major', 3500, 3999, 'Group Major', 'l4d'),
('lieutenant-commander', 4000, 4499, 'Lieutenant Commander', 'l4d'),
('commander', 4500, 4999, 'Commander', 'l4d'),
('group-commander', 5000, 5749, 'Group Commander', 'l4d'),
('lieutenant-colonel', 5750, 6499, 'Lieutenant Colonel', 'l4d'),
('colonel', 6500, 7249, 'Colonel', 'l4d'),
('brigadier', 7250, 7999, 'Brigadier', 'l4d'),
('brigadier-general', 8000, 8999, 'Brigadier General', 'l4d'),
('major-general', 9000, 9999, 'Major General', 'l4d'),
('lieutenant-general', 10000, 12499, 'Lieutenant General', 'l4d'),
('general', 12500, 14999, 'General', 'l4d'),
('commander-general', 15000, 17499, 'Commander General', 'l4d'),
('field-vice-marshal', 17500, 19999, 'Field Vice Marshal', 'l4d'),
('field-marshal', 20000, 22499, 'Field Marshal', 'l4d'),
('vice-commander-of-the-army', 22500, 24999, 'Vice Commander of the Army', 'l4d'),
('commander-of-the-army', 25000, 27499, 'Commander of the Army', 'l4d'),
('high-commander', 27500, 29999, 'High Commander', 'l4d'),
('supreme-commander', 30000, 34999, 'Supreme Commander', 'l4d'),
('terminator', 35000, 9999999, 'Terminator', 'l4d'),
('recruit', 0, 49, 'Recruit', 'fof'),
('private', 50, 99, 'Private', 'fof'),
('private-first-class', 100, 199, 'Private First Class', 'fof'),
('lance-corporal', 200, 299, 'Lance Corporal', 'fof'),
('corporal', 300, 399, 'Corporal', 'fof'),
('sergeant', 400, 499, 'Sergeant', 'fof'),
('staff-sergeant', 500, 599, 'Staff Sergeant', 'fof'),
('gunnery-sergeant', 600, 699, 'Gunnery Sergeant', 'fof'),
('master-sergeant', 700, 799, 'Master Sergeant', 'fof'),
('first-sergeant', 800, 899, 'First Sergeant', 'fof'),
('master-chief', 900, 999, 'Master Chief', 'fof'),
('sergeant-major', 1000, 1199, 'Sergeant Major', 'fof'),
('ensign', 1200, 1399, 'Ensign', 'fof'),
('third-lieutenant', 1400, 1599, 'Third Lieutenant', 'fof'),
('second-lieutenant', 1600, 1799, 'Second Lieutenant', 'fof'),
('first-lieutenant', 1800, 1999, 'First Lieutenant', 'fof'),
('captain', 2000, 2249, 'Captain', 'fof'),
('group-captain', 2250, 2499, 'Group Captain', 'fof'),
('senior-captain', 2500, 2749, 'Senior Captain', 'fof'),
('lieutenant-major', 2750, 2999, 'Lieutenant Major', 'fof'),
('major', 3000, 3499, 'Major', 'fof'),
('group-major', 3500, 3999, 'Group Major', 'fof'),
('lieutenant-commander', 4000, 4499, 'Lieutenant Commander', 'fof'),
('commander', 4500, 4999, 'Commander', 'fof'),
('group-commander', 5000, 5749, 'Group Commander', 'fof'),
('lieutenant-colonel', 5750, 6499, 'Lieutenant Colonel', 'fof'),
('colonel', 6500, 7249, 'Colonel', 'fof'),
('brigadier', 7250, 7999, 'Brigadier', 'fof'),
('brigadier-general', 8000, 8999, 'Brigadier General', 'fof'),
('major-general', 9000, 9999, 'Major General', 'fof'),
('lieutenant-general', 10000, 12499, 'Lieutenant General', 'fof'),
('general', 12500, 14999, 'General', 'fof'),
('commander-general', 15000, 17499, 'Commander General', 'fof'),
('field-vice-marshal', 17500, 19999, 'Field Vice Marshal', 'fof'),
('field-marshal', 20000, 22499, 'Field Marshal', 'fof'),
('vice-commander-of-the-army', 22500, 24999, 'Vice Commander of the Army', 'fof'),
('commander-of-the-army', 25000, 27499, 'Commander of the Army', 'fof'),
('high-commander', 27500, 29999, 'High Commander', 'fof'),
('supreme-commander', 30000, 34999, 'Supreme Commander', 'fof'),
('terminator', 35000, 9999999, 'Terminator', 'fof'),
('recruit', 0, 49, 'Recruit', 'ges'),
('private', 50, 99, 'Private', 'ges'),
('private-first-class', 100, 199, 'Private First Class', 'ges'),
('lance-corporal', 200, 299, 'Lance Corporal', 'ges'),
('corporal', 300, 399, 'Corporal', 'ges'),
('sergeant', 400, 499, 'Sergeant', 'ges'),
('staff-sergeant', 500, 599, 'Staff Sergeant', 'ges'),
('gunnery-sergeant', 600, 699, 'Gunnery Sergeant', 'ges'),
('master-sergeant', 700, 799, 'Master Sergeant', 'ges'),
('first-sergeant', 800, 899, 'First Sergeant', 'ges'),
('master-chief', 900, 999, 'Master Chief', 'ges'),
('sergeant-major', 1000, 1199, 'Sergeant Major', 'ges'),
('ensign', 1200, 1399, 'Ensign', 'ges'),
('third-lieutenant', 1400, 1599, 'Third Lieutenant', 'ges'),
('second-lieutenant', 1600, 1799, 'Second Lieutenant', 'ges'),
('first-lieutenant', 1800, 1999, 'First Lieutenant', 'ges'),
('captain', 2000, 2249, 'Captain', 'ges'),
('group-captain', 2250, 2499, 'Group Captain', 'ges'),
('senior-captain', 2500, 2749, 'Senior Captain', 'ges'),
('lieutenant-major', 2750, 2999, 'Lieutenant Major', 'ges'),
('major', 3000, 3499, 'Major', 'ges'),
('group-major', 3500, 3999, 'Group Major', 'ges'),
('lieutenant-commander', 4000, 4499, 'Lieutenant Commander', 'ges'),
('commander', 4500, 4999, 'Commander', 'ges'),
('group-commander', 5000, 5749, 'Group Commander', 'ges'),
('lieutenant-colonel', 5750, 6499, 'Lieutenant Colonel', 'ges'),
('colonel', 6500, 7249, 'Colonel', 'ges'),
('brigadier', 7250, 7999, 'Brigadier', 'ges'),
('brigadier-general', 8000, 8999, 'Brigadier General', 'ges'),
('major-general', 9000, 9999, 'Major General', 'ges'),
('lieutenant-general', 10000, 12499, 'Lieutenant General', 'ges'),
('general', 12500, 14999, 'General', 'ges'),
('commander-general', 15000, 17499, 'Commander General', 'ges'),
('field-vice-marshal', 17500, 19999, 'Field Vice Marshal', 'ges'),
('field-marshal', 20000, 22499, 'Field Marshal', 'ges'),
('vice-commander-of-the-army', 22500, 24999, 'Vice Commander of the Army', 'ges'),
('commander-of-the-army', 25000, 27499, 'Commander of the Army', 'ges'),
('high-commander', 27500, 29999, 'High Commander', 'ges'),
('supreme-commander', 30000, 34999, 'Supreme Commander', 'ges'),
('terminator', 35000, 9999999, 'Terminator', 'ges');
UPDATE `hlstats_Ribbons` SET `awardCode` = 'weapon_fnfal' WHERE `awardCode`='weapon_fnfa1' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'insmod');
INSERT INTO `hlstats_Ribbons` (`awardCode`, `awardCount`, `special`, `game`, `image`, `ribbonName`) VALUES
('ak47',5,0,'cstrike','1_ak47.png','Award of AK47'),
('awp',5,0,'cstrike','1_awp.png','Award of AWP Sniper'),
('deagle',5,0,'cstrike','1_deagle.png','Award of Desert Eagle'),
('elite',5,0,'cstrike','1_elite.png','Award of Dual Beretta Elites'),
('famas',5,0,'cstrike','1_famas.png','Award of Fusil Automatique'),
('galil',5,0,'cstrike','1_galil.png','Award of Galil'),
('glock18',5,0,'cstrike','1_glock.png','Award of Glock'),
('knife',5,0,'cstrike','1_knife.png','Award of Combat Knife'),
('latency',5,0,'cstrike','1_latency.png','Award of Lowpinger'),
('m3',5,0,'cstrike','1_m3.png','Award of M3 Super'),
('m4a1',5,0,'cstrike','1_m4a1.png','Award of Colt M4A1'),
('p90',5,0,'cstrike','1_p90.png','Award of P90'),
('scout',5,0,'cstrike','1_scout.png','Award of Scout Elite'),
('usp',5,0,'cstrike','1_usp.png','Award of USP'),
('boomer_claw', '5', '0', 'l4d', '1_boomer_claw.png', 'Bronze Boom!'),
('headshot', '5', '0', 'l4d', '1_headshot.png', 'Bronze Brain Salad'),
('healed_teammate', '5', '0', 'l4d', '1_healed_teammate.png', 'Bronze Field Medic'),
('hunter_claw', '5', '0', 'l4d', '1_hunter_claw.png', 'Bronze Grim Reaper'),
('inferno', '5', '0', 'l4d', '1_inferno.png', 'Bronze Cremator'),
('killed_exploding', '5', '0', 'l4d', '1_killed_exploding.png', 'Bronze Stomach Upset'),
('killed_gas', '5', '0', 'l4d', '1_killed_gas.png', 'Bronze Tongue Twister'),
('killed_hunter', '5', '0', 'l4d', '1_killed_hunter.png', 'Bronze Hunter Punter'),
('killed_survivor', '5', '0', 'l4d', '1_killed_survivor.png', 'Bronze Dead Wreckening'),
('killed_tank', '5', '0', 'l4d', '1_killed_tank.png', 'Bronze Tankbuster'),
('killed_witch', '5', '0', 'l4d', '1_killed_witch.png', 'Bronze Inquisitor'),
('latency', '5', '0', 'l4d', '1_latency.png', 'Bronze Nothing Special'),
('pipe_bomb', '5', '0', 'l4d', '1_pipe_bomb.png', 'Bronze Pyrotechnician'),
('pounce', '5', '0', 'l4d', '1_pounce.png', 'Bronze Free 2 Fly'),
('rescued_survivor', '5', '0', 'l4d', '1_rescued_survivor.png', 'Bronze Ground Cover'),
('revived_teammate', '5', '0', 'l4d', '1_revived_teammate.png', 'Bronze Helping Hand'),
('smoker_claw', '5', '0', 'l4d', '1_smoker_claw.png', 'Bronze Chain Smoker'),
('tank_claw', '5', '0', 'l4d', '1_tank_claw.png', 'Bronze Lambs 2 Slaughter'),
('tongue_grab', '5', '0', 'l4d', '1_tongue_grab.png', 'Bronze Drag & Drop'),
('vomit', '5', '0', 'l4d', '1_vomit.png', 'Bronze Barf Bagged'),
('boomer_claw', '15', '0', 'l4d', '2_boomer_claw.png', 'Silver Boom!'),
('headshot', '15', '0', 'l4d', '2_headshot.png', 'Silver Brain Salad'),
('healed_teammate', '15', '0', 'l4d', '2_healed_teammate.png', 'Silver Field Medic'),
('hunter_claw', '15', '0', 'l4d', '2_hunter_claw.png', 'Silver Grim Reaper'),
('inferno', '15', '0', 'l4d', '2_inferno.png', 'Silver Cremator'),
('killed_exploding', '15', '0', 'l4d', '2_killed_exploding.png', 'Silver Stomach Upset'),
('killed_gas', '15', '0', 'l4d', '2_killed_gas.png', 'Silver Tongue Twister'),
('killed_hunter', '15', '0', 'l4d', '2_killed_hunter.png', 'Silver Hunter Punter'),
('killed_survivor', '15', '0', 'l4d', '2_killed_survivor.png', 'Silver Dead Wreckening'),
('killed_tank', '15', '0', 'l4d', '2_killed_tank.png', 'Silver Tankbuster'),
('killed_witch', '15', '0', 'l4d', '2_killed_witch.png', 'Silver Inquisitor'),
('latency', '15', '0', 'l4d', '2_latency.png', 'Silver Nothing Special'),
('pipe_bomb', '15', '0', 'l4d', '2_pipe_bomb.png', 'Silver Pyrotechnician'),
('pounce', '15', '0', 'l4d', '2_pounce.png', 'Silver Free 2 Fly'),
('rescued_survivor', '15', '0', 'l4d', '2_rescued_survivor.png', 'Silver Ground Cover'),
('revived_teammate', '15', '0', 'l4d', '2_revived_teammate.png', 'Silver Helping Hand'),
('smoker_claw', '15', '0', 'l4d', '2_smoker_claw.png', 'Silver Chain Smoker'),
('tank_claw', '15', '0', 'l4d', '2_tank_claw.png', 'Silver Lambs 2 Slaughter'),
('tongue_grab', '15', '0', 'l4d', '2_tongue_grab.png', 'Silver Drag & Drop'),
('vomit', '15', '0', 'l4d', '2_vomit.png', 'Silver Barf Bagged'),
('boomer_claw', '30', '0', 'l4d', '3_boomer_claw.png', 'Golden Boom!'),
('headshot', '30', '0', 'l4d', '3_headshot.png', 'Golden Brain Salad'),
('healed_teammate', '30', '0', 'l4d', '3_healed_teammate.png', 'Golden Field Medic'),
('hunter_claw', '30', '0', 'l4d', '3_hunter_claw.png', 'Golden Grim Reaper'),
('inferno', '30', '0', 'l4d', '3_inferno.png', 'Golden Cremator'),
('killed_exploding', '30', '0', 'l4d', '3_killed_exploding.png', 'Golden Stomach Upset'),
('killed_gas', '30', '0', 'l4d', '3_killed_gas.png', 'Golden Tongue Twister'),
('killed_hunter', '30', '0', 'l4d', '3_killed_hunter.png', 'Golden Hunter Punter'),
('killed_survivor', '30', '0', 'l4d', '3_killed_survivor.png', 'Golden Dead Wreckening'),
('killed_tank', '30', '0', 'l4d', '3_killed_tank.png', 'Golden Tankbuster'),
('killed_witch', '30', '0', 'l4d', '3_killed_witch.png', 'Golden Inquisitor'),
('latency', '30', '0', 'l4d', '3_latency.png', 'Golden Nothing Special'),
('pipe_bomb', '30', '0', 'l4d', '3_pipe_bomb.png', 'Golden Pyrotechnician'),
('pounce', '30', '0', 'l4d', '3_pounce.png', 'Golden Free 2 Fly'),
('rescued_survivor', '30', '0', 'l4d', '3_rescued_survivor.png', 'Golden Ground Cover'),
('revived_teammate', '30', '0', 'l4d', '3_revived_teammate.png', 'Golden Helping Hand'),
('smoker_claw', '30', '0', 'l4d', '3_smoker_claw.png', 'Golden Chain Smoker'),
('tank_claw', '30', '0', 'l4d', '3_tank_claw.png', 'Golden Lambs 2 Slaughter'),
('tongue_grab', '30', '0', 'l4d', '3_tongue_grab.png', 'Golden Drag & Drop'),
('vomit', '30', '0', 'l4d', '3_vomit.png', 'Golden Barf Bagged'),
('boomer_claw', '50', '0', 'l4d', '4_boomer_claw.png', 'Bloody Boom!'),
('headshot', '50', '0', 'l4d', '4_headshot.png', 'Bloody Brain Salad'),
('healed_teammate', '50', '0', 'l4d', '4_healed_teammate.png', 'Bloody Field Medic'),
('hunter_claw', '50', '0', 'l4d', '4_hunter_claw.png', 'Bloody Grim Reaper'),
('inferno', '50', '0', 'l4d', '4_inferno.png', 'Bloody Cremator'),
('killed_exploding', '50', '0', 'l4d', '4_killed_exploding.png', 'Bloody Stomach Upset'),
('killed_gas', '50', '0', 'l4d', '4_killed_gas.png', 'Bloody Tongue Twister'),
('killed_hunter', '50', '0', 'l4d', '4_killed_hunter.png', 'Bloody Hunter Punter'),
('killed_survivor', '50', '0', 'l4d', '4_killed_survivor.png', 'Bloody Dead Wreckening'),
('killed_tank', '50', '0', 'l4d', '4_killed_tank.png', 'Bloody Tankbuster'),
('killed_witch', '50', '0', 'l4d', '4_killed_witch.png', 'Bloody Inquisitor'),
('latency', '50', '0', 'l4d', '4_latency.png', 'Bloody Nothing Special'),
('pipe_bomb', '50', '0', 'l4d', '4_pipe_bomb.png', 'Bloody Pyrotechnician'),
('pounce', '50', '0', 'l4d', '4_pounce.png', 'Bloody Free 2 Fly'),
('rescued_survivor', '50', '0', 'l4d', '4_rescued_survivor.png', 'Bloody Ground Cover'),
('revived_teammate', '50', '0', 'l4d', '4_revived_teammate.png', 'Bloody Helping Hand'),
('smoker_claw', '50', '0', 'l4d', '4_smoker_claw.png', 'Bloody Chain Smoker'),
('tank_claw', '50', '0', 'l4d', '4_tank_claw.png', 'Bloody Lambs 2 Slaughter'),
('tongue_grab', '50', '0', 'l4d', '4_tongue_grab.png', 'Bloody Drag & Drop'),
('vomit', '50', '0', 'l4d', '4_vomit.png', 'Bloody Barf Bagged');
UPDATE `hlstats_Roles` SET `code` = 'scout' WHERE `code`='Scout' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'ff');
UPDATE `hlstats_Roles` SET `code` = 'sniper' WHERE `code`='Sniper' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'ff');
UPDATE `hlstats_Roles` SET `code` = 'soldier' WHERE `code`='Soldier' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'ff');
UPDATE `hlstats_Roles` SET `code` = 'pyro' WHERE `code`='Pyro' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'ff');
UPDATE `hlstats_Roles` SET `code` = 'hwguy' WHERE `code`='HWGuy' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'ff');
UPDATE `hlstats_Roles` SET `code` = 'spy' WHERE `code`='Spy' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'ff');
UPDATE `hlstats_Roles` SET `code` = 'demoman' WHERE `code`='Demoman' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'ff');
UPDATE `hlstats_Roles` SET `code` = 'engineer' WHERE `code`='Engineer' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'ff');
UPDATE `hlstats_Roles` SET `code` = 'medic' WHERE `code`='Medic' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'ff');
UPDATE `hlstats_Roles` SET `code` = 'civilian' WHERE `code`='Civilian' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'ff');
INSERT IGNORE INTO `hlstats_Roles` (`game`, `code`, `name`, `hidden`) VALUES
('l4d', 'NamVet', 'Bill', '0'),
('l4d', 'TeenGirl', 'Zoey', '0'),
('l4d', 'Biker', 'Francis', '0'),
('l4d', 'Manager', 'Louis', '0'),
('l4d', 'GAS', 'Smoker', '0'),
('l4d', 'EXPLODING', 'Boomer', '0'),
('l4d', 'HUNTER', 'Hunter', '0'),
('l4d', 'TANK', 'tank', '0'),
('l4d', 'infected', 'Infected Horde', '0'),
('l4d', 'witch', 'Witch', '0');
ALTER TABLE `hlstats_Servers`
CHANGE `act_map` `act_map` varchar(64) NOT NULL default '',
ADD COLUMN `sortorder` tinyint NOT NULL DEFAULT '0' AFTER `name`;
DROP TABLE `hlstats_server_addons`;
ALTER TABLE `hlstats_server_load`
CHANGE `map` `map` varchar(64) default NULL;
DELETE FROM `hlstats_Servers_Config` WHERE `parameter` = 'AdminContact';
DELETE FROM `hlstats_Servers_Config_Default` WHERE `parameter` = 'AdminContact';
UPDATE `hlstats_Servers_Config_Default` SET `description` = 'Mode of skill changes on frags with following options:\r\n<UL>\r\n<LI>0 = Normal (Victims lose all the points which the killer gains).\r\n<LI>1 = Victims lose 3/4 the points which the killer gains.\r\n<LI>2 = Victims lose 1/2 the points which the killer gains.\r\n<LI>3 = Victims lose 1/4 the points which the killer gains.\r\n<LI>4 = Victims lose no points.\r\n<LI>ZPS-only. Survivor victims lose 1/2, Zombie victims lose 1/4\r\n</UL>' WHERE `parameter` = 'SkillMode';
UPDATE `hlstats_Servers_Config_Default` SET `description` = 'Mode of the current gametype:<UL>\r\n<LI>0 = Normal mod standard (default).\r\n<LI>1 = Deathmatch (only need to set if team names are NOT "Unassigned" during deathmatch (ie. in CSS Deathmatch).</UL>' WHERE `parameter` = 'GameType';
DELETE FROM `hlstats_Teams` WHERE `code` IN ('Spectator','Spectators','Unassigned','#FF_TEAM_UNASSIGNED');
UPDATE `hlstats_Teams` SET `code` = 'Spectator' WHERE `code`='Spectators' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'insmod');
INSERT IGNORE INTO `hlstats_Teams` (`game`, `code`, `name`, `hidden`, `playerlist_bgcolor`, `playerlist_color`, `playerlist_index`) VALUES
('l4d', 'Survivor', 'Survivors', '0', '#E0E4E5', '#4B6168', 1),
('l4d', 'Infected', 'Infected', '0', '#E5D5D5', '#68090B', 2),
('fof', 'DESPERADOS', 'Desparados', '0', '#D2E8F7','#0080C0', 1),
('fof', 'VIGILANTES', 'Vigilantes', '0', '#FFD5D5','#FF2D2D', 2),
('ges', 'MI6', 'MI6', '0', '#D2E8F7','#0080C0', 1),
('ges', 'Janus', 'Janus', '0', '#FFD5D5','#FF2D2D', 2);
UPDATE `hlstats_Weapons` SET `code` = 'weapon_fnfal' WHERE `code`='weapon_fnfa1' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'insmod');
INSERT IGNORE INTO `hlstats_Weapons` (`game`, `code`, `name`, `modifier`) VALUES
('zps', 'winchester','Winchester Double Barreled Shotgun',1),
('l4d', 'rifle', 'M16 Assault Rifle', 1.00),
('l4d', 'autoshotgun', 'Auto Shotgun', 1.00),
('l4d', 'pumpshotgun', 'Pump Shotgun', 1.30),
('l4d', 'smg', 'Uzi', 1.20),
('l4d', 'dual_pistols', 'Dual Pistols', 1.60),
('l4d', 'pipe_bomb', 'Pipe Bomb', 1.00),
('l4d', 'hunting_rifle', 'Hunting Rifle', 1.00),
('l4d', 'pistol', 'Pistol', 2.00),
('l4d', 'prop_minigun', 'Mounted Machine Gun', 1.20),
('l4d', 'tank_claw', 'Tank\'s Claws', 3.00),
('l4d', 'hunter_claw', 'Hunter\'s Claws', 3.00),
('l4d', 'smoker_claw', 'Smoker\'s Claws', 3.00),
('l4d', 'boomer_claw', 'Boomer\'s Claws', 3.00),
('l4d', 'inferno', 'Molotov/Gas Can Fire', 1.20),
('l4d', 'pipe_bomb', 'Pipe Bomb/Explosion', 0.80),
('l4d', 'infected', 'Infected Horde', 1.00),
('l4d', 'witch', 'Witch\'s Claws', 1.00),
('l4d', 'first_aid_kit', 'First Aid Kit Smash', 1.5),
('l4d', 'entityflame', 'Blaze', 3),
('l4d', 'gascan', 'Gas Can Smash', 1.5),
('l4d', 'molotov', 'Molotov Smash', 1.5),
('l4d', 'pain_pills', 'Pain Pills Smash', 1.5),
('l4d', 'player', 'Player', 1),
('l4d', 'propanetank', 'Propane Tank Smash', 1.5),
('l4d', 'tank_rock', 'Tank\'s Rock', 1.5),
('l4d', 'oxygentank', 'Oxygen Tank Smash', 1.5),
('l4d', 'world', 'World', 1),
('l4d', 'prop_physics', 'Prop Physics', 1),
('fof', 'deringer', 'Deringer', 1),
('fof', 'carbine', 'Carbine', 1),
('fof', 'coltnavy', 'Colt Navy', 1),
('fof', 'bow', 'Bow', 1),
('fof', 'arrow', 'Arrow', 1),
('fof', 'sharps', 'Sharps', 1),
('fof', 'coachgun', 'Coach Gun', 1),
('fof', 'peacemaker', 'Peacemaker', 1),
('fof', 'knife', 'Knife', 2),
('fof', 'physics', 'Exploding Barrel', 1),
('fof', 'dualderinger', 'Dual Deringers', 1),
('fof', 'thrown_axe', 'Thrown Axe', 3),
('fof', 'arrow_fiery', 'Fire Arrow', 2),
('fof', 'thrown_knife', 'Thrown Knife', 3),
('fof', 'dualnavy', 'Dual Colt Navys', 1),
('fof', 'dynamite', 'Dynamite', 3),
('fof', 'explosive_arrow', 'Explosive Arrow', 2),
('fof', 'fists', 'Fists', 2),
('fof', 'axe', 'Axe', 2),
('fof', 'dualpeacemaker', 'Dual Peacemakers', 1),
('fof', 'henryrifle', 'Henry Rifle', 1),
('ges', '#GE_ProximityMine', 'Proximity Mines', 1),
('ges', '#GE_AutoShotgun', 'Automatic Shotgun', 1),
('ges', '#GE_Phantom', 'Phantom', 1),
('ges', '#GE_Knife', 'Hunting Knife', 1),
('ges', '#GE_D5K', 'D5K Deutsche', 1),
('ges', '#GE_SilverPP7', 'Silver PP7', 1),
('ges', '#GE_DD44', 'DD44', 1),
('ges', '#GE_Grenade', 'Grenade', 1),
('ges', '#GE_CougarMagnum', 'Cougar Magnum', 1),
('ges', '#GE_D5K_SILENCED', 'D5K (Silenced)', 1),
('ges', '#GE_Shotgun', 'Shotgun', 1),
('ges', '#GE_Klobb', 'Klobb', 1),
('ges', '#GE_RCP90', 'RC-P90', 1),
('ges', '#GE_RemoteMine', 'Remote Mines', 1),
('ges', '#GE_KF7Soviet', 'KF7 Soviet', 1),
('ges', '#GE_ZMG', 'ZMG', 1),
('ges', '#GE_SniperRifle', 'Sniper Rifle', 1),
('ges', '#GE_GoldPP7', 'Golden PP7', 1),
('ges', '#GE_AR33', 'US AR33 Assault', 1),
('ges', '#GE_GoldenGun', 'Golden Gun', 1),
('ges', '#GE_ThrowingKnife', 'Throwing Knives', 1),
('ges', '#GE_PP7', 'PP7', 1),
('ges', '#GE_PP7_SILENCED', 'PP7 (Silenced)', 1),
('ges', '#GE_TimedMine', 'Timed Mines', 1),
('ges', '#GE_MilitaryLaser', 'Military Laser', 1),
('ges', '#GE_GrenadeLauncher', 'Grenade Launcher', 1),
('ges', '#GE_Rocket', 'Rocket Launcher', 1),
('ges', '#GE_Taser', 'Taser', 1),
('ges', '#GE_SniperButt', 'Sniper Butt', 1),
('ges', '#GE_Slapper', 'Slappers', 1),
('ges', '#GE_RocketLauncher', 'Rocket Launcher', 1);

View File

@ -0,0 +1,216 @@
DELETE FROM `hlstats_Ribbons` WHERE game = 'tf';
INSERT INTO `hlstats_Ribbons` (`awardCode`, `awardCount`, `special`, `game`, `image`, `ribbonName`) VALUES
('tf_projectile_rocket',1,0,'tf','1_tf_projectile_rocket.png','Bronze Rocket Launcher'),
('tf_projectile_rocket',5,0,'tf','2_tf_projectile_rocket.png','Silver Rocket Launcher'),
('tf_projectile_rocket',10,0,'tf','3_tf_projectile_rocket.png','Gold Rocket Launcher'),
('sniperrifle',1,0,'tf','1_sniperrifle.png','Bronze Sniper Rifle'),
('sniperrifle',5,0,'tf','2_sniperrifle.png','Silver Sniper Rifle'),
('sniperrifle',10,0,'tf','3_sniperrifle.png','Gold Sniper Rifle'),
('minigun',1,0,'tf','1_minigun.png','Bronze Minigun'),
('minigun',5,0,'tf','2_minigun.png','Silver Minigun'),
('minigun',10,0,'tf','3_minigun.png','Gold Minigun'),
('obj_sentrygun',1,0,'tf','1_obj_sentrygun.png','Bronze Sentry Gun'),
('obj_sentrygun',5,0,'tf','2_obj_sentrygun.png','Silver Sentry Gun'),
('obj_sentrygun',10,0,'tf','3_obj_sentrygun.png','Gold Sentry Gun'),
('knife',1,0,'tf','1_knife.png','Bronze Knife'),
('knife',5,0,'tf','2_knife.png','Silver Knife'),
('knife',10,0,'tf','3_knife.png','Gold Knife'),
('scattergun',1,0,'tf','1_scattergun.png','Bronze Scatter Gun'),
('scattergun',5,0,'tf','2_scattergun.png','Silver Scatter Gun'),
('scattergun',10,0,'tf','3_scattergun.png','Gold Scatter Gun'),
('tf_projectile_pipe',1,0,'tf','1_tf_projectile_pipe.png','Bronze Grenade Launcher'),
('tf_projectile_pipe',5,0,'tf','2_tf_projectile_pipe.png','Silver Grenade Launcher'),
('tf_projectile_pipe',10,0,'tf','3_tf_projectile_pipe.png','Gold Grenade Launcher'),
('flamethrower',1,0,'tf','1_flamethrower.png','Bronze Flamethrower'),
('flamethrower',5,0,'tf','2_flamethrower.png','Silver Flamethrower'),
('flamethrower',10,0,'tf','3_flamethrower.png','Gold Flamethrower'),
('tf_projectile_pipe_remote',1,0,'tf','1_tf_projectile_pipe_remote.png','Bronze Sticky Launcher'),
('tf_projectile_pipe_remote',5,0,'tf','2_tf_projectile_pipe_remote.png','Silver Sticky Launcher'),
('tf_projectile_pipe_remote',10,0,'tf','3_tf_projectile_pipe_remote.png','Gold Sticky Launcher'),
('shotgun_primary',1,0,'tf','1_shotgun_primary.png','Bronze Engy Shotgun'),
('shotgun_primary',5,0,'tf','2_shotgun_primary.png','Silver Engy Shotgun'),
('shotgun_primary',10,0,'tf','3_shotgun_primary.png','Gold Engy Shotgun'),
('smg',1,0,'tf','1_smg.png','Bronze Submachine Gun'),
('smg',5,0,'tf','2_smg.png','Silver Submachine Gun'),
('smg',10,0,'tf','3_smg.png','Gold Submachine Gun'),
('shotgun_soldier',1,0,'tf','1_shotgun_soldier.png','Bronze Soldier Shotgun'),
('shotgun_soldier',5,0,'tf','2_shotgun_soldier.png','Silver Soldier Shotgun'),
('shotgun_soldier',10,0,'tf','3_shotgun_soldier.png','Gold Soldier Shotgun'),
('revolver',1,0,'tf','1_revolver.png','Bronze Revolver'),
('revolver',5,0,'tf','2_revolver.png','Silver Revolver'),
('revolver',10,0,'tf','3_revolver.png','Gold Revolver'),
('shotgun_pyro',1,0,'tf','1_shotgun_pyro.png','Bronze Pyro Shotgun'),
('shotgun_pyro',5,0,'tf','2_shotgun_pyro.png','Silver Pyro Shotgun'),
('shotgun_pyro',10,0,'tf','3_shotgun_pyro.png','Gold Pyro Shotgun'),
('bat',1,0,'tf','1_bat.png','Bronze Bat'),
('bat',5,0,'tf','2_bat.png','Silver Bat'),
('bat',10,0,'tf','3_bat.png','Gold Bat'),
('wrench',1,0,'tf','1_wrench.png','Bronze Wrench'),
('wrench',5,0,'tf','2_wrench.png','Silver Wrench'),
('wrench',10,0,'tf','3_wrench.png','Gold Wrench'),
('shotgun_hwg',1,0,'tf','1_shotgun_hwg.png','Bronze Heavy Shotgun'),
('shotgun_hwg',5,0,'tf','2_shotgun_hwg.png','Silver Heavy Shotgun'),
('shotgun_hwg',10,0,'tf','3_shotgun_hwg.png','Gold Heavy Shotgun'),
('club',1,0,'tf','1_club.png','Bronze Machete'),
('club',5,0,'tf','2_club.png','Silver Machete'),
('club',10,0,'tf','3_club.png','Gold Machete'),
('pistol_scout',1,0,'tf','1_pistol_scout.png','Bronze Scout Pistol'),
('pistol_scout',5,0,'tf','2_pistol_scout.png','Silver Scout Pistol'),
('pistol_scout',10,0,'tf','3_pistol_scout.png','Gold Scout Pistol'),
('pistol',1,0,'tf','1_pistol.png','Bronze Engy Pistol'),
('pistol',5,0,'tf','2_pistol.png','Silver Engy Pistol'),
('pistol',10,0,'tf','3_pistol.png','Gold Engy Pistol'),
('bottle',1,0,'tf','1_bottle.png','Bronze Bottle'),
('bottle',5,0,'tf','2_bottle.png','Silver Bottle'),
('bottle',10,0,'tf','3_bottle.png','Gold Bottle'),
('shovel',1,0,'tf','1_shovel.png','Bronze Shovel'),
('shovel',5,0,'tf','2_shovel.png','Silver Shovel'),
('shovel',10,0,'tf','3_shovel.png','Gold Shovel'),
('fireaxe',1,0,'tf','1_fireaxe.png','Bronze Fire Axe'),
('fireaxe',5,0,'tf','2_fireaxe.png','Silver Fire Axe'),
('fireaxe',10,0,'tf','3_fireaxe.png','Gold Fire Axe'),
('fists',1,0,'tf','1_fists.png','Bronze Fists'),
('fists',5,0,'tf','2_fists.png','Silver Fists'),
('fists',10,0,'tf','3_fists.png','Gold Fists'),
('ubersaw',1,0,'tf','1_ubersaw.png','Bronze Ubersaw'),
('ubersaw',5,0,'tf','2_ubersaw.png','Silver Ubersaw'),
('ubersaw',10,0,'tf','3_ubersaw.png','Gold Ubersaw'),
('blutsauger',1,0,'tf','1_blutsauger.png','Bronze Blutsauger'),
('blutsauger',5,0,'tf','2_blutsauger.png','Silver Blutsauger'),
('blutsauger',10,0,'tf','3_blutsauger.png','Gold Blutsauger'),
('axtinguisher',1,0,'tf','1_axtinguisher.png','Bronze Axtinguisher'),
('axtinguisher',5,0,'tf','2_axtinguisher.png','Silver Axtinguisher'),
('axtinguisher',10,0,'tf','3_axtinguisher.png','Gold Axtinguisher'),
('deflect_flare',1,0,'tf','1_deflect_flare.png','Bronze Deflected Flare'),
('deflect_flare',5,0,'tf','2_deflect_flare.png','Silver Deflected Flare'),
('deflect_flare',10,0,'tf','3_deflect_flare.png','Gold Deflected Flare'),
('syringegun_medic',1,0,'tf','1_syringegun_medic.png','Bronze Syringe Gun'),
('syringegun_medic',5,0,'tf','2_syringegun_medic.png','Silver Syringe Gun'),
('syringegun_medic',10,0,'tf','3_syringegun_medic.png','Gold Syringe Gun'),
('bonesaw',1,0,'tf','1_bonesaw.png','Bronze Bonesaw'),
('bonesaw',5,0,'tf','2_bonesaw.png','Silver Bonesaw'),
('bonesaw',10,0,'tf','3_bonesaw.png','Gold Bonesaw'),
('deflect_promode',1,0,'tf','1_deflect_promode.png','Bronze Deflected Grenade'),
('deflect_promode',5,0,'tf','2_deflect_promode.png','Silver Deflected Grenade'),
('deflect_promode',10,0,'tf','3_deflect_promode.png','Gold Deflected Grenade'),
('deflect_rocket',1,0,'tf','1_deflect_rocket.png','Bronze Deflected Rocket'),
('deflect_rocket',5,0,'tf','2_deflect_rocket.png','Silver Deflected Rocket'),
('deflect_rocket',10,0,'tf','3_deflect_rocket.png','Gold Deflected Rocket'),
('deflect_sticky',1,0,'tf','1_deflect_sticky.png','Bronze Deflected Sticky'),
('deflect_sticky',5,0,'tf','2_deflect_sticky.png','Silver Deflected Sticky'),
('deflect_sticky',10,0,'tf','3_deflect_sticky.png','Gold Deflected Sticky'),
('flaregun',1,0,'tf','1_flaregun.png','Bronze Flare Gun'),
('flaregun',5,0,'tf','2_flaregun.png','Silver Flare Gun'),
('flaregun',10,0,'tf','3_flaregun.png','Gold Flare Gun'),
('natascha',1,0,'tf','1_natascha.png','Bronze Natascha'),
('natascha',5,0,'tf','2_natascha.png','Silver Natascha'),
('natascha',10,0,'tf','3_natascha.png','Gold Natascha'),
('gloves',1,0,'tf','1_gloves.png','Bronze K.G.B.'),
('gloves',5,0,'tf','2_gloves.png','Silver K.G.B.'),
('gloves',10,0,'tf','3_gloves.png','Gold K.G.B.'),
('taunt_heavy',1,0,'tf','1_taunt_heavy.png','Bronze Heavy Taunt'),
('taunt_heavy',5,0,'tf','2_taunt_heavy.png','Silver Heavy Taunt'),
('taunt_heavy',10,0,'tf','3_taunt_heavy.png','Gold Heavy Taunt'),
('taunt_pyro',1,0,'tf','1_taunt_pyro.png','Bronze Hadouken'),
('taunt_pyro',5,0,'tf','2_taunt_pyro.png','Silver Hadouken'),
('taunt_pyro',10,0,'tf','3_taunt_pyro.png','Gold Hadouken'),
('chargedeployed',1,0,'tf','1_chargedeployed.png','Bronze Uber'),
('chargedeployed',5,0,'tf','2_chargedeployed.png','Silver Uber'),
('chargedeployed',10,0,'tf','3_chargedeployed.png','Gold Uber'),
('sandvich',1,0,'tf','1_sandvich.png','Bronze Sandvich'),
('sandvich',5,0,'tf','2_sandvich.png','Silver Sandvich'),
('sandvich',10,0,'tf','3_sandvich.png','Gold Sandvich'),
('domination',1,0,'tf','1_domination.png','Bronze Dominator'),
('domination',5,0,'tf','2_domination.png','Silver Dominator'),
('domination',10,0,'tf','3_domination.png','Gold Dominator'),
('revenge',1,0,'tf','1_revenge.png','Bronze Revenger'),
('revenge',5,0,'tf','2_revenge.png','Silver Revenger'),
('revenge',10,0,'tf','3_revenge.png','Gold Revenger'),
('mostkills',1,0,'tf','1_mostkills.png','Bronze Kill Award'),
('mostkills',5,0,'tf','2_mostkills.png','Silver Kill Award'),
('mostkills',10,0,'tf','3_mostkills.png','Gold Kill Award'),
('backstab',1,0,'tf','1_backstab.png','Bronze Backstabber'),
('backstab',5,0,'tf','2_backstab.png','Silver Backstabber'),
('backstab',10,0,'tf','3_backstab.png','Gold Backstabber'),
('pointcaptured',1,0,'tf','1_pointcaptured.png','Bronze Capture Point'),
('pointcaptured',5,0,'tf','2_pointcaptured.png','Silver Capture Point'),
('pointcaptured',10,0,'tf','3_pointcaptured.png','Gold Capture Point'),
('captureblocked',1,0,'tf','1_captureblocked.png','Bronze Blocker'),
('captureblocked',5,0,'tf','2_captureblocked.png','Silver Blocker'),
('captureblocked',10,0,'tf','3_captureblocked.png','Gold Blocker'),
('flagevent_defended',1,0,'tf','1_flagevent_defended.png','Bronze Defender'),
('flagevent_defended',5,0,'tf','2_flagevent_defended.png','Silver Defender'),
('flagevent_defended',10,0,'tf','3_flagevent_defended.png','Gold Defender'),
('flagevent_captured',1,0,'tf','1_flagevent_captured.png','Bronze Intelligence'),
('flagevent_captured',5,0,'tf','2_flagevent_captured.png','Silver Intelligence'),
('flagevent_captured',10,0,'tf','3_flagevent_captured.png','Gold Intelligence'),
('kill assist',1,0,'tf','1_kill assist.png','Bronze Assister'),
('kill assist',5,0,'tf','2_kill assist.png','Silver Assister'),
('kill assist',10,0,'tf','3_kill assist.png','Gold Assister'),
('bonuspoints',1,0,'tf','1_bonuspoints.png','Bronze Healer'),
('bonuspoints',5,0,'tf','2_bonuspoints.png','Silver Healer'),
('bonuspoints',10,0,'tf','3_bonuspoints.png','Gold Healer'),
('kill_assist_medic',1,0,'tf','1_kill_assist_medic.png','Bronze Healer'),
('kill_assist_medic',5,0,'tf','2_kill_assist_medic.png','Silver Healer'),
('kill_assist_medic',10,0,'tf','3_kill_assist_medic.png','Gold Healer'),
('builtobject_obj_attachment_sapper',1,0,'tf','1_builtobject_obj_attachement_sapper.png','Bronze Sapper'),
('builtobject_obj_attachment_sapper',5,0,'tf','2_builtobject_obj_attachement_sapper.png','Silver Sapper'),
('builtobject_obj_attachment_sapper',10,0,'tf','3_builtobject_obj_attachement_sapper.png','Gold Sapper');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`) VALUES
('W','tf','tf_projectile_pipe_remote','Remote Demolition Man','pipe bomb kills'),
('W','tf','tf_projectile_pipe','Demolition Man','pipe bomb kills'),
('W','tf','sniperrifle','Top Sniper','snipings'),
('W','tf','smg','Submachine gun','smg kills'),
('W','tf','shotgun_soldier','Shotgun Soldier','shotgun kills'),
('W','tf','shotgun_pyro','Shotgun Pyro','shotgun kills'),
('W','tf','shotgun_primary','Shotgun','shotgun kills'),
('W','tf','scattergun','Fast and Furious','scattergun kills'),
('W','tf','revolver','Wayne','revolver kills'),
('W','tf','pistol','Pistol','pistol kills'),
('W','tf','obj_sentrygun','Engineer','sentry kills'),
('W','tf','minigun','Terminator','minigun kills'),
('W','tf','knife','Stabber','knifings'),
('W','tf','flamethrower','Pyro','flame burnings'),
('W','tf','bat','Baseball freak','bat kills'),
('O','tf','pointcaptured','Capturer','checkpoint captures'),
('O','tf','kill assist','Assistance','kill assists'),
('O','tf','captureblocked','Blocker','checkpoint blockings'),
('O','tf','chargedeployed','Ubermedic','deployed charges'),
('W','tf','latency','Best Latency','ms average connection'),
('W','tf','tf_projectile_rocket','Soldier','rocket kills'),
('W','tf','wrench','Engineer on Rage','wrench kills'),
('W','tf','shovel','Grave Digger','shovel kills'),
('W','tf','fireaxe','Axe-O-Mania','axe kills'),
('W','tf','bottle','Drunken Demoman','bottle kills'),
('W','tf','bonesaw','The Saw','sawed bones'),
('W','tf','fists','Fisting king','fistings'),
('W','tf','club','Now that\'s a knife','machete kills'),
('W','tf','pistol_scout','Scout Pistol','pistol kills'),
('W','tf','shotgun_hwg','Shotgun Heavy','shotgun kills'),
('W','tf','syringegun_medic','The Injector','syringe kills'),
('W','tf','axtinguisher', 'Axtinguisher', 'kills with the axtinguisher'),
('W','tf','backburner', 'Backburner', 'burned backs'),
('W','tf','blutsauger', 'Blutsauger', 'times sucked blood'),
('W','tf','flaregun', 'Flare Gun', 'flare gun kills'),
('W','tf','gloves', 'Heavy surgery', 'KGB kills'),
('W','tf','natascha', 'Nataschas Friend', 'Natascha kills'),
('W','tf','ubersaw', 'Ubersaw', 'kills with ubersaw'),
('W','tf','deflect_flare', 'Deflected Flare', 'kills with deflected flare'),
('W','tf','deflect_promode', 'Deflected Grenade', 'kills with deflected grenade'),
('W','tf','deflect_rocket', 'Deflected Rocket', 'kills with deflected rocket'),
('W','tf','deflect_sticky', 'Deflected Sticky', 'kills with deflected sticky'),
('W','tf','taunt_heavy', 'POW! Ha Ha', 'kills with heavy taunt'),
('W','tf','taunt_pyro', 'Hadouken', 'kills with Hadouken'),
('W','tf','mostkills','Most Kills','kills'),
('W','tf','bonuspoints','Most Bonus Points','bonus points'),
('O','tf', 'sandvich', 'Hungry Hungry Heavy', 'sandviches eaten'),
('O','tf', 'backstab', 'Backstabber', 'backstabs'),
('O','tf','flagevent_defended','Defender of the Flag','flag defenses'),
('O','tf','flagevent_captured','The Mad Capper','flag captures'),
('O','tf','killedobject_obj_dispenser','NO METAL FOR YOU!','dispensers destroyed'),
('O','tf','killedobject_obj_sentrygun','Say no to sentries','sentry guns destroyed'),
('O','tf','builtobject_obj_sentrygun','Bob the Builder','sentry guns built'),
('O','tf','builtobject_obj_attachment_sapper','Super Sapper','sappers placed'),
('O','tf','kill_assist_medic','Medic Assistance','medic assists');

View File

@ -0,0 +1,4 @@
UPDATE
hlstats_PlayerUniqueIds
SET
uniqueId = replace(uniqueId, 'STEAM_1:',''), uniqueId = replace(uniqueId, 'STEAM_0:','');

View File

@ -0,0 +1,46 @@
ALTER TABLE `hlstats_Actions`
CHANGE `description` `description` varchar(128) default NULL;
ALTER TABLE `hlstats_Events_Admin`
CHANGE `type` `type` varchar(64) NOT NULL default 'Unknown',
CHANGE `message` `message` varchar(128) NOT NULL default '',
CHANGE `playerName` `playerName` varchar(64) NOT NULL default '';
ALTER TABLE `hlstats_Events_ChangeName`
CHANGE `oldName` `oldName` varchar(64) NOT NULL default '',
CHANGE `newName` `newName` varchar(64) NOT NULL default '',
ADD KEY `playerId` (`playerId`);
ALTER TABLE `hlstats_Events_ChangeRole`
ADD KEY `playerId` (`playerId`);
ALTER TABLE `hlstats_Events_ChangeTeam`
ADD KEY `playerId` (`playerId`);
ALTER TABLE `hlstats_Events_Chat`
CHANGE `message` `message` varchar(128) NOT NULL default '';
ALTER TABLE `hlstats_Events_PlayerPlayerActions`
ADD KEY `playerId` (`playerId`);
ALTER TABLE `hlstats_Events_Statsme2`
ADD KEY `weapon` (`weapon`);
ALTER TABLE `hlstats_Events_Suicides`
ADD KEY `playerId` (`playerId`);
ALTER TABLE `hlstats_Events_Teamkills`
ADD KEY `killerId` (`killerId`);
ALTER TABLE `hlstats_Options`
CHANGE `keyname` `keyname` varchar(32) NOT NULL default '',
CHANGE `value` `value` varchar(128) NOT NULL default '';
ALTER TABLE `hlstats_Options_Choices`
CHANGE `keyname` `keyname` varchar(32) NOT NULL;
ALTER TABLE `hlstats_Players`
CHANGE `lastName` `lastName` varchar(64) NOT NULL default '';
ALTER TABLE `hlstats_PlayerUniqueIds`
CHANGE `uniqueId` `uniqueId` varchar(64) NOT NULL default '';

View File

@ -0,0 +1,14 @@
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`) VALUES
('W','cstrike','grenade','Grenadier','kills with grenade');
UPDATE `hlstats_Options` SET `opttype` = 2 WHERE `keyname` IN ('awards_d_date','awards_numdays');
INSERT IGNORE INTO `hlstats_Ribbons` (`awardCode`, `awardCount`, `special`, `game`, `image`, `ribbonName`) VALUES
('killed_a_hostage',5,0,'cstrike','1_killed_a_hostage.png','Award of Hostage Killing'),
('rescued_a_hostage',5,0,'cstrike','1_rescued_a_hostage.png','Award of Hostage Rescue'),
('planted_the_bomb',5,0,'cstrike','1_planted_the_bomb.png','Award of Planting the Bomb'),
('grenade',5,0,'cstrike','1_grenade.png','Award of Grenade'),
('defused_the_bomb',5,0,'cstrike','1_defused_the_bomb.png','Award of Defusing');
UPDATE `hlstats_Servers_Config_Default` SET `description` = 'If enabled, bots are not tracked 1=on 0=off(default).' WHERE `parameter` = 'IgnoreBots';
UPDATE `hlstats_Servers_Config_Default` SET `description` = 'Valid values are SOURCEMOD, MINISTATS, BEETLE, MANI, and AMXX if one of such plugins are installed.' WHERE `parameter` = 'Mod';

View File

@ -0,0 +1,97 @@
INSERT IGNORE INTO `hlstats_Actions` (`game`, `code`, `reward_player`, `reward_team`, `team`, `description`, `for_PlayerActions`, `for_PlayerPlayerActions`, `for_TeamActions`, `for_WorldActions`) VALUES
('tf', 'first_blood', 1, 0, '', 'First Blood', '1', '', '', ''),
('tf', 'steal_sandvich', 2, 0, '', 'Steal Sandvich', '', '1', '', ''),
('tf', 'stun', 0, 0, '', 'Stun', '', '1', '', ''),
('tfc','Capture Point 1',2,5,'1','Captured Point 1','1','0','0','0'),
('tfc','Capture Point 2',2,5,'1','Captured Point 2','1','0','0','0'),
('tfc','Capture Point 3',2,5,'1','Captured Point 3','1','0','0','0'),
('tfc','headshot',1,0,'0','Headshot Kill','1','0','0','0'),
('ges', 'headshot', 1, 0, '', 'Headshot Kill', '1', '', '', '');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W',`code`,'taunt_scout','Home Run King','grand slams' FROM `hlstats_Games` WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W',`code`,'bat_wood','Mr. Sandman','kills with the Sandman' FROM `hlstats_Games` WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'O',`code`,'stun','Absolutely Stunning','stuns' FROM `hlstats_Games` WHERE `realgame` = 'tf');
UPDATE IGNORE `hlstats_Awards` SET `code` = 'builtobject_obj_attachment_sapper' WHERE `code` = 'builtobject_obj_attachement_sapper';
DELETE FROM `hlstats_Awards` WHERE `code` = 'builtobject_obj_attachement_sapper';
ALTER TABLE `hlstats_Events_Entries`
ADD KEY `playerId` (`playerId`);
INSERT IGNORE INTO `hlstats_Games_Defaults` (`code`, `parameter`, `value`)
(SELECT `code`, 'ConnectAnnounce','1' FROM `hlstats_Games`);
INSERT IGNORE INTO `hlstats_Games_Defaults` (`code`, `parameter`, `value`)
(SELECT `code`, 'UpdateHostname','1' FROM `hlstats_Games`);
INSERT IGNORE INTO `hlstats_Games_Defaults` (`code`, `parameter`, `value`)
(SELECT `code`, 'DefaultDisplayEvents','1' FROM `hlstats_Games`);
UPDATE `hlstats_Games_Defaults` SET `value` = 0 WHERE `code` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'l4d');
ALTER TABLE `hlstats_Livestats`
CHANGE `cli_city` `cli_city` varchar(64) NOT NULL default '',
CHANGE `cli_country` `cli_country` varchar(64) NOT NULL default '',
CHANGE `cli_state` `cli_state` varchar(64) NOT NULL default '',
CHANGE `steam_id` `steam_id` varchar(64) NOT NULL default '',
CHANGE `name` `name` varchar(64) NOT NULL;
INSERT IGNORE INTO `hlstats_Options` (`keyname`, `value`, `opttype`) VALUES
('dbversion', '1.5.3', 2);
ALTER TABLE `hlstats_PlayerNames`
CHANGE `name` `name` varchar(64) NOT NULL default '';
UPDATE IGNORE `hlstats_Ribbons` SET `awardCode` = 'builtobject_obj_attachment_sapper' WHERE `awardCode` = 'builtobject_obj_attachement_sapper';
UPDATE IGNORE `hlstats_Ribbons` SET `image` = replace(image, 'attachement','attachment') WHERE `image` LIKE '%attachement%';
ALTER TABLE `hlstats_Roles`
CHANGE `name` `name` varchar(64) NOT NULL default '';
INSERT IGNORE INTO `hlstats_Roles` (`game`, `code`, `name`, `hidden`) VALUES
('ges', 'jaws', 'Jaws', '0'),
('ges', 'bond', 'Bond', '0'),
('ges', 'boris', 'Boris', '0'),
('ges', 'Mayday', 'May Day', '0'),
('ges', 'Mishkin', 'Mishkin', '0'),
('ges', 'oddjob', 'Oddjob', '0'),
('ges', 'ourumov', 'Ourumov', '0'),
('ges', 'samedi', 'Samedi', '0'),
('ges', 'valentin', 'Valentin', '0');
ALTER TABLE `hlstats_Servers`
CHANGE `city` `city` varchar(64) NOT NULL default '',
CHANGE `country` `country` varchar(64) NOT NULL default '';
INSERT IGNORE INTO `hlstats_Servers_Config` (`serverid`, `parameter`, `value`)
(SELECT `serverId`, 'ConnectAnnounce','1' FROM `hlstats_Servers`);
INSERT IGNORE INTO `hlstats_Servers_Config` (`serverid`, `parameter`, `value`)
(SELECT `serverId`, 'UpdateHostname','1' FROM `hlstats_Servers`);
INSERT IGNORE INTO `hlstats_Servers_Config` (`serverid`, `parameter`, `value`)
(SELECT `serverId`, 'DefaultDisplayEvents','1' FROM `hlstats_Servers`);
INSERT IGNORE INTO `hlstats_Servers_Config_Default` (`parameter`, `value`, `description`) VALUES
('ConnectAnnounce', '1', 'Toggle display of message upon each player connect showing player points/kills, rank, and country of origin. 1=on(default) 0=off'),
('UpdateHostname', '1', 'Toggles auto-update of server name from hostname cvar 1=on(default) 0=off'),
('DefaultDisplayEvents', '1', 'Toggle players default option to see kill/event messages on server. 1=on(default) 0=off');
UPDATE `hlstats_Weapons` SET `name` = 'Sentry Gun (Level 1)' WHERE `code` = 'obj_sentrygun' AND `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Weapons` (`game`, `code`, `name`, `modifier`)
(SELECT `code`, 'taunt_scout', 'Grand Slam', 3 FROM `hlstats_Games` WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Weapons` (`game`, `code`, `name`, `modifier`)
(SELECT `code`, 'bat_wood', 'The Sandman', 1.75 FROM `hlstats_Games` WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Weapons` (`game`, `code`, `name`, `modifier`)
(SELECT `code`, 'obj_sentrygun2', 'Sentry Gun (Level 2)', 3 FROM `hlstats_Games` WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Weapons` (`game`, `code`, `name`, `modifier`)
(SELECT `code`, 'obj_sentrygun3', 'Sentry Gun (Level 3)', 3 FROM `hlstats_Games` WHERE `realgame` = 'tf');

View File

@ -0,0 +1,489 @@
INSERT IGNORE INTO `hlstats_Actions` (`game`, `code`, `reward_player`, `reward_team`, `team`, `description`, `for_PlayerActions`, `for_PlayerPlayerActions`, `for_TeamActions`, `for_WorldActions`) VALUES
('bg2', 'kill_streak_2', 1, 0, '', 'Double Kill (2 kills)', '1', '', '', ''),
('bg2', 'kill_streak_3', 2, 0, '', 'Triple Kill (3 kills)', '1', '', '', ''),
('bg2', 'kill_streak_4', 3, 0, '', 'Domination (4 kills)', '1', '', '', ''),
('bg2', 'kill_streak_5', 4, 0, '', 'Rampage (5 kills)', '1', '', '', ''),
('bg2', 'kill_streak_6', 5, 0, '', 'Mega Kill (6 kills)', '1', '', '', ''),
('bg2', 'kill_streak_7', 6, 0, '', 'Ownage (7 kills)', '1', '', '', ''),
('bg2', 'kill_streak_8', 7, 0, '', 'Ultra Kill (8 kills)', '1', '', '', ''),
('bg2', 'kill_streak_9', 8, 0, '', 'Killing Spree (9 kills)', '1', '', '', ''),
('bg2', 'kill_streak_10', 9, 0, '', 'Monster Kill (10 kills)', '1', '', '', ''),
('bg2', 'kill_streak_11', 10, 0, '', 'Unstoppable (11 kills)', '1', '', '', ''),
('bg2', 'kill_streak_12', 11, 0, '', 'God Like (12+ kills)', '1', '', '', ''),
('sgtls', 'kill_streak_2', 1, 0, '', 'Double Kill (2 kills)', '1', '', '', ''),
('sgtls', 'kill_streak_3', 2, 0, '', 'Triple Kill (3 kills)', '1', '', '', ''),
('sgtls', 'kill_streak_4', 3, 0, '', 'Domination (4 kills)', '1', '', '', ''),
('sgtls', 'kill_streak_5', 4, 0, '', 'Rampage (5 kills)', '1', '', '', ''),
('sgtls', 'kill_streak_6', 5, 0, '', 'Mega Kill (6 kills)', '1', '', '', ''),
('sgtls', 'kill_streak_7', 6, 0, '', 'Ownage (7 kills)', '1', '', '', ''),
('sgtls', 'kill_streak_8', 7, 0, '', 'Ultra Kill (8 kills)', '1', '', '', ''),
('sgtls', 'kill_streak_9', 8, 0, '', 'Killing Spree (9 kills)', '1', '', '', ''),
('sgtls', 'kill_streak_10', 9, 0, '', 'Monster Kill (10 kills)', '1', '', '', ''),
('sgtls', 'kill_streak_11', 10, 0, '', 'Unstoppable (11 kills)', '1', '', '', ''),
('sgtls', 'kill_streak_12', 11, 0, '', 'God Like (12+ kills)', '1', '', '', ''),
('sgtls', 'Goa\'uld_Win', 5, 0, '', 'Goa\'uld Won Round', '', '', '1', ''),
('sgtls', 'Tau\'ri_Win', 5, 0, '', 'Tau\'ri Won Round', '', '', '1', ''),
('dystopia', 'kill_streak_2', 1, 0, '', 'Double Kill (2 kills)', '1', '', '', ''),
('dystopia', 'kill_streak_3', 2, 0, '', 'Triple Kill (3 kills)', '1', '', '', ''),
('dystopia', 'kill_streak_4', 3, 0, '', 'Domination (4 kills)', '1', '', '', ''),
('dystopia', 'kill_streak_5', 4, 0, '', 'Rampage (5 kills)', '1', '', '', ''),
('dystopia', 'kill_streak_6', 5, 0, '', 'Mega Kill (6 kills)', '1', '', '', ''),
('dystopia', 'kill_streak_7', 6, 0, '', 'Ownage (7 kills)', '1', '', '', ''),
('dystopia', 'kill_streak_8', 7, 0, '', 'Ultra Kill (8 kills)', '1', '', '', ''),
('dystopia', 'kill_streak_9', 8, 0, '', 'Killing Spree (9 kills)', '1', '', '', ''),
('dystopia', 'kill_streak_10', 9, 0, '', 'Monster Kill (10 kills)', '1', '', '', ''),
('dystopia', 'kill_streak_11', 10, 0, '', 'Unstoppable (11 kills)', '1', '', '', ''),
('dystopia', 'kill_streak_12', 11, 0, '', 'God Like (12+ kills)', '1', '', '', ''),
('dystopia', 'Capture Guard Post', 2, 0, '', 'Capture Guard Post', '1', '', '', ''),
('dystopia', 'Capture Interior Spawn', 2, 0, '', 'Capture Interior Spawn', '1', '', '', ''),
('dystopia', 'Capture Internal Spawn', 2, 0, '', 'Capture Internal Spawn', '1', '', '', ''),
('dystopia', 'Capture The Docks', 2, 0, '', 'Capture The Docks', '1', '', '', ''),
('dystopia', 'Capture the Inner Base', 2, 0, '', 'Capture the Inner Base', '1', '', '', ''),
('dystopia', 'Capture the Spawn', 2, 0, '', 'Capture the Spawn', '1', '', '', ''),
('dystopia', 'Cut Entrance Spawn Power', 2, 0, '', 'Cut Entrance Spawn Power', '1', '', '', ''),
('dystopia', 'Defend Interior Spawn', 2, 0, '', 'Defend Interior Spawn', '1', '', '', ''),
('dystopia', 'Defend Middle Spawn', 2, 0, '', 'Defend Middle Spawn', '1', '', '', ''),
('dystopia', 'Defend Security JIP', 2, 0, '', 'Defend Security JIP', '1', '', '', ''),
('dystopia', 'Destroy Broadcast Server', 2, 0, '', 'Destroy Broadcast Server', '1', '', '', ''),
('dystopia', 'Destroy Cooling Access Door', 2, 0, '', 'Destroy Cooling Access Door', '1', '', '', ''),
('dystopia', 'Destroy Cooling Tank', 2, 0, '', 'Destroy Cooling Tank', '1', '', '', ''),
('dystopia', 'Destroy The Bulkhead', 2, 0, '', 'Destroy The Bulkhead', '1', '', '', ''),
('dystopia', 'Destroy The Core', 2, 0, '', 'Destroy The Core', '1', '', '', ''),
('dystopia', 'Destroy the Firewall', 2, 0, '', 'Destroy the Firewall', '1', '', '', ''),
('dystopia', 'Destroy the Reactor', 2, 0, '', 'Destroy the Reactor', '1', '', '', ''),
('dystopia', 'Destroy Transformer', 2, 0, '', 'Destroy Transformer', '1', '', '', ''),
('dystopia', 'Enable Auxilary Power Feed', 2, 0, '', 'Enable Auxilary Power Feed', '1', '', '', ''),
('dystopia', 'Enable The 4-Point Override', 2, 0, '', 'Enable The 4-Point Override', '1', '', '', ''),
('dystopia', 'Escort Hostage', 2, 0, '', 'Escort Hostage', '1', '', '', ''),
('dystopia', 'Hack Middle Spawn', 2, 0, '', 'Hack Middle Spawn', '1', '', '', ''),
('dystopia', 'Hack Spawn Controls', 2, 0, '', 'Hack Spawn Controls', '1', '', '', ''),
('dystopia', 'Hack the Perimeter', 2, 0, '', 'Hack the Perimeter', '1', '', '', ''),
('dystopia', 'Inject The Virus', 2, 0, '', 'Inject The Virus', '1', '', '', ''),
('dystopia', 'Launch Missile', 2, 0, '', 'Launch Missile', '1', '', '', ''),
('dystopia', 'Locate profile', 2, 0, '', 'Locate profile', '1', '', '', ''),
('dystopia', 'Maintain Power Routing', 2, 0, '', 'Maintain Power Routing', '1', '', '', ''),
('dystopia', 'Open And Destroy Data Stores / Establish An Uplink', 2, 0, '', 'Open And Destroy Data Stores / Establish An Uplink', '1', '', '', ''),
('dystopia', 'Redirect Laser', 2, 0, '', 'Redirect Laser', '1', '', '', ''),
('dystopia', 'Reroute Power To Control Room', 2, 0, '', 'Reroute Power To Control Room', '1', '', '', ''),
('dystopia', 'Shut Down Security', 2, 0, '', 'Shut Down Security', '1', '', '', ''),
('dystopia', 'Shutdown The Production Line', 2, 0, '', 'hutdown The Production Line', '1', '', '', ''),
('dystopia', 'Smash Data Storage', 2, 0, '', 'Smash Data Storage', '1', '', '', ''),
('dystopia', 'Turn Power Offline', 2, 0, '', 'Turn Power Offline', '1', '', '', ''),
('l4d', 'cr0wned', 0, 0, '', 'Cr0wned (killed witch with single headshot)', '1', '', '', ''),
('l4d', 'hunter_punter', 0, 0, '', 'Hunter Punter (melee a Hunter mid-jump)', '1', '', '', ''),
('l4d', 'tounge_twister', 0, 0, '', 'Tounge Twister (kill a Smoker while he is dragging you)', '1', '', '', ''),
('l4d', 'protect_teammate', 0, 0, '', 'Protected Teammate', '1', '', '', ''),
('l4d', 'no_death_on_tank', 0, 0, '', 'No survivors died/incapped from tank', '1', '', '', ''),
('l4d', 'killed_all_survivors', 0, 0, '', 'Killed all survivors', '1', '', '', '');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`) VALUES
('O', 'l4d', 'hunter_punter', 'Hunter Punter', 'hunter punts'),
('O', 'l4d', 'protect_teammate', 'Protector', 'hunter punts'),
('W', 'fof', 'shotgun', 'Winchester Shotgun', 'kills with the Winchester'),
('W', 'bg2', 'brownbess', 'Brown Bess', 'kills with Brown Bess'),
('W', 'bg2', 'brownbess_bayonet', 'Brown Bess - Bayonet', 'kills with Brown Bess Bayonet'),
('W', 'bg2', 'charleville', 'Charleville', 'kills with Charleville'),
('W', 'bg2', 'charleville_bayonet', 'Charleville - Bayonet', 'kills with Charleville Bayonet'),
('W', 'bg2', 'hirschf', 'Hirschfaenger', 'kills with Hirschfaenger'),
('W', 'bg2', 'jaeger', 'Jaeger Rifle', 'kills with Jaeger Rifle'),
('W', 'bg2', 'knife', 'Knife', 'kills with Knife'),
('W', 'bg2', 'pennsylvania', 'Pennsylvania', 'kills with Pennsylvania'),
('W', 'bg2', 'pistol_a', 'British Pistol', 'kills with British Pistol'),
('W', 'bg2', 'pistol_b', 'American Pistol', 'kills with American Pistol'),
('W', 'bg2', 'sabre_a', 'British Sabre', 'kills with British Sabre'),
('W', 'bg2', 'sabre_b', 'American Sabre', 'kills with American Sabre'),
('W', 'bg2', 'mostkills', 'Most Kills', 'kills'),
('W', 'bg2', 'latency', 'Best Latency', 'ms average connection'),
('W', 'sgtls', 'mostkills', 'Most Kills', 'kills'),
('W', 'sgtls', 'latency', 'Best Latency', 'ms average connection'),
('W', 'sgtls', 'p90', 'FN Herstal P-90 Red Dot / FN-H P-90RD', 'kills'),
('W', 'sgtls', 'pistol', 'Beretta M92F-s', 'kills'),
('W', 'sgtls', 'knife', 'Combat Knife', 'kills'),
('W', 'sgtls', 'staff_blast', 'Staff Weapon', 'kills'),
('W', 'sgtls', 'p90D', 'FN Herstal P-90 w/ Disruptor', 'kills'),
('W', 'sgtls', 'hdevice', 'Hand Device / Ribbon Device', 'kills'),
('W', 'sgtls', 'tac_pulse', 'Tac (turrent)', 'kills'),
('W', 'sgtls', 'tac_projectile', 'Tac (bomb)', 'kills'),
('W', 'sgtls', 'c4_charge', 'C4', 'kills'),
('W', 'sgtls', 'grenade_projectile', 'M67 Frag Grenade', 'kills'),
('W', 'sgtls', 'g36', 'H&K G-36', 'kills'),
('W', 'sgtls', 'kull_blast', 'Kull Warrior Staff Device', 'kills'),
('W', 'sgtls', 'suicide_bomb', 'Goa\'uld Suicide Bomb', 'kills'),
('W', 'sgtls', 'kullblaster', 'Kull Warrior Staff Device (blast)', 'kills'),
('W', 'sgtls', 'staff', 'Staff Weapon Melee', 'kills'),
('W', 'sgtls', 'zat_blast', 'Zat', 'kills'),
('W', 'sgtls', 'awp', 'AWP Rifle', 'kills'),
('W', 'sgtls', 'grenade', 'M67 Frag Grenade', 'kills'),
('W', 'sgtls', 'zat', 'Zat (splash)', 'kills'),
('W', 'sgtls', 'tac', 'Tac (splash)', 'kills'),
('O', 'dystopia', 'Capture Guard Post', 'Capture Guard Post', 'captures'),
('O', 'dystopia', 'Capture Interior Spawn', 'Capture Interior Spawn', 'captures'),
('O', 'dystopia', 'Capture Internal Spawn', 'Capture Internal Spawn', 'captures'),
('O', 'dystopia', 'Capture The Docks', 'Capture The Docks', 'captures'),
('O', 'dystopia', 'Capture the Inner Base', 'Capture the Inner Base', 'captures'),
('O', 'dystopia', 'Capture the Spawn', 'Capture the Spawn', 'captures'),
('O', 'dystopia', 'Cut Entrance Spawn Power', 'Cut Entrance Spawn Power', 'power cuts'),
('O', 'dystopia', 'Defend Interior Spawn', 'Defend Interior Spawn', 'defenses'),
('O', 'dystopia', 'Defend Middle Spawn', 'Defend Middle Spawn', 'defenses'),
('O', 'dystopia', 'Defend Security JIP', 'Defend Security JIP', 'defenses'),
('O', 'dystopia', 'Destroy Broadcast Server', 'Destroy Broadcast Server', 'destructions'),
('O', 'dystopia', 'Destroy Cooling Access Door', 'Destroy Cooling Access Door', 'destructions'),
('O', 'dystopia', 'Destroy Cooling Tank', 'Destroy Cooling Tank', 'destructions'),
('O', 'dystopia', 'Destroy The Bulkhead', 'Destroy The Bulkhead', 'destructions'),
('O', 'dystopia', 'Destroy The Core', 'Destroy The Core', 'destructions'),
('O', 'dystopia', 'Destroy the Firewall', 'Destroy the Firewall', 'destructions'),
('O', 'dystopia', 'Destroy the Reactor', 'Destroy the Reactor', 'destructions'),
('O', 'dystopia', 'Destroy Transformer', 'Destroy Transformer', 'destructions'),
('O', 'dystopia', 'Enable Auxilary Power Feed', 'Enable Auxilary Power Feed', 'power feed enablings'),
('O', 'dystopia', 'Enable The 4-Point Override', 'Enable The 4-Point Override', '4-point override enablings'),
('O', 'dystopia', 'Escort Hostage', 'Escort Hostage', 'escorts'),
('O', 'dystopia', 'Hack Middle Spawn', 'Hack Middle Spawn', 'hacks'),
('O', 'dystopia', 'Hack Spawn Controls', 'Hack Spawn Controls', 'hacks'),
('O', 'dystopia', 'Hack the Perimeter', 'Hack the Perimeter', 'hacks'),
('O', 'dystopia', 'Inject The Virus', 'Inject The Virus', 'injections'),
('O', 'dystopia', 'Launch Missile', 'Launch Missile', 'launches'),
('O', 'dystopia', 'Locate profile', 'Locate profile', 'locations'),
('O', 'dystopia', 'Maintain Power Routing', 'Maintain Power Routing', 'maintenances'),
('O', 'dystopia', 'Open And Destroy Data Stores / Establish An Uplink', 'Open And Destroy Data Stores / Establish An Uplink', 'times'),
('O', 'dystopia', 'Redirect Laser', 'Redirect Laser', 'redirections'),
('O', 'dystopia', 'Reroute Power To Control Room', 'Reroute Power To Control Room', 'reroutings'),
('O', 'dystopia', 'Shut Down Security', 'Shut Down Security', 'shutdowns'),
('O', 'dystopia', 'Shutdown The Production Line', 'hutdown The Production Line', 'shutdowns'),
('O', 'dystopia', 'Smash Data Storage', 'Smash Data Storage', 'smashings'),
('O', 'dystopia', 'Turn Power Offline', 'Turn Power Offline', 'times'),
('W', 'dystopia', 'bonuspoints', 'Most Bonus Points', 'bonus points'),
('W', 'dystopia', 'latency', 'Best Latency', 'ms average connection'),
('W', 'dystopia', 'Light Katana', 'Light Katana', 'kills'),
('W', 'dystopia', 'Medium Katana', 'Medium Katana', 'kills'),
('W', 'dystopia', 'Fatman Fist', 'Fatman Fist', 'kills'),
('W', 'dystopia', 'Machine Pistol', 'Machine Pistol', 'kills'),
('W', 'dystopia', 'Shotgun', 'Shotgun', 'kills'),
('W', 'dystopia', 'Laser Rifle', 'Laser Rifle', 'kills'),
('W', 'dystopia', 'BoltGun', 'Bolt Gun', 'kills'),
('W', 'dystopia', 'SmartLock Pistols', 'Smartlock Pistols', 'kills'),
('W', 'dystopia', 'Assault Rifle', 'Assault Rifle', 'kills'),
('W', 'dystopia', 'Grenade Launcher', 'Grenade Launcher', 'kills'),
('W', 'dystopia', 'MK-808 Rifle', 'MK-808 Rifle', 'kills'),
('W', 'dystopia', 'Tesla Rifle', 'Tesla Rifle', 'kills'),
('W', 'dystopia', 'Rocket Launcher', 'Rocket Launcher', 'kills'),
('W', 'dystopia', 'Minigun', 'Minigun', 'kills'),
('W', 'dystopia', 'Ion Cannon', 'Ion Cannon', 'kills'),
('W', 'dystopia', 'Basilisk', 'Basilisk', 'kills'),
('W', 'dystopia', 'Frag Grenade', 'Frag Grenade', 'kills'),
('W', 'dystopia', 'EMP Grenade', 'EMP Grenade', 'kills'),
('W', 'dystopia', 'Spider Grenade', 'Spider Grenade', 'kills'),
('W', 'dystopia', 'Cortex Bomb', 'Cortex Bomb', 'kills'),
('W', 'dystopia', 'Leg Boosters', 'Leg Boosters', 'kills'),
('W', 'dystopia', 'Trap', 'Trap', 'kills'),
('W', 'dystopia', 'Turret', 'Turret', 'kills');
ALTER TABLE `hlstats_Clans`
ADD COLUMN `mapregion` varchar(128) NOT NULL default '';
ALTER TABLE `hlstats_Events_Admin`
CHANGE `message` `message` varchar(255) NOT NULL default '';
INSERT IGNORE INTO `hlstats_Games` (`code`, `name`, `realgame`, `hidden`) VALUES
('bg2', 'Battle Grounds 2', 'bg2', '1'),
('sgtls', 'Stargate: The Last Stand', 'sgtls', '1'),
('dystopia', 'Dystopia', 'dystopia', '1');
UPDATE `hlstats_Games_Defaults` SET `value` = 0 WHERE `parameter` = 'DisplayResultsInBrowser' AND `code` IN ('ges','insmod');
INSERT IGNORE INTO `hlstats_Games_Defaults` (`code`, `parameter`, `value`) VALUES
('bg2', 'DisplayResultsInBrowser', '1'),
('bg2', 'GameEngine', '3'),
('bg2', 'AddressPort', '0.0.0.0:27015'),
('bg2', 'Admins', ''),
('bg2', 'AutoBanRetry', '0'),
('bg2', 'AutoTeamBalance', '0'),
('bg2', 'BonusRoundIgnore', '0'),
('bg2', 'BonusRoundTime', '0'),
('bg2', 'BroadCastEvents', '1'),
('bg2', 'BroadCastPlayerActions', '1'),
('bg2', 'DefaultDisplayEvents', '1'),
('bg2', 'EnablePublicCommands', '1'),
('bg2', 'GameType', '0'),
('bg2', 'HLStatsURL', 'http://yoursite.com/hlstats'),
('bg2', 'IgnoreBots', '1'),
('bg2', 'MinimumPlayersRank', '0'),
('bg2', 'MinPlayers', '4'),
('bg2', 'PlayerEvents', '1'),
('bg2', 'ShowStats', '1'),
('bg2', 'SkillMode', '0'),
('bg2', 'SuicidePenalty', '5'),
('bg2', 'SwitchAdmins', '0'),
('bg2', 'TKPenalty', '25'),
('bg2', 'TrackServerLoad', '1'),
('bg2', 'ConnectAnnounce', '1'),
('bg2', 'UpdateHostname', '1'),
('sgtls', 'DisplayResultsInBrowser', '1'),
('sgtls', 'GameEngine', '3'),
('sgtls', 'AddressPort', '0.0.0.0:27015'),
('sgtls', 'Admins', ''),
('sgtls', 'AutoBanRetry', '0'),
('sgtls', 'AutoTeamBalance', '0'),
('sgtls', 'BonusRoundIgnore', '0'),
('sgtls', 'BonusRoundTime', '0'),
('sgtls', 'BroadCastEvents', '1'),
('sgtls', 'BroadCastPlayerActions', '1'),
('sgtls', 'DefaultDisplayEvents', '1'),
('sgtls', 'EnablePublicCommands', '1'),
('sgtls', 'GameType', '0'),
('sgtls', 'HLStatsURL', 'http://yoursite.com/hlstats'),
('sgtls', 'IgnoreBots', '1'),
('sgtls', 'MinimumPlayersRank', '0'),
('sgtls', 'MinPlayers', '4'),
('sgtls', 'PlayerEvents', '1'),
('sgtls', 'ShowStats', '1'),
('sgtls', 'SkillMode', '0'),
('sgtls', 'SuicidePenalty', '5'),
('sgtls', 'SwitchAdmins', '0'),
('sgtls', 'TKPenalty', '25'),
('sgtls', 'TrackServerLoad', '1'),
('sgtls', 'ConnectAnnounce', '1'),
('sgtls', 'UpdateHostname', '1'),
('dystopia', 'DisplayResultsInBrowser', '1'),
('dystopia', 'GameEngine', '2'),
('dystopia', 'AddressPort', '0.0.0.0:27015'),
('dystopia', 'Admins', ''),
('dystopia', 'AutoBanRetry', '0'),
('dystopia', 'AutoTeamBalance', '0'),
('dystopia', 'BonusRoundIgnore', '0'),
('dystopia', 'BonusRoundTime', '0'),
('dystopia', 'BroadCastEvents', '1'),
('dystopia', 'BroadCastPlayerActions', '1'),
('dystopia', 'DefaultDisplayEvents', '1'),
('dystopia', 'EnablePublicCommands', '1'),
('dystopia', 'GameType', '0'),
('dystopia', 'HLStatsURL', 'http://yoursite.com/hlstats'),
('dystopia', 'IgnoreBots', '1'),
('dystopia', 'MinimumPlayersRank', '0'),
('dystopia', 'MinPlayers', '4'),
('dystopia', 'PlayerEvents', '1'),
('dystopia', 'ShowStats', '1'),
('dystopia', 'SkillMode', '0'),
('dystopia', 'SuicidePenalty', '5'),
('dystopia', 'SwitchAdmins', '0'),
('dystopia', 'TKPenalty', '25'),
('dystopia', 'TrackServerLoad', '1'),
('dystopia', 'ConnectAnnounce', '1'),
('dystopia', 'UpdateHostname', '1'),
('bg2', 'PlayerEventsCommandOSD', ''),
('hl2mp', 'PlayerEventsCommandOSD', '');
INSERT IGNORE INTO `hlstats_Games_Supported` (`code`, `name`) VALUES
('bg2', 'Battle Grounds 2'),
('sgtls', 'Stargate: The Last Stand'),
('dystopia', 'Dystopia');
DELETE FROM `hlstats_Options` WHERE `keyname` = 'dbversion';
INSERT IGNORE INTO `hlstats_Options` (`keyname`, `value`, `opttype`) VALUES
('dbversion', '4', 2),
('version', '1.5.4', 1),
('showqueries','1',2);
INSERT IGNORE INTO `hlstats_Options_Choices` (`keyname`, `value`, `text`, `isDefault`) VALUES
('showqueries', '0', 'No', 1),
('showqueries', '1', 'Yes', 0),
('google_map_region', 'EUROPE', 'Europe', 0);
ALTER TABLE `hlstats_Players`
ADD COLUMN `blockavatar` int(1) unsigned NOT NULL default '0';
INSERT IGNORE INTO `hlstats_Ranks` (`image`, `minKills`, `maxKills`, `rankName`, `game`) VALUES
('recruit', 0, 49, 'Recruit', 'bg2'),
('private', 50, 99, 'Private', 'bg2'),
('private-first-class', 100, 199, 'Private First Class', 'bg2'),
('lance-corporal', 200, 299, 'Lance Corporal', 'bg2'),
('corporal', 300, 399, 'Corporal', 'bg2'),
('sergeant', 400, 499, 'Sergeant', 'bg2'),
('staff-sergeant', 500, 599, 'Staff Sergeant', 'bg2'),
('gunnery-sergeant', 600, 699, 'Gunnery Sergeant', 'bg2'),
('master-sergeant', 700, 799, 'Master Sergeant', 'bg2'),
('first-sergeant', 800, 899, 'First Sergeant', 'bg2'),
('master-chief', 900, 999, 'Master Chief', 'bg2'),
('sergeant-major', 1000, 1199, 'Sergeant Major', 'bg2'),
('ensign', 1200, 1399, 'Ensign', 'bg2'),
('third-lieutenant', 1400, 1599, 'Third Lieutenant', 'bg2'),
('second-lieutenant', 1600, 1799, 'Second Lieutenant', 'bg2'),
('first-lieutenant', 1800, 1999, 'First Lieutenant', 'bg2'),
('captain', 2000, 2249, 'Captain', 'bg2'),
('group-captain', 2250, 2499, 'Group Captain', 'bg2'),
('senior-captain', 2500, 2749, 'Senior Captain', 'bg2'),
('lieutenant-major', 2750, 2999, 'Lieutenant Major', 'bg2'),
('major', 3000, 3499, 'Major', 'bg2'),
('group-major', 3500, 3999, 'Group Major', 'bg2'),
('lieutenant-commander', 4000, 4499, 'Lieutenant Commander', 'bg2'),
('commander', 4500, 4999, 'Commander', 'bg2'),
('group-commander', 5000, 5749, 'Group Commander', 'bg2'),
('lieutenant-colonel', 5750, 6499, 'Lieutenant Colonel', 'bg2'),
('colonel', 6500, 7249, 'Colonel', 'bg2'),
('brigadier', 7250, 7999, 'Brigadier', 'bg2'),
('brigadier-general', 8000, 8999, 'Brigadier General', 'bg2'),
('major-general', 9000, 9999, 'Major General', 'bg2'),
('lieutenant-general', 10000, 12499, 'Lieutenant General', 'bg2'),
('general', 12500, 14999, 'General', 'bg2'),
('commander-general', 15000, 17499, 'Commander General', 'bg2'),
('field-vice-marshal', 17500, 19999, 'Field Vice Marshal', 'bg2'),
('field-marshal', 20000, 22499, 'Field Marshal', 'bg2'),
('vice-commander-of-the-army', 22500, 24999, 'Vice Commander of the Army', 'bg2'),
('commander-of-the-army', 25000, 27499, 'Commander of the Army', 'bg2'),
('high-commander', 27500, 29999, 'High Commander', 'bg2'),
('supreme-commander', 30000, 34999, 'Supreme Commander', 'bg2'),
('terminator', 35000, 9999999, 'Terminator', 'bg2'),
('recruit', 0, 49, 'Recruit', 'sgtls'),
('private', 50, 99, 'Private', 'sgtls'),
('private-first-class', 100, 199, 'Private First Class', 'sgtls'),
('lance-corporal', 200, 299, 'Lance Corporal', 'sgtls'),
('corporal', 300, 399, 'Corporal', 'sgtls'),
('sergeant', 400, 499, 'Sergeant', 'sgtls'),
('staff-sergeant', 500, 599, 'Staff Sergeant', 'sgtls'),
('gunnery-sergeant', 600, 699, 'Gunnery Sergeant', 'sgtls'),
('master-sergeant', 700, 799, 'Master Sergeant', 'sgtls'),
('first-sergeant', 800, 899, 'First Sergeant', 'sgtls'),
('master-chief', 900, 999, 'Master Chief', 'sgtls'),
('sergeant-major', 1000, 1199, 'Sergeant Major', 'sgtls'),
('ensign', 1200, 1399, 'Ensign', 'sgtls'),
('third-lieutenant', 1400, 1599, 'Third Lieutenant', 'sgtls'),
('second-lieutenant', 1600, 1799, 'Second Lieutenant', 'sgtls'),
('first-lieutenant', 1800, 1999, 'First Lieutenant', 'sgtls'),
('captain', 2000, 2249, 'Captain', 'sgtls'),
('group-captain', 2250, 2499, 'Group Captain', 'sgtls'),
('senior-captain', 2500, 2749, 'Senior Captain', 'sgtls'),
('lieutenant-major', 2750, 2999, 'Lieutenant Major', 'sgtls'),
('major', 3000, 3499, 'Major', 'sgtls'),
('group-major', 3500, 3999, 'Group Major', 'sgtls'),
('lieutenant-commander', 4000, 4499, 'Lieutenant Commander', 'sgtls'),
('commander', 4500, 4999, 'Commander', 'sgtls'),
('group-commander', 5000, 5749, 'Group Commander', 'sgtls'),
('lieutenant-colonel', 5750, 6499, 'Lieutenant Colonel', 'sgtls'),
('colonel', 6500, 7249, 'Colonel', 'sgtls'),
('brigadier', 7250, 7999, 'Brigadier', 'sgtls'),
('brigadier-general', 8000, 8999, 'Brigadier General', 'sgtls'),
('major-general', 9000, 9999, 'Major General', 'sgtls'),
('lieutenant-general', 10000, 12499, 'Lieutenant General', 'sgtls'),
('general', 12500, 14999, 'General', 'sgtls'),
('commander-general', 15000, 17499, 'Commander General', 'sgtls'),
('field-vice-marshal', 17500, 19999, 'Field Vice Marshal', 'sgtls'),
('field-marshal', 20000, 22499, 'Field Marshal', 'sgtls'),
('vice-commander-of-the-army', 22500, 24999, 'Vice Commander of the Army', 'sgtls'),
('commander-of-the-army', 25000, 27499, 'Commander of the Army', 'sgtls'),
('high-commander', 27500, 29999, 'High Commander', 'sgtls'),
('supreme-commander', 30000, 34999, 'Supreme Commander', 'sgtls'),
('terminator', 35000, 9999999, 'Terminator', 'sgtls'),
('recruit', 0, 49, 'Recruit', 'dystopia'),
('private', 50, 99, 'Private', 'dystopia'),
('private-first-class', 100, 199, 'Private First Class', 'dystopia'),
('lance-corporal', 200, 299, 'Lance Corporal', 'dystopia'),
('corporal', 300, 399, 'Corporal', 'dystopia'),
('sergeant', 400, 499, 'Sergeant', 'dystopia'),
('staff-sergeant', 500, 599, 'Staff Sergeant', 'dystopia'),
('gunnery-sergeant', 600, 699, 'Gunnery Sergeant', 'dystopia'),
('master-sergeant', 700, 799, 'Master Sergeant', 'dystopia'),
('first-sergeant', 800, 899, 'First Sergeant', 'dystopia'),
('master-chief', 900, 999, 'Master Chief', 'dystopia'),
('sergeant-major', 1000, 1199, 'Sergeant Major', 'dystopia'),
('ensign', 1200, 1399, 'Ensign', 'dystopia'),
('third-lieutenant', 1400, 1599, 'Third Lieutenant', 'dystopia'),
('second-lieutenant', 1600, 1799, 'Second Lieutenant', 'dystopia'),
('first-lieutenant', 1800, 1999, 'First Lieutenant', 'dystopia'),
('captain', 2000, 2249, 'Captain', 'dystopia'),
('group-captain', 2250, 2499, 'Group Captain', 'dystopia'),
('senior-captain', 2500, 2749, 'Senior Captain', 'dystopia'),
('lieutenant-major', 2750, 2999, 'Lieutenant Major', 'dystopia'),
('major', 3000, 3499, 'Major', 'dystopia'),
('group-major', 3500, 3999, 'Group Major', 'dystopia'),
('lieutenant-commander', 4000, 4499, 'Lieutenant Commander', 'dystopia'),
('commander', 4500, 4999, 'Commander', 'dystopia'),
('group-commander', 5000, 5749, 'Group Commander', 'dystopia'),
('lieutenant-colonel', 5750, 6499, 'Lieutenant Colonel', 'dystopia'),
('colonel', 6500, 7249, 'Colonel', 'dystopia'),
('brigadier', 7250, 7999, 'Brigadier', 'dystopia'),
('brigadier-general', 8000, 8999, 'Brigadier General', 'dystopia'),
('major-general', 9000, 9999, 'Major General', 'dystopia'),
('lieutenant-general', 10000, 12499, 'Lieutenant General', 'dystopia'),
('general', 12500, 14999, 'General', 'dystopia'),
('commander-general', 15000, 17499, 'Commander General', 'dystopia'),
('field-vice-marshal', 17500, 19999, 'Field Vice Marshal', 'dystopia'),
('field-marshal', 20000, 22499, 'Field Marshal', 'dystopia'),
('vice-commander-of-the-army', 22500, 24999, 'Vice Commander of the Army', 'dystopia'),
('commander-of-the-army', 25000, 27499, 'Commander of the Army', 'dystopia'),
('high-commander', 27500, 29999, 'High Commander', 'dystopia'),
('supreme-commander', 30000, 34999, 'Supreme Commander', 'dystopia'),
('terminator', 35000, 9999999, 'Terminator', 'dystopia');
INSERT IGNORE INTO `hlstats_Roles` (`game`, `code`, `name`, `hidden`) VALUES
('dystopia','1','Light','0'),
('dystopia','2','Medium','0'),
('dystopia','3','Heavy','0');
UPDATE `hlstats_Servers_Config` SET `value` = 0 WHERE `parameter` = 'DisplayResultsInBrowser' AND `serverId` IN (SELECT `serverId` FROM `hlstats_Servers` WHERE `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` IN ('ges','insmod')));
INSERT IGNORE INTO `hlstats_Teams` (`game`, `code`, `name`, `hidden`, `playerlist_bgcolor`, `playerlist_color`, `playerlist_index`) VALUES
('bg2','British','The British','','#FFD5D5','#FF2D2D',2),
('bg2','Americans','The Americans','','#D2E8F7','#0080C0',1),
('sgtls','Goa\'uld','Goa\'uld','','#FFD5D5','#FF2D2D',2),
('sgtls','Tau\'ri','Tau\'ri','','#D2E8F7','#0080C0',1),
('dystopia','Punks','Punks','','#FFD5D5','#FF2D2D',2),
('dystopia','Corps','Corps','','#D2E8F7','#0080C0',1);
INSERT IGNORE INTO `hlstats_Weapons` (`game`, `code`, `name`, `modifier`) VALUES
('fof', 'shotgun', 'Winchester Shotgun', 1),
('bg2', 'brownbess', 'Brown Bess', 1),
('bg2', 'brownbess_bayonet', 'Brown Bess - Bayonet', 1),
('bg2', 'charleville', 'Charleville', 1),
('bg2', 'charleville_bayonet', 'Charleville - Bayonet', 1),
('bg2', 'hirschf', 'Hirschfaenger', 1),
('bg2', 'jaeger', 'Jaeger Rifle', 1),
('bg2', 'knife', 'Knife', 2),
('bg2', 'pennsylvania', 'Pennsylvania', 1),
('bg2', 'pistol_a', 'British Pistol', 1.5),
('bg2', 'pistol_b', 'American Pistol', 1.5),
('bg2', 'sabre_a', 'British Sabre', 1),
('bg2', 'sabre_b', 'American Sabre', 1),
('sgtls', 'p90', 'FN Herstal P-90 Red Dot / FN-H P-90RD', 1),
('sgtls', 'pistol', 'Beretta M92F-s', 1),
('sgtls', 'knife', 'Combat Knife', 1),
('sgtls', 'staff_blast', 'Staff Weapon', 1),
('sgtls', 'p90D', 'FN Herstal P-90 w/ Disruptor', 1),
('sgtls', 'hdevice', 'Hand Device / Ribbon Device', 1),
('sgtls', 'tac_pulse', 'Tac (turrent)', 1),
('sgtls', 'tac_projectile', 'Tac (bomb)', 1),
('sgtls', 'c4_charge', 'C4', 1),
('sgtls', 'grenade_projectile', 'M67 Frag Grenade', 1),
('sgtls', 'g36', 'H&K G-36', 1),
('sgtls', 'kull_blast', 'Kull Warrior Staff Device', 1),
('sgtls', 'suicide_bomb', 'Goa\'uld Suicide Bomb', 1),
('sgtls', 'kullblaster', 'Kull Warrior Staff Device (blast)', 1),
('sgtls', 'staff', 'Staff Weapon Melee', 1),
('sgtls', 'zat_blast', 'Zat', 1),
('sgtls', 'awp', 'AWP Rifle', 1),
('sgtls', 'grenade', 'M67 Frag Grenade', 1),
('sgtls', 'zat', 'Zat (splash)', 1),
('sgtls', 'tac', 'Tac (splash)', 1),
('dystopia', 'Light Katana', 'Light Katana', 1),
('dystopia', 'Medium Katana', 'Medium Katana', 1),
('dystopia', 'Fatman Fist', 'Fatman Fist', 1),
('dystopia', 'Machine Pistol', 'Machine Pistol', 1),
('dystopia', 'Shotgun', 'Shotgun', 1),
('dystopia', 'Laser Rifle', 'Laser Rifle', 1),
('dystopia', 'BoltGun', 'Bolt Gun', 1),
('dystopia', 'SmartLock Pistols', 'Smartlock Pistols', 1),
('dystopia', 'Assault Rifle', 'Assault Rifle', 1),
('dystopia', 'Grenade Launcher', 'Grenade Launcher', 1),
('dystopia', 'MK-808 Rifle', 'MK-808 Rifle', 1),
('dystopia', 'Tesla Rifle', 'Tesla Rifle', 1),
('dystopia', 'Rocket Launcher', 'Rocket Launcher', 1),
('dystopia', 'Minigun', 'Minigun', 1),
('dystopia', 'Ion Cannon', 'Ion Cannon', 1),
('dystopia', 'Basilisk', 'Basilisk', 1),
('dystopia', 'Frag Grenade', 'Frag Grenade', 1),
('dystopia', 'EMP Grenade', 'EMP Grenade', 1),
('dystopia', 'Spider Grenade', 'Spider Grenade', 1),
('dystopia', 'Cortex Bomb', 'Cortex Bomb', 1),
('dystopia', 'Leg Boosters', 'Leg Boosters', 1),
('dystopia', 'Trap', 'Trap', 1),
('dystopia', 'Turret', 'Turret', 1);

View File

@ -0,0 +1,67 @@
INSERT IGNORE INTO `hlstats_Actions` (`game`, `code`, `reward_player`, `reward_team`, `team`, `description`, `for_PlayerActions`, `for_PlayerPlayerActions`, `for_TeamActions`, `for_WorldActions`) VALUES
('insmod', 'headshot', 1, 0, '', 'Headshot Kill', '1', '', '', ''),
('insmod', 'Round_Win', 0, 10, '', 'Round Win', '', '', '1', ''),
('ges', 'GE_AWARD_DEADLY', 10, 0, '', 'Most Deadly', '1', '', '', ''),
('ges', 'GE_AWARD_HONORABLE', 5, 0, '', 'Most Honorable', '1', '', '', ''),
('ges', 'GE_AWARD_PROFESSIONAL', 10, 0, '', 'Most Professional', '1', '', '', ''),
('ges', 'GE_AWARD_MARKSMANSHIP', 1, 0, '', 'Marksmanship Award', '1', '', '', ''),
('ges', 'GE_AWARD_AC10', 2, 0, '', 'AC-10 Award', '1', '', '', ''),
('ges', 'GE_AWARD_FRANTIC', 2, 0, '', 'Most Frantic', '1', '', '', ''),
('ges', 'GE_AWARD_WTA', 1, 0, '', 'Where''s the Ammo?', '1', '', '', ''),
('ges', 'GE_AWARD_LEMMING', -1, 0, '', 'Lemming (suicide)', '1', '', '', ''),
('ges', 'GE_AWARD_LONGIN', 1, 0, '', 'Longest Innings', '1', '', '', ''),
('ges', 'GE_AWARD_SHORTIN', -1, 0, '', 'Shortest Innings', '1', '', '', ''),
('ges', 'GE_AWARD_DISHONORABLE', -10, 0, '', 'Most Dishonorable', '1', '', '', ''),
('ges', 'GE_AWARD_NOTAC10', 4, 0, '', 'Where''s the Armor?', '1', '', '', ''),
('ges', 'GE_AWARD_MOSTLYHARMLESS', -1, 0, '', 'Mostly Harmless', '1', '', '', '');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`) VALUES
('W', 'ges', 'mostkills', 'Bond, James Bond', 'kills');
INSERT IGNORE INTO `hlstats_Games_Defaults` (`code`, `parameter`, `value`) VALUES
('bg2', 'PlayerEventsCommandHint', ''),
('dystopia', 'PlayerEventsCommandHint', ''),
('ff', 'PlayerEventsCommandHint', ''),
('fof', 'PlayerEventsCommandHint', ''),
('ges', 'PlayerEventsCommandHint', ''),
('hidden', 'PlayerEventsCommandHint', ''),
('insmod', 'PlayerEventsCommandHint', ''),
('l4d', 'PlayerEventsCommandHint', ''),
('sgtls', 'PlayerEventsCommandHint', ''),
('zps', 'PlayerEventsCommandHint', '');
INSERT IGNORE INTO `hlstats_Mods_Defaults` (`code`, `parameter`, `value`) VALUES
('', 'PlayerEventsCommandHint', ''),
('AMXX', 'PlayerEventsCommandHint', 'hlx_amx_hint'),
('BEETLE', 'PlayerEventsCommandHint', ''),
('MANI', 'PlayerEventsCommandHint', 'ma_hlx_hint'),
('MINISTATS', 'PlayerEventsCommandHint', ''),
('SOURCEMOD', 'PlayerEventsCommandHint', 'hlx_sm_hint');
INSERT IGNORE INTO `hlstats_Servers_Config` (`serverId`, `parameter`, `value`)
(SELECT `serverId`, 'PlayerEventsCommandHint', '' FROM hlstats_Servers_Config WHERE `parameter`='MOD' and `value` IN ('', 'BEETLE', 'MINISTATS'));
INSERT IGNORE INTO `hlstats_Servers_Config` (`serverId`, `parameter`, `value`)
(SELECT `serverId`, 'PlayerEventsCommandHint', 'hlx_amx_hint' FROM hlstats_Servers_Config WHERE `parameter`='MOD' and `value` = 'AMXX');
INSERT IGNORE INTO `hlstats_Servers_Config` (`serverId`, `parameter`, `value`)
(SELECT `serverId`, 'PlayerEventsCommandHint', 'ma_hlx_hint' FROM hlstats_Servers_Config WHERE `parameter`='MOD' and `value` = 'MANI');
INSERT IGNORE INTO `hlstats_Servers_Config` (`serverId`, `parameter`, `value`)
(SELECT `serverId`, 'PlayerEventsCommandHint', 'hlx_sm_hint' FROM hlstats_Servers_Config WHERE `parameter`='MOD' and `value` = 'SOURCEMOD');
UPDATE `hlstats_Servers_Config` SET `value` = '' WHERE `parameter` = 'PlayerEventsCommandHint' AND `serverId` IN (SELECT `serverId` FROM `hlstats_Servers` WHERE `game` IN (SELECT `code` FROM `hlstats_Games` WHERE `realgame` IN ('bg2', 'dystopia', 'ff', 'fof', 'ges', 'hidden', 'insmod', 'l4d', 'sgtls', 'zps')));
UPDATE `hlstats_Servers_Config` SET `value` = 'amx_chat' WHERE `parameter` = 'PlayerEventsAdminCommand' AND `value` = '' AND serverId IN (SELECT serverId FROM (SELECT serverId FROM `hlstats_Servers_Config` WHERE `parameter` = 'MOD' AND `value` = 'AMXX') AS x);
UPDATE `hlstats_Servers_Config` SET `value` = 'admin_chat' WHERE `parameter` = 'PlayerEventsAdminCommand' AND `value` = '' AND serverId IN (SELECT serverId FROM (SELECT serverId FROM `hlstats_Servers_Config` WHERE `parameter` = 'MOD' AND `value` = 'BEETLE') AS x);
UPDATE `hlstats_Servers_Config` SET `value` = 'ma_chat' WHERE `parameter` = 'PlayerEventsAdminCommand' AND `value` = '' AND serverId IN (SELECT serverId FROM (SELECT serverId FROM `hlstats_Servers_Config` WHERE `parameter` = 'MOD' AND `value` = 'MANI') AS x);
UPDATE `hlstats_Servers_Config` SET `value` = 'sm_chat' WHERE `parameter` = 'PlayerEventsAdminCommand' AND `value` = '' AND serverId IN (SELECT serverId FROM (SELECT serverId FROM `hlstats_Servers_Config` WHERE `parameter` = 'MOD' AND `value` = 'SOURCEMOD') AS x);
INSERT INTO `hlstats_Servers_Config_Default` (`parameter`, `value`, `description`) VALUES
('PlayerEventsCommandHint', 'hlx_sm_hint', 'The command to display "hint" style messages for ATB switches. Default is "".');
UPDATE `hlstats_Options` SET `value` = '1.5.5' WHERE `keyname` = 'version';
UPDATE `hlstats_Options` SET `value` = '5' WHERE `keyname` = 'dbversion';

View File

@ -0,0 +1,54 @@
INSERT IGNORE INTO `hlstats_Actions` (`game`, `code`, `reward_player`, `reward_team`, `team`, `description`, `for_PlayerActions`, `for_PlayerPlayerActions`, `for_TeamActions`, `for_WorldActions`)
(SELECT code, 'pyro_extinguish', 1, 0, '', 'Extinguished Teammate (Pyro)', '1', '0', '0', '0' FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Actions` (`game`, `code`, `reward_player`, `reward_team`, `team`, `description`, `for_PlayerActions`, `for_PlayerPlayerActions`, `for_TeamActions`, `for_WorldActions`)
(SELECT code, 'sniper_extinguish', 1, 0, '', 'Extinguished Teammate (Sniper)', '1', '0', '0', '0' FROM hlstats_Games WHERE `realgame` = 'tf');
UPDATE `hlstats_Awards` SET `code` = 'sandman' WHERE `code` = 'bat_wood';
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'O', code, 'pyro_extinguish', 'Give It a Little Blow', 'extinguishes with Flamethrower' FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'O', code, 'sniper_extinguish', 'Douser', 'extinguishes with Jarate' FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W', code, 'force_a_nature', 'Who wants some of this?', 'kills with the Force-A-Nature' FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W', code, 'ambassador', 'Diplomatic Immunity', 'kills with the Ambassador' FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W', code, 'tf_projectile_arrow', 'Quivering Fool', 'kills with the Huntsman' FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W', code, 'taunt_spy', 'Dangerous Crab', 'spy taunt kills' FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W', code, 'taunt_sniper', 'Robin Hood', 'sniper taunt kills' FROM hlstats_Games WHERE `realgame` = 'tf');
UPDATE `hlstats_Events_Frags` SET `weapon` = 'sandman' WHERE `weapon` = 'bat_wood';
UPDATE `hlstats_Events_Suicides` SET `weapon` = 'sandman' WHERE `weapon` = 'bat_wood';
UPDATE `hlstats_Events_Teamkills` SET `weapon` = 'sandman' WHERE `weapon` = 'bat_wood';
UPDATE `hlstats_Options` SET `value` = '1.5.6' WHERE `keyname` = 'version';
UPDATE `hlstats_Options` SET `value` = '6' WHERE `keyname` = 'dbversion';
UPDATE `hlstats_Weapons` SET `code` = 'sandman' WHERE `code` = 'bat_wood';
INSERT IGNORE INTO `hlstats_Weapons` (`game`, `code`, `name`, `modifier`)
(SELECT code, 'force_a_nature', 'Force-A-Nature', 1 FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Weapons` (`game`, `code`, `name`, `modifier`)
(SELECT code, 'ambassador', 'Ambassador', 1 FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Weapons` (`game`, `code`, `name`, `modifier`)
(SELECT code, 'tf_projectile_arrow', 'Huntsman', 1 FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Weapons` (`game`, `code`, `name`, `modifier`)
(SELECT code, 'taunt_spy', 'Spy Taunt', 3 FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Weapons` (`game`, `code`, `name`, `modifier`)
(SELECT code, 'taunt_sniper', 'Sniper Taunt', 3 FROM hlstats_Games WHERE `realgame` = 'tf');

View File

@ -0,0 +1,711 @@
INSERT IGNORE INTO `hlstats_Actions` (`game`, `code`, `reward_player`, `reward_team`, `team`, `description`, `for_PlayerActions`, `for_PlayerPlayerActions`, `for_TeamActions`, `for_WorldActions`)
(SELECT code, 'medic_extinguish', 1, 0, '', 'Extinguished Teammate (Medic)', '1', '0', '0', '0' FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Actions` (`game`, `code`, `reward_player`, `reward_team`, `team`, `description`, `for_PlayerActions`, `for_PlayerPlayerActions`, `for_TeamActions`, `for_WorldActions`)
(SELECT code, 'engineer_extinguish', 1, 0, '', 'Extinguished Teammate (Engineer)', '1', '0', '0', '0' FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Actions` (`game`, `code`, `reward_player`, `reward_team`, `team`, `description`, `for_PlayerActions`, `for_PlayerPlayerActions`, `for_TeamActions`, `for_WorldActions`)
(SELECT code, 'teleport', 1, 0, '', 'Teleporter used', '1', '', '', '' FROM hlstats_Games where `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Actions` (`game`, `code`, `reward_player`, `reward_team`, `team`, `description`, `for_PlayerActions`, `for_PlayerPlayerActions`, `for_TeamActions`, `for_WorldActions`)
(SELECT code, 'teleport_self', 0, 0, '', 'Teleporter used (self)', '1', '', '', '' FROM hlstats_Games where `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`) VALUES
('W', 'nts', 'aa13', 'AA13', 'kills with AA13'),
('W', 'nts', 'grenade_projectile', 'Frag Grenade', 'kills with Frag Grenade'),
('W', 'nts', 'jitte', 'Jitte', 'kills with Jitte'),
('W', 'nts', 'jittescoped', 'Jitte (Scoped)', 'kills with Jitte (Scoped)'),
('W', 'nts', 'knife', 'Knife', 'kills with Knife'),
('W', 'nts', 'kyla', 'KYLA', 'kills with KYLA'),
('W', 'nts', 'm41', 'M41', 'kills with M41'),
('W', 'nts', 'm41l', 'M41L', 'kills with M41L'),
('W', 'nts', 'milso', 'MilSO', 'kills with MilSO'),
('W', 'nts', 'mp5', 'MP5', 'kills with MP5'),
('W', 'nts', 'mpn', 'MPN45', 'kills with MPN45'),
('W', 'nts', 'mx', 'MX', 'kills with MX'),
('W', 'nts', 'mx_silenced', 'MX Silenced', 'kills with MX Silenced'),
('W', 'nts', 'pz', 'PZ252', 'kills with PZ252'),
('W', 'nts', 'grenade_detapack', 'DetPac', 'kills with DetPac'),
('W', 'nts', 'smac', 'SMAC', 'kills with SMAC'),
('W', 'nts', 'srm', 'SRM', 'kills with SRM'),
('W', 'nts', 'srm_s', 'SRM-S', 'kills with SRM-S'),
('W', 'nts', 'srs', 'SRS', 'kills with SRS'),
('W', 'nts', 'supa7', 'MURATA SUPA 7', 'kills with MURATA SUPA 7'),
('W', 'nts', 'tachi', 'TACHI', 'kills with TACHI'),
('W', 'nts', 'zr68c', 'ZR68C', 'kills with ZR68C'),
('W', 'nts', 'zr68l', 'ZR68L', 'kills with ZR68L'),
('W', 'nts', 'zr68s', 'ZR68S', 'kills with ZR68S'),
('W', 'nts', 'mostkills', 'Most Kills', 'kills'),
('W', 'nts', 'latency', 'Best Latency', 'ms average connection'),
('W','hl2mp','mostkills','17. Most Kills','kills'),
('W','hl2mp','suicide','18. Most Suicides','suicides');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'P', code, 'shield_blocked', 'Razor Breakin', 'razorbacks broken' FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'V', code, 'shield_blocked', 'Broken Back', 'razorbacks broken (sniper)' FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'P', code, 'jarate', 'Urine'' For A Surprise', 'jarates' FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'V', code, 'jarate', 'Yellow Bellied Spies', 'victims jarated' FROM hlstats_Games WHERE `realgame` = 'tf');
UPDATE `hlstats_Events_Frags` SET `pos_x` = NULL WHERE `pos_x` = '';
UPDATE `hlstats_Events_Frags` SET `pos_y` = NULL WHERE `pos_y` = '';
UPDATE `hlstats_Events_Frags` SET `pos_z` = NULL WHERE `pos_z` = '';
ALTER TABLE `hlstats_Events_Frags`
CHANGE `pos_x` `pos_x` MEDIUMINT default NULL,
CHANGE `pos_y` `pos_y` MEDIUMINT default NULL,
CHANGE `pos_z` `pos_z` MEDIUMINT default NULL,
ADD COLUMN `pos_victim_x` MEDIUMINT default NULL,
ADD COLUMN `pos_victim_y` MEDIUMINT default NULL,
ADD COLUMN `pos_victim_z` MEDIUMINT default NULL;
UPDATE `hlstats_Events_PlayerActions` SET `pos_x` = NULL WHERE `pos_x` = '';
UPDATE `hlstats_Events_PlayerActions` SET `pos_y` = NULL WHERE `pos_y` = '';
UPDATE `hlstats_Events_PlayerActions` SET `pos_z` = NULL WHERE `pos_z` = '';
ALTER TABLE `hlstats_Events_PlayerActions`
CHANGE `pos_x` `pos_x` MEDIUMINT default NULL,
CHANGE `pos_y` `pos_y` MEDIUMINT default NULL,
CHANGE `pos_z` `pos_z` MEDIUMINT default NULL;
UPDATE `hlstats_Events_PlayerPlayerActions` SET `pos_x` = NULL WHERE `pos_x` = '';
UPDATE `hlstats_Events_PlayerPlayerActions` SET `pos_y` = NULL WHERE `pos_y` = '';
UPDATE `hlstats_Events_PlayerPlayerActions` SET `pos_z` = NULL WHERE `pos_z` = '';
ALTER TABLE `hlstats_Events_PlayerPlayerActions`
ADD COLUMN `pos_victim_x` MEDIUMINT default NULL,
ADD COLUMN `pos_victim_y` MEDIUMINT default NULL,
ADD COLUMN `pos_victim_z` MEDIUMINT default NULL;
UPDATE `hlstats_Events_Suicides` SET `pos_x` = NULL WHERE `pos_x` = '';
UPDATE `hlstats_Events_Suicides` SET `pos_y` = NULL WHERE `pos_y` = '';
UPDATE `hlstats_Events_Suicides` SET `pos_z` = NULL WHERE `pos_z` = '';
ALTER TABLE `hlstats_Events_Suicides`
CHANGE `pos_x` `pos_x` MEDIUMINT default NULL,
CHANGE `pos_y` `pos_y` MEDIUMINT default NULL,
CHANGE `pos_z` `pos_z` MEDIUMINT default NULL;
UPDATE `hlstats_Events_Teamkills` SET `pos_x` = NULL WHERE `pos_x` = '';
UPDATE `hlstats_Events_Teamkills` SET `pos_y` = NULL WHERE `pos_y` = '';
UPDATE `hlstats_Events_Teamkills` SET `pos_z` = NULL WHERE `pos_z` = '';
ALTER TABLE `hlstats_Events_Teamkills`
CHANGE `pos_x` `pos_x` MEDIUMINT default NULL,
CHANGE `pos_y` `pos_y` MEDIUMINT default NULL,
CHANGE `pos_z` `pos_z` MEDIUMINT default NULL,
ADD COLUMN `pos_victim_x` MEDIUMINT default NULL,
ADD COLUMN `pos_victim_y` MEDIUMINT default NULL,
ADD COLUMN `pos_victim_z` MEDIUMINT default NULL;
INSERT IGNORE INTO `hlstats_Games` (`code`, `name`, `realgame`, `hidden`) VALUES
('nts','NeoTokyo','nts','1');
INSERT IGNORE INTO `hlstats_Games_Defaults` (`code`, `parameter`, `value`) VALUES
('nts', 'Admins', ''),
('nts', 'AutoBanRetry', '0'),
('nts', 'AutoTeamBalance', '0'),
('nts', 'BonusRoundIgnore', '0'),
('nts', 'BonusRoundTime', '0'),
('nts', 'BroadCastEvents', '1'),
('nts', 'BroadCastPlayerActions', '1'),
('nts', 'ConnectAnnounce', '1'),
('nts', 'DefaultDisplayEvents', '1'),
('nts', 'DisplayResultsInBrowser', '1'),
('nts', 'EnablePublicCommands', '1'),
('nts', 'GameEngine', '2'),
('nts', 'GameType', '0'),
('nts', 'HLStatsURL', 'http://yoursite.com/hlstats'),
('nts', 'IgnoreBots', '1'),
('nts', 'MinimumPlayersRank', '0'),
('nts', 'MinPlayers', '4'),
('nts', 'PlayerEvents', '1'),
('nts', 'ShowStats', '1'),
('nts', 'SkillMode', '0'),
('nts', 'SuicidePenalty', '5'),
('nts', 'SwitchAdmins', '0'),
('nts', 'TKPenalty', '25'),
('nts', 'TrackServerLoad', '1'),
('nts', 'UpdateHostname', '1');
INSERT IGNORE INTO `hlstats_Games_Supported` (`code`, `name`) VALUES
('nts','NeoTokyo');
CREATE TABLE IF NOT EXISTS `hlstats_Heatmap_Config` (
`id` int(255) NOT NULL auto_increment,
`map` varchar(64) NOT NULL,
`game` varchar(32) NOT NULL,
`xoffset` float NOT NULL,
`yoffset` float NOT NULL,
`flipx` tinyint(1) NOT NULL default '0',
`flipy` tinyint(1) NOT NULL default '1',
`days` tinyint(4) NOT NULL default '30',
`brush` varchar(5) NOT NULL default 'small',
`scale` float NOT NULL,
`font` tinyint(2) NOT NULL default '10',
`thumbw` float NOT NULL default '0.170312',
`thumbh` float NOT NULL default '0.170312',
`cropx1` int(11) NOT NULL default '0',
`cropy1` int(11) NOT NULL default '0',
`cropx2` int(11) NOT NULL default '0',
`cropy2` int(11) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `gamemap` (`map`, `game`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `hlstats_Heatmap_Config`
--
INSERT IGNORE INTO `hlstats_Heatmap_Config` (`map`, `game`, `xoffset`, `yoffset`, `flipx`, `flipy`, `days`, `brush`, `scale`, `font`, `thumbw`, `thumbh`, `cropx1`, `cropy1`, `cropx2`, `cropy2`) VALUES
('de_dust2', 'css', 5290, 4259, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('plr_pipeline', 'tf', 8006, 9236, 0, 1, 30, 'small', 13, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('pl_hoodoo_final', 'tf', 9564, 5592, 0, 1, 30, 'small', 14, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_dustbowl', 'tf', 5109, 4821, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ctf_2fort', 'tf', 5112, 4079, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('pl_goldrush', 'tf', 10669, 4221, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_egypt_final', 'tf', 9844, 9241, 0, 1, 30, 'small', 16, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_junction_final', 'tf', 4077, 5145, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_fastlane', 'tf', 7692, 5622, 0, 1, 30, 'small', 12, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('pl_badwater', 'tf', 4269, 3237, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_steel', 'tf', 4069, 2637, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_badlands', 'tf', 6205, 5059, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_granary', 'tf', 9274, 6088, 0, 1, 30, 'small', 12, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_gravelpit', 'tf', 5735, 5645, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('pl_cashworks_b3a', 'tf', 5500, 4635, 0, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cs_office', 'css', 2357, 1766, 0, 1, 30, 'small', 4, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('bg_ambush', 'bg2', 5592, 1159, 0, 1, 30, 'small', 8.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('bg_townguard', 'bg2', 4489, 2670, 0, 1, 30, 'small', 5.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_dust', 'css', 3425, 4022, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_anzio', 'dods', 4031, 3979, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_argentan', 'dods', 4773, 2963, 0, 1, 30, 'small', 6.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_avalanche', 'dods', 3204, 2885, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_colmar', 'dods', 5915, 5373, 0, 1, 30, 'small', 9.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_donner', 'dods', 4013, 1743, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_flash', 'dods', 3895, 2330, 0, 1, 30, 'small', 5.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_jagd', 'dods', 3592, 3082, 0, 1, 30, 'small', 6.6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_kalt', 'dods', 777, 6987, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_palermo', 'dods', 2494, 3797, 0, 1, 30, 'small', 6.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ins_abdallah', 'insmod', 7508, 2723, 0, 1, 30, 'small', 9.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ins_almaden', 'insmod', 2881, 3200, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ins_bagdad', 'insmod', 9166, 4578, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ins_buhriz', 'insmod', 11943, 8220, 0, 1, 30, 'small', 16, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ins_haditha', 'insmod', 5582, 2630, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ins_haditha_night', 'insmod', 5582, 2630, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ins_hillah', 'insmod', 6755, 3550, 0, 1, 30, 'small', 11.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ins_karkar', 'insmod', 10355, 1306, 0, 1, 30, 'small', 13, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ins_ramadi', 'insmod', 5069, 1430, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ins_samawah', 'insmod', 2947, 2112, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ins_sinjar', 'insmod', 7427, 6887, 0, 1, 30, 'small', 11, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ins_samawah_day', 'insmod', 2809, 2152, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('arena_badlands', 'tf', 5125, 4119, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('arena_granary', 'tf', 6759, 4013, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('arena_lumberyard', 'tf', 6616, 5421, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('arena_nucleus', 'tf', 2562, 1940, 0, 1, 30, 'small', 4, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('arena_ravine', 'tf', 2647, 3547, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('arena_sawmill', 'tf', 4551, 4259, 0, 1, 30, 'small', 8.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('arena_watchtower', 'tf', 3789, 3075, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('arena_well', 'tf', 5331, 3389, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ctf_turbine', 'tf', 4496, 3593, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ctf_well', 'tf', 6437, 5123, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('tc_hydro', 'tf', 6038, 4348, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_castle4', 'tf', 4120, 7826, 0, 1, 30, 'small', 11, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_follower', 'tf', 8871, 6631, 0, 1, 30, 'small', 13, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_labor', 'tf', 5788, 3873, 0, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_stag', 'tf', 5099, 4021, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ctf_chaos', 'tf', 3899, 3214, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dom_canalzone', 'tf', 4044, 3664, 0, 1, 30, 'small', 6.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('pl_frontier', 'tf', 6094, 4051, 0, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('pl_halfacre', 'tf', 5098, 5920, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_airport01_greenhouse', 'l4d', 979, 3935, 0, 0, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_airport03_garage', 'l4d', 11413, 6781, 0, 1, 30, 'small', 12, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_airport04_terminal', 'l4d', 2659, 6795, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_airport05_runway', 'l4d', 8197, 12894, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_farm01_hilltop', 'l4d', 14734, 5840, 1, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_farm02_traintunnel', 'l4d', 11001, 3377, 1, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_farm03_bridge', 'l4d', 1353, 7488, 1, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_farm04_barn', 'l4d', 3091, 186, 1, 0, 30, 'small', 12, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_farm05_cornfield', 'l4d', 4448, 5460, 0, 0, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_hospital01_apartment', 'l4d', 662, 5571, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_hospital02_subway', 'l4d', 1621, 8552, 0, 0, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_hospital03_sewers', 'l4d', 7045, 14101, 0, 0, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_hospital04_interior', 'l4d', 9513, 16235, 0, 0, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_hospital05_rooftop', 'l4d', 4450, 10005, 0, 0, 30, 'small', 3, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_smalltown01_caves', 'l4d', 20542, 3156, 1, 1, 30, 'small', 13, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_smalltown02_drainage', 'l4d', 12149, 4040, 1, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_smalltown05_houseboat', 'l4d', 6554, 5155, 0, 1, 30, 'small', 12, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('pl_jungle_a1c', 'tf', 3024, 5391, 0, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('pl_strider_v1', 'tf', 7109, 4078, 0, 1, 30, 'small', 7.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_warpath_v3', 'tf', 3995, 3298, 0, 1, 30, 'small', 6.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('grubas_nabijacz!_v6', 'tf', 2004, 2478, 0, 1, 30, 'small', 4, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_boulder_v5', 'tf', 9562, 12307, 0, 1, 30, 'small', 16, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_broma', 'tf', 5261, 3192, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_busytown', 'tf', 6413, 5961, 0, 1, 30, 'small', 11, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_roswell', 'tf', 2809, 4448, 0, 1, 30, 'small', 6.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_vertigo_beta3', 'tf', 3584, 3108, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_wolf2_b1', 'tf', 2182, 3838, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ctf_convoy_v2', 'tf', 3732, 2694, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_well', 'tf', 10371, 7681, 0, 1, 30, 'small', 15, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_furnace_b2', 'tf', 4667, 4823, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('pl_borax_b2', 'tf', 5252, 593, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_jailbreak_b3', 'tf', 8570, -702, 0, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_desertfortress', 'tf', 3675, 3269, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_train', 'css', 2616, 2619, 0, 1, 30, 'small', 4.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_tides', 'css', 2385, 1589, 0, 1, 30, 'small', 3.7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_prodigy', 'css', 1025, 2198, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_port', 'css', 4189, 4131, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_piranesi', 'css', 3082, 3239, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_nuke', 'css', 3541, 1856, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_inferno', 'css', 3336, 4252, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_chateau', 'css', 2121, 3074, 0, 1, 30, 'small', 4.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_cbble', 'css', 4704, 3587, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_aztec', 'css', 4235, 3430, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cs_militia', 'css', 2838, 2745, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cs_italy', 'css', 3071, 2920, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cs_havana', 'css', 2958, 2678, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cs_compound', 'css', 1734, 3943, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cs_assault', 'css', 2467, 8268, 0, 0, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dm_lockdown', 'hl2mp', 7301, 7172, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dm_overwatch', 'hl2mp', 1997, 8416, 0, 0, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dm_powerhouse', 'hl2mp', 2558, 762, 0, 1, 30, 'small', 3.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dm_resistance', 'hl2mp', 2606, 2129, 0, 1, 30, 'small', 4, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dm_runoff', 'hl2mp', 5116, 5210, 0, 0, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dm_steamlab', 'hl2mp', 3854, 3471, 0, 1, 30, 'small', 2.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dm_underpass', 'hl2mp', 1611, 364, 0, 1, 30, 'small', 2.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('coop_elpaso', 'fof', 7369, 4167, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('coop_peligro', 'fof', 10378, 4070, 0, 1, 30, 'small', 13, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('coop_revenge', 'fof', 1687, 2560, 0, 1, 30, 'small', 3.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('coop_sweetwater', 'fof', 2289, 1565, 0, 1, 30, 'small', 4, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fof_canyonland', 'fof', 6026, 6913, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fof_desert', 'fof', 5996, 2255, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fof_desperados', 'fof', 613, -645, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fof_eliminator', 'fof', 5944, 7040, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fof_eliminator_lite', 'fof', 3306, 4981, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fof_elpaso', 'fof', 7031, 4138, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fof_loothill', 'fof', 6196, 5624, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fof_monumentvalley', 'fof', 2563, 6738, 0, 1, 30, 'small', 12, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fof_nowhere', 'fof', 4977, 1796, 0, 1, 30, 'small', 5.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fof_peligro', 'fof', 4913, 4044, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fof_peligro_lite', 'fof', 3983, 3030, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fof_presidio', 'fof', 3149, 1539, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fof_revenge', 'fof', 1685, 2584, 0, 1, 30, 'small', 3.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fof_sweetwater', 'fof', 2289, 1565, 0, 1, 30, 'small', 4, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fof_tijuana', 'fof', 3692, 3638, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fof_tramonto', 'fof', 4743, 2026, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fof_tramonto_lite', 'fof', 3465, 1094, 0, 1, 30, 'small', 3, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('as_oilrig', 'cstrike', 588.81, -730.75, 0, 0, 30, 'small', 2.48, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cs_747', 'cstrike', 64, -608, 0, 1, 30, 'small', 1.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cs_assault', 'cstrike', 720, 1024, 0, 1, 30, 'small', 1.54, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cs_backalley', 'cstrike', 148, 1360, 0, 0, 30, 'small', 2.08, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cs_estate', 'cstrike', 144, -928, 0, 1, 30, 'small', 2.04, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cs_havana', 'cstrike', 256, 56, 0, 0, 30, 'small', 1.38, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cs_italy', 'cstrike', 248, 16, 0, 1, 30, 'small', 1.57, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cs_militia', 'cstrike', 621, -534, 0, 0, 30, 'small', 1.69, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cs_office', 'cstrike', 64, -260, 0, 1, 30, 'small', 1.47, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cs_siege', 'cstrike', 564, 1252, 0, 0, 30, 'small', 1.15, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_airstrip', 'cstrike', 1116, -368, 0, 1, 30, 'small', 1.21, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_aztec', 'cstrike', 447.31, -62.94, 0, 1, 30, 'small', 1.12, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_cbble', 'cstrike', 832, 576, 0, 1, 30, 'small', 1.07, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_chateau', 'cstrike', 1032, 688.5, 0, 0, 30, 'small', 1.46, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_dust', 'cstrike', 96, 960, 0, 1, 30, 'small', 1.1, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_dust2', 'cstrike', 384, 1120, 0, 1, 30, 'small', 1.26, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_inferno', 'cstrike', 404, 1312, 0, 0, 30, 'small', 1.39, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_nuke', 'cstrike', 244, -936, 0, 0, 30, 'small', 1.14, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_piranesi', 'cstrike', 48, 864, 0, 0, 30, 'small', 1.37, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_prodigy', 'cstrike', 1476, -264, 0, 0, 30, 'small', 1.94, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_storm', 'cstrike', 191, -104, 0, 0, 30, 'small', 1.42, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_survivor', 'cstrike', 832, 880, 0, 0, 30, 'small', 1.38, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_torn', 'cstrike', 112, 664, 0, 0, 30, 'small', 1.24, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_train', 'cstrike', 49.19, 156, 0, 0, 30, 'small', 1.58, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_vertigo', 'cstrike', 1280, -256, 0, 1, 30, 'small', 2.13, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('bg_dusk_patrol', 'bg2', 6504, 4690, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('bg_fall', 'bg2', 1198, 2503, 0, 1, 30, 'small', 4.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('bg_foothills', 'bg2', 5440, 5115, 0, 1, 30, 'small', 8.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('bg_freemans_farm', 'bg2', 6648, 5275, 0, 1, 30, 'small', 10.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('bg_maricopa', 'bg2', 6398, 2313, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('bg_pillage', 'bg2', 3746, 6363, 0, 1, 30, 'small', 9.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('bg_pinebarrens', 'bg2', 257, 6121, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('bg_plateau', 'bg2', 3840, 3085, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('bg_road', 'bg2', 5149, 3755, 0, 1, 30, 'small', 8.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('bg_snowlake', 'bg2', 6194, 7018, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('bg_woodland', 'bg2', 4924, 3236, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('bg_harbourtown', 'bg2', 2123, 4443, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('aoc_battleground', 'aoc', 4969, 2889, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('aoc_darkforest', 'aoc', 5984, 9812, 0, 1, 30, 'small', 13, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('aoc_firecrag', 'aoc', 3585, 10952, 0, 1, 30, 'small', 12, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('aoc_helms_deep', 'aoc', 5672, 2522, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('aoc_invasion', 'aoc', 3979, 3593, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('aoc_monastery', 'aoc', 5549, 3561, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('aoc_overlook', 'aoc', 3711, 2781, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('aoc_siege', 'aoc', 3186, 4274, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('aoc_sorrow', 'aoc', 4128, 6654, 0, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('aoc_stoneshill', 'aoc', 7175, 5685, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('aoc_theshore', 'aoc', 540, 7698, 0, 0, 30, 'small', 14, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('aoc_tombs', 'aoc', 1287, 995, 0, 1, 30, 'small', 2, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('aoc_tournament', 'aoc', 1353, 1750, 0, 1, 30, 'small', 2.2, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('aoc_valley', 'aoc', 4573, 3442, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('aoc_westerlyn', 'aoc', 7166, 6094, 0, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_2fort', 'ff', 5582, 4318, 0, 1, 30, 'small', 8.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_2morforever', 'ff', 3458, 2582, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_aardvark', 'ff', 5725, 3384, 0, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_anticitizen', 'ff', 9919, 5646, 0, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_attrition', 'ff', 3086, 2571, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_bases', 'ff', 5084, 4099, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_cornfield', 'ff', 4987, 3476, 0, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_crossover', 'ff', 5996, 4577, 0, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_cz2', 'ff', 4672, 3836, 0, 1, 30, 'small', 7.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_destroy', 'ff', 4945, 4018, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_dm', 'ff', 1917, 1501, 0, 1, 30, 'small', 3, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_dropdown', 'ff', 4529, 3539, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_dustbowl', 'ff', 5457, 4520, 0, 1, 30, 'small', 8.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_epicenter', 'ff', 3781, 3037, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_hunted', 'ff', 6151, 5125, 0, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_impact', 'ff', 4096, 2190, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_monkey', 'ff', 4989, 4082, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_openfire', 'ff', 3173, 2504, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_palermo', 'ff', 6191, 3333, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_pitfall', 'ff', 4485, 3633, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_push', 'ff', 4744, 3849, 0, 1, 30, 'small', 7.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_schtop', 'ff', 4802, 3837, 0, 1, 30, 'small', 7.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_shutdown2', 'ff', 4703, 3825, 0, 1, 30, 'small', 7.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_tiger', 'ff', 2686, 1858, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_vertigo', 'ff', 2010, 1500, 0, 1, 30, 'small', 3, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_waterpolo', 'ff', 3209, 2608, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ff_well', 'ff', 4482, 3423, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_airport01_greenhouse', 'l4d', 979, 3935, 0, 0, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_airport03_garage', 'l4d', 11413, 6781, 0, 1, 30, 'small', 12, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_airport04_terminal', 'l4d', 2659, 6795, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_airport05_runway', 'l4d', 8197, 12894, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_farm01_hilltop', 'l4d', 14734, 5840, 1, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_farm02_traintunnel', 'l4d', 11001, 3377, 1, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_farm03_bridge', 'l4d', 1353, 7488, 1, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_farm04_barn', 'l4d', 3091, 186, 1, 0, 30, 'small', 12, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_farm05_cornfield', 'l4d', 4448, 5460, 0, 0, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_hospital01_apartment', 'l4d', 662, 5571, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_hospital02_subway', 'l4d', 1621, 8552, 0, 0, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_hospital03_sewers', 'l4d', 7045, 14101, 0, 0, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_hospital04_interior', 'l4d', 9513, 16235, 0, 0, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_hospital05_rooftop', 'l4d', 4450, 10005, 0, 0, 30, 'small', 3, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_smalltown01_caves', 'l4d', 20542, 3156, 1, 1, 30, 'small', 13, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_smalltown02_drainage', 'l4d', 12149, 4040, 1, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('nt_dawn_ctg', 'nts', 3447, 5426, 0, 1, 30, 'small', 5.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('nt_engage_ctg', 'nts', 4112, 4024, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('nt_ghost_ctg', 'nts', 4951, 6131, 0, 1, 30, 'small', 7.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('nt_isolation_ctg', 'nts', 5357, 3549, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('nt_rise_ctg', 'nts', 2205, 2044, 0, 1, 30, 'small', 3.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('nt_shrine_ctg', 'nts', 4976, 6388, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('nt_skyline_ctg', 'nts', 4516, 2141, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('nt_subsurface_ctg', 'nts', 3319, 1552, 0, 1, 30, 'small', 6.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('nt_tarmac_ctg', 'nts', 2359, 3388, 0, 1, 30, 'small', 5.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('nt_transit_ctg', 'nts', 2749, 1879, 0, 1, 30, 'small', 4, 10, 0.170312, 0.170312, 0, 0, 0, 0);
DROP TABLE `hlstats_Livestats`;
CREATE TABLE IF NOT EXISTS `hlstats_Livestats` (
`player_id` int(10) NOT NULL default '0',
`server_id` int(4) NOT NULL default '0',
`cli_address` varchar(32) NOT NULL default '',
`cli_city` varchar(64) NOT NULL default '',
`cli_country` varchar(64) NOT NULL default '',
`cli_flag` varchar(16) NOT NULL default '',
`cli_state` varchar(64) NOT NULL default '',
`cli_lat` FLOAT(7,4) NULL,
`cli_lng` FLOAT(7,4) NULL,
`steam_id` varchar(64) NOT NULL default '',
`name` varchar(64) NOT NULL,
`team` varchar(64) NOT NULL default '',
`kills` int(6) NOT NULL default '0',
`deaths` int(6) NOT NULL default '0',
`suicides` int(6) NOT NULL default '0',
`headshots` int(6) NOT NULL default '0',
`shots` int(11) NOT NULL default '0',
`hits` int(11) NOT NULL default '0',
`is_dead` tinyint(1) NOT NULL default '0',
`has_bomb` int(1) NOT NULL default '0',
`ping` int(6) NOT NULL default '0',
`connected` int(10) NOT NULL default '0',
`skill_change` int(10) NOT NULL default '0',
`skill` int(10) NOT NULL default '0',
PRIMARY KEY (`player_id`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8;
CREATE TABLE `hlstats_Maps_Counts` (
`rowId` int(11) NOT NULL auto_increment,
`game` varchar(32) character set utf8 NOT NULL,
`map` varchar(64) character set utf8 NOT NULL,
`kills` int(11) NOT NULL,
`headshots` int(11) NOT NULL,
PRIMARY KEY (`game`,`map`),
INDEX ( `rowId` )
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `hlstats_Maps_Counts` (`game`, `map`, `kills`, `headshots`)
SELECT `hlstats_Servers`.`game`, `hlstats_Events_Frags`.`map`, COUNT(`hlstats_Events_Frags`.`killerId`), SUM(`hlstats_Events_Frags`.`headshot`) FROM `hlstats_Events_Frags` INNER JOIN `hlstats_Servers` ON `hlstats_Events_Frags`.`serverId` = `hlstats_Servers`.`serverId` WHERE `hlstats_Events_Frags`.`map` <> '' GROUP BY `hlstats_Servers`.`game`, `hlstats_Events_Frags`.`map`;
UPDATE `hlstats_Options` SET `opttype` = 2 WHERE `keyname` = 'MinActivity';
ALTER TABLE `hlstats_Players`
ADD `activity` int(11) NOT NULL default '100',
CHANGE `lat` `lat` FLOAT(7,4) NULL,
CHANGE `lng` `lng` FLOAT(7,4) NULL;
INSERT IGNORE INTO `hlstats_Ranks` (`game`, `image`, `minKills`, `maxKills`, `rankName`) VALUES
('nts', 'recruit', 0, 49, 'Recruit'),
('nts', 'private', 50, 99, 'Private'),
('nts', 'private-first-class', 100, 199, 'Private First Class'),
('nts', 'lance-corporal', 200, 299, 'Lance Corporal'),
('nts', 'corporal', 300, 399, 'Corporal'),
('nts', 'sergeant', 400, 499, 'Sergeant'),
('nts', 'staff-sergeant', 500, 599, 'Staff Sergeant'),
('nts', 'gunnery-sergeant', 600, 699, 'Gunnery Sergeant'),
('nts', 'master-sergeant', 700, 799, 'Master Sergeant'),
('nts', 'first-sergeant', 800, 899, 'First Sergeant'),
('nts', 'master-chief', 900, 999, 'Master Chief'),
('nts', 'sergeant-major', 1000, 1199, 'Sergeant Major'),
('nts', 'ensign', 1200, 1399, 'Ensign'),
('nts', 'third-lieutenant', 1400, 1599, 'Third Lieutenant'),
('nts', 'second-lieutenant', 1600, 1799, 'Second Lieutenant'),
('nts', 'first-lieutenant', 1800, 1999, 'First Lieutenant'),
('nts', 'captain', 2000, 2249, 'Captain'),
('nts', 'group-captain', 2250, 2499, 'Group Captain'),
('nts', 'senior-captain', 2500, 2749, 'Senior Captain'),
('nts', 'lieutenant-major', 2750, 2999, 'Lieutenant Major'),
('nts', 'major', 3000, 3499, 'Major'),
('nts', 'group-major', 3500, 3999, 'Group Major'),
('nts', 'lieutenant-commander', 4000, 4499, 'Lieutenant Commander'),
('nts', 'commander', 4500, 4999, 'Commander'),
('nts', 'group-commander', 5000, 5749, 'Group Commander'),
('nts', 'lieutenant-colonel', 5750, 6499, 'Lieutenant Colonel'),
('nts', 'colonel', 6500, 7249, 'Colonel'),
('nts', 'brigadier', 7250, 7999, 'Brigadier'),
('nts', 'brigadier-general', 8000, 8999, 'Brigadier General'),
('nts', 'major-general', 9000, 9999, 'Major General'),
('nts', 'lieutenant-general', 10000, 12499, 'Lieutenant General'),
('nts', 'general', 12500, 14999, 'General'),
('nts', 'commander-general', 15000, 17499, 'Commander General'),
('nts', 'field-vice-marshal', 17500, 19999, 'Field Vice Marshal'),
('nts', 'field-marshal', 20000, 22499, 'Field Marshal'),
('nts', 'vice-commander-of-the-army', 22500, 24999, 'Vice Commander of the Army'),
('nts', 'commander-of-the-army', 25000, 27499, 'Commander of the Army'),
('nts', 'high-commander', 27500, 29999, 'High Commander'),
('nts', 'supreme-commander', 30000, 34999, 'Supreme Commander'),
('nts', 'terminator', 35000, 9999999, 'Terminator');
INSERT IGNORE INTO `hlstats_Ribbons` (`awardCode`, `awardCount`, `special`, `game`, `image`, `ribbonName`) VALUES
('ak47',1,0,'cstrike','1_ak47.png','Award of AK47'),
('awp',1,0,'cstrike','1_awp.png','Award of AWP Sniper'),
('deagle',1,0,'cstrike','1_deagle.png','Award of Desert Eagle'),
('elite',1,0,'cstrike','1_elite.png','Award of Dual Beretta Elites'),
('famas',1,0,'cstrike','1_famas.png','Award of Fusil Automatique'),
('galil',1,0,'cstrike','1_galil.png','Award of Galil'),
('glock18',1,0,'cstrike','1_glock.png','Award of Glock'),
('grenade',1,0,'cstrike','1_hegrenade.png','Award of Grenade'),
('knife',1,0,'cstrike','1_knife.png','Award of Combat Knife'),
('latency',1,0,'cstrike','1_latency.png','Award of Lowpinger'),
('m3',1,0,'cstrike','1_m3.png','Award of M3 Super'),
('m4a1',1,0,'cstrike','1_m4a1.png','Award of Colt M4A1'),
('p90',1,0,'cstrike','1_p90.png','Award of P90'),
('scout',1,0,'cstrike','1_scout.png','Award of Scout Elite'),
('usp',1,0,'cstrike','1_usp.png','Award of USP'),
('Defused_The_Bomb',1,0,'cstrike','1_defused_the_bomb.png','Award of Bomb Defuser'),
('Planted_The_Bomb',1,0,'cstrike','1_planted_the_bomb.png','Award of Bomb Planter'),
('Rescued_A_Hostage',1,0,'cstrike','1_rescued_a_hostage.png','Award of Hostage Rescuer'),
('Assassinated_The_VIP',1,0,'cstrike','1_killed_a_hostage.png','Award of Top Assassin'),
('ak47',5,0,'cstrike','2_ak47.png','Bronze AK47'),
('awp',5,0,'cstrike','2_awp.png','Bronze AWP Sniper'),
('deagle',5,0,'cstrike','2_deagle.png','Bronze Desert Eagle'),
('elite',5,0,'cstrike','2_elite.png','Bronze Dual Beretta Elites'),
('famas',5,0,'cstrike','2_famas.png','Bronze Fusil Automatique'),
('galil',5,0,'cstrike','2_galil.png','Bronze Galil'),
('glock18',5,0,'cstrike','2_glock.png','Bronze Glock'),
('grenade',5,0,'cstrike','2_hegrenade.png','Bronze Grenade'),
('knife',5,0,'cstrike','2_knife.png','Bronze Combat Knife'),
('latency',5,0,'cstrike','2_latency.png','Bronze Lowpinger'),
('m3',5,0,'cstrike','2_m3.png','Bronze Award M3 Super'),
('m4a1',5,0,'cstrike','2_m4a1.png','Bronze AColt M4A1'),
('p90',5,0,'cstrike','2_p90.png','Bronze P90'),
('scout',5,0,'cstrike','2_scout.png','Bronze Scout Elite'),
('usp',5,0,'cstrike','2_usp.png','Bronze USP'),
('Defused_The_Bomb',5,0,'cstrike','2_defused_the_bomb.png','Bronze Bomb Defuser'),
('Planted_The_Bomb',5,0,'cstrike','2_planted_the_bomb.png','Bronze Bomb Planter'),
('Rescued_A_Hostage',5,0,'cstrike','2_rescued_a_hostage.png','Bronze Hostage Rescuer'),
('Assassinated_The_VIP',5,0,'cstrike','2_killed_a_hostage.png','Bronze Top Assassin'),
('ak47',12,0,'cstrike','3_ak47.png','Silver AK47'),
('awp',12,0,'cstrike','3_awp.png','Silver Sniper'),
('deagle',12,0,'cstrike','3_deagle.png','Silver Desert Eagle'),
('elite',12,0,'cstrike','3_elite.png','Silver Dual Beretta Elites'),
('famas',12,0,'cstrike','3_famas.png','Silver Fusil Automatique'),
('galil',12,0,'cstrike','3_galil.png','Silver Galil'),
('glock18',12,0,'cstrike','3_glock.png','Silver Glock'),
('grenade',12,0,'cstrike','3_hegrenade.png','Silver Grenade'),
('knife',12,0,'cstrike','3_knife.png','Silver Combat Knife'),
('latency',12,0,'cstrike','3_latency.png','Silver Lowpinger'),
('m3',12,0,'cstrike','3_m3.png','Silver M3 Super'),
('m4a1',12,0,'cstrike','3_m4a1.png','Silver Colt M4A1'),
('p90',12,0,'cstrike','3_p90.png','Silver P90'),
('scout',12,0,'cstrike','3_scout.png','Silver Scout Elite'),
('usp',12,0,'cstrike','3_usp.png','Silver USP'),
('Defused_The_Bomb',12,0,'cstrike','3_defused_the_bomb.png','Silver Bomb Defuser'),
('Planted_The_Bomb',12,0,'cstrike','3_planted_the_bomb.png','Silver Bomb Planter'),
('Rescued_A_Hostage',12,0,'cstrike','3_rescued_a_hostage.png','Silver Hostage Rescuer'),
('Assassinated_The_VIP',12,0,'cstrike','3_killed_a_hostage.png','Silver Top Assassin'),
('ak47',20,0,'cstrike','4_ak47.png','Gold AK47'),
('awp',20,0,'cstrike','4_awp.png','Gold AWP Sniper'),
('deagle',20,0,'cstrike','4_deagle.png','Gold Desert Eagle'),
('elite',20,0,'cstrike','4_elite.png','Gold Dual Beretta Elites'),
('famas',20,0,'cstrike','4_famas.png','Gold Fusil Automatique'),
('galil',20,0,'cstrike','4_galil.png','GoldGalil'),
('glock18',20,0,'cstrike','4_glock.png','Gold Glock'),
('grenade',20,0,'cstrike','4_hegrenade.png','Gold Grenade'),
('knife',20,0,'cstrike','4_knife.png','Gold Combat Knife'),
('latency',20,0,'cstrike','4_latency.png','Gold Lowpinger'),
('m3',20,0,'cstrike','4_m3.png','Gold M3 Super'),
('m4a1',20,0,'cstrike','4_m4a1.png','Gold Colt M4A1'),
('p90',20,0,'cstrike','4_p90.png','Gold P90'),
('scout',20,0,'cstrike','4_scout.png','Gold Scout Elite'),
('usp',20,0,'cstrike','4_usp.png','Gold USP'),
('Defused_The_Bomb',20,0,'cstrike','4_defused_the_bomb.png','Gold Bomb Defuser'),
('Planted_The_Bomb',20,0,'cstrike','4_planted_the_bomb.png','Gold Bomb Planter'),
('Rescued_A_Hostage',20,0,'cstrike','4_rescued_a_hostage.png','Gold Hostage Rescuer'),
('Assassinated_The_VIP',20,0,'cstrike','4_killed_a_hostage.png','Gold Top Assassin'),
('ak47',30,0,'cstrike','5_ak47.png','Platinum AK47'),
('awp',30,0,'cstrike','5_awp.png','Platinum AWP Sniper'),
('deagle',30,0,'cstrike','5_deagle.png','Platinum Desert Eagle'),
('elite',30,0,'cstrike','5_elite.png','Platinum Dual Beretta Elites'),
('famas',30,0,'cstrike','5_famas.png','Platinum Fusil Automatique'),
('galil',30,0,'cstrike','5_galil.png','Platinum Galil'),
('glock18',30,0,'cstrike','5_glock.png','Platinum Glock'),
('grenade',30,0,'cstrike','5_hegrenade.png','Platinum Grenade'),
('knife',30,0,'cstrike','5_knife.png','PlatinumCombat Knife'),
('latency',30,0,'cstrike','5_latency.png','PlatinumLowpinger'),
('m3',30,0,'cstrike','5_m3.png','Platinum M3 Super'),
('m4a1',30,0,'cstrike','5_m4a1.png','Platinum Colt M4A1'),
('p90',30,0,'cstrike','5_p90.png','Platinum P90'),
('scout',30,0,'cstrike','5_scout.png','Platinum Scout Elite'),
('usp',30,0,'cstrike','5_usp.png','Platinum USP'),
('Defused_The_Bomb',30,0,'cstrike','5_defused_the_bomb.png','Platinum Bomb Defuser'),
('Planted_The_Bomb',30,0,'cstrike','5_planted_the_bomb.png','Platinum Bomb Planter'),
('Rescued_A_Hostage',30,0,'cstrike','5_rescued_a_hostage.png','Platinum Hostage Rescuer'),
('Assassinated_The_VIP',30,0,'cstrike','5_killed_a_hostage.png','Platinum Top Assassin'),
('ak47',50,0,'cstrike','6_ak47.png','Supreme AK47'),
('awp',50,0,'cstrike','6_awp.png','Supreme AWP Sniper'),
('deagle',50,0,'cstrike','6_deagle.png','Supremef Desert Eagle'),
('elite',50,0,'cstrike','6_elite.png','Supreme Dual Beretta Elites'),
('famas',50,0,'cstrike','6_famas.png','Supreme Fusil Automatique'),
('galil',50,0,'cstrike','6_galil.png','Supreme Galil'),
('glock18',50,0,'cstrike','6_glock.png','Supreme Glock'),
('grenade',50,0,'cstrike','6_hegrenade.png','Supreme Grenade'),
('knife',50,0,'cstrike','6_knife.png','Supreme Combat Knife'),
('latency',50,0,'cstrike','6_latency.png','Supreme Lowpinger'),
('m3',50,0,'cstrike','6_m3.png','Supreme M3 Super'),
('m4a1',50,0,'cstrike','6_m4a1.png','Supreme Colt M4A1'),
('p90',50,0,'cstrike','6_p90.png','Supremef P90'),
('scout',50,0,'cstrike','6_scout.png','Supreme Scout Elite'),
('usp',50,0,'cstrike','6_usp.png','Supreme USP'),
('Defused_The_Bomb',50,0,'cstrike','6_defused_the_bomb.png','Supreme Bomb Defuser'),
('Planted_The_Bomb',50,0,'cstrike','6_planted_the_bomb.png','Supreme Bomb Planter'),
('Rescued_A_Hostage',50,0,'cstrike','6_rescued_a_hostage.png','Supreme Hostage Rescuer'),
('Assassinated_The_VIP',50,0,'cstrike','6_killed_a_hostage.png','Supreme Top Assassin'),
('*total connection hours*',25,2,'css','1_connect.png','Connection Time 25 Hours'),
('*total connection hours*',50,2,'css','2_connect.png','Connection Time 50 Hours'),
('*total connection hours*',75,2,'css','3_connect.png','Connection Time 75 Hours'),
('*total connection hours*',100,2,'css','4_connect.png','Connection Time 100 Hours'),
('*total connection hours*',125,2,'css','5_connect.png','Connection Time 125 Hours'),
('*total connection hours*',150,2,'css','6_connect.png','Connection Time 150 Hours'),
('latency',3,0,'hl2mp','1_latency.png','Award of Lowpinger'),
('mostkills',3,0,'hl2mp','1_mostkills.png','Award of Most Kills'),
('suicide',3,0,'hl2mp','1_suicide.png','Award of Most Suicides'),
('latency',7,0,'hl2mp','2_latency.png','Bronze Lowpinger'),
('mostkills',7,0,'hl2mp','2_mostkills.png','Most Kills - Bronze'),
('suicide',7,0,'hl2mp','2_suicide.png','Most Suicides - Bronze'),
('latency',12,0,'hl2mp','3_latency.png','Silver Lowpinger'),
('mostkills',12,0,'hl2mp','3_mostkills.png','Most Kills - Silver'),
('suicide',12,0,'hl2mp','3_suicide.png','Most Suicides - Silver'),
('latency',17,0,'hl2mp','x_latency.png','Supreme Lowpinger'),
('mostkills',17,0,'hl2mp','x_mostkills.png','Most Kills - Supreme'),
('suicide',17,0,'hl2mp','x_suicide.png','Most Suicides - Supreme'),
('galil',1,0,'css','1_galil.png','Award of Galil'),
('galil',5,0,'css','2_galil.png','Bronze Galil'),
('galil',12,0,'css','3_galil.png','Silver Galil'),
('galil',20,0,'css','4_galil.png','Gold Galil'),
('galil',30,0,'css','5_galil.png','Platinum Galil'),
('galil',50,0,'css','6_galil.png','Supreme Galil');
DELETE FROM `hlstats_Ribbons` WHERE `ribbonName` = 'Army Service' AND `game` = 'css' AND `image` = 'ribbon_of_army_service.gif';
INSERT IGNORE INTO `hlstats_Roles` (`game`, `code`, `name`, `hidden`) VALUES
('aoc', 'Longbowman', 'Longbowman', '0'),
('aoc', 'Crossbowman', 'Crossbowman', '0'),
('aoc', 'Javelineer', 'Javelineer', '0'),
('aoc', 'Man at Arms', 'Man at Arms', '0'),
('aoc', 'Sergeant', 'Sergeant', '0'),
('aoc', 'Guardsman', 'Guardsman', '0'),
('aoc', 'Crusader', 'Crusader', '0'),
('aoc', 'Knight', 'Knight', '0'),
('aoc', 'Heavy Knight', 'Heavy Knight', '0');
ALTER TABLE `hlstats_Servers`
ADD `last_event` int(10) unsigned NOT NULL default '0',
CHANGE `lat` `lat` FLOAT(7,4) NULL,
CHANGE `lng` `lng` FLOAT(7,4) NULL;
DELETE FROM `hlstats_Servers_Config` WHERE `parameter` = 'AddressPort';
ALTER TABLE `hlstats_Servers_Teamspeak` RENAME TO `hlstats_Servers_VoiceComm`;
ALTER TABLE `hlstats_Servers_VoiceComm`
CHANGE `tsId` `serverId` int(11) unsigned NOT NULL auto_increment,
CHANGE `tsName` `name` varchar(128) NOT NULL,
CHANGE `tsAddr` `addr` varchar(128) NOT NULL,
CHANGE `tsPassword` `password` varchar(128) default NULL,
CHANGE `tsDesc` `descr` varchar(255) default NULL,
CHANGE `tsQueryPort` `queryPort` int(11) unsigned NOT NULL default '51234',
CHANGE `tsUDPPort` `UDPPort` int(11) unsigned NOT NULL default '8767',
ADD COLUMN `serverType` tinyint(4) NOT NULL default '0';
ALTER TABLE `hlstats_server_load` ADD KEY `timestamp` (`timestamp`);
INSERT IGNORE INTO `hlstats_Teams` (`game`, `code`, `name`, `hidden`, `playerlist_bgcolor`, `playerlist_color`, `playerlist_index`) VALUES
('nts','Jinrai','Jinrai','0','#9AFF9A','#447044',1),
('nts','NSF','NSF','0','#7EA5CC','#4F677F',2);
ALTER TABLE `hlstats_Trend` ADD KEY `timestamp` (`timestamp`);
INSERT IGNORE INTO `hlstats_Weapons` (`game`, `code`, `name`, `modifier`) VALUES
('nts', 'aa13', 'AA13', 1.00),
('nts', 'grenade_projectile', 'Frag Grenade', 1.00),
('nts', 'jitte', 'Jitte', 1.00),
('nts', 'jittescoped', 'Jitte (Scoped)', 1.00),
('nts', 'knife', 'Knife', 1.50),
('nts', 'kyla', 'KYLA', 1.00),
('nts', 'm41', 'M41', 1.00),
('nts', 'm41l', 'M41L', 1.00),
('nts', 'milso', 'MilSO', 1.00),
('nts', 'mp5', 'MP5', 1.00),
('nts', 'mpn', 'MPN45', 1.00),
('nts', 'mx', 'MX', 1.00),
('nts', 'mx_silenced', 'MX Silenced', 1.00),
('nts', 'pz', 'PZ252', 1.00),
('nts', 'grenade_detapack', 'DetPac', 1.00),
('nts', 'smac', 'SMAC', 1.00),
('nts', 'srm', 'SRM', 1.00),
('nts', 'srm_s', 'SRM-S', 1.00),
('nts', 'srs', 'SRS', 1.00),
('nts', 'supa7', 'MURATA SUPA 7', 1.00),
('nts', 'tachi', 'TACHI', 1.00),
('nts', 'zr68c', 'ZR68C', 1.00),
('nts', 'zr68l', 'ZR68L', 1.00),
('nts', 'zr68s', 'ZR68S', 1.00);
INSERT IGNORE INTO `hlstats_Weapons` (`game`, `code`, `name`, `modifier`)
(SELECT `code`, 'deflect_arrow', 'Deflected Arrow', 2 FROM hlstats_Games WHERE `realgame` = 'tf');
UPDATE `hlstats_Options` SET `value` = '1.6.0' WHERE `keyname` = 'version';

View File

@ -0,0 +1,269 @@
INSERT IGNORE INTO `hlstats_Actions` (`game`, `code`, `reward_player`, `reward_team`, `team`, `description`, `for_PlayerActions`, `for_PlayerPlayerActions`, `for_TeamActions`, `for_WorldActions`)
(SELECT code, 'killed_charged_medic', 2, 0, '', 'Killed charged medic', '1', '0', '0', '0' FROM hlstats_Games WHERE `realgame` = 'tf');
UPDATE hlstats_Options SET opttype = 2 WHERE keyname = 'Proxy_Daemons';
INSERT IGNORE INTO `hlstats_Options` (`keyname`, `value`, `opttype`) VALUES
('Proxy_Key', '', 1),
('Proxy_Daemons', '', 2);
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'O',code,'capblock','Capture Blocked','flags blocked' FROM hlstats_Games WHERE `realgame` = 'dods');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W',code,'30cal','.30 Caliber Machine Gun','kills with .30 Caliber Machine Gun' FROM hlstats_Games WHERE `realgame` = 'dods');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W',code,'c96','Pistol c96','kills with Pistol c96' FROM hlstats_Games WHERE `realgame` = 'dods');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W',code,'k98','Mauser Kar 98k','kills with Mauser Kar 98k' FROM hlstats_Games WHERE `realgame` = 'dods');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W',code,'k98_scoped','Mauser Karbiner k98 Sniper Rifle','kills with Mauser Karbiner k98 Sniper Rifle' FROM hlstats_Games WHERE `realgame` = 'dods');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W',code,'m1carbine','M1 Carbine','kills with M1 Carbine' FROM hlstats_Games WHERE `realgame` = 'dods');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W',code,'p38','Pistol 38','kills with Pistol 38' FROM hlstats_Games WHERE `realgame` = 'dods');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W',code,'riflegren_ger','German Rifle Grenade','kills with German Rifle Grenade' FROM hlstats_Games WHERE `realgame` = 'dods');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W',code,'riflegren_us','M1 Garand Rifle','kills with M1 Garand Rifle' FROM hlstats_Games WHERE `realgame` = 'dods');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W',code,'smoke_us','U.S. Smoke Grenade','kills with the U.S. Smoke Grenade' FROM hlstats_Games WHERE `realgame` = 'dods');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W',code,'smoke_ger','German Smoke Grenade','kills with the German Smoke Grenade' FROM hlstats_Games WHERE `realgame` = 'dods');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W',code,'backstab', 'Backstabber', 'backstab kills' FROM hlstats_Games WHERE `realgame` = 'ff');
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_airport01_greenhouse";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_airport01_greenhouse";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_airport03_offices";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_airport04_terminal";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_airport05_runway";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_farm01_hilltop";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_farm02_traintunnel";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_farm03_bridge";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_farm04_barn";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_farm05_cornfield";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_hospital01_apartment";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_hospital02_subway";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_hospital03_sewers";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_hospital04_interior";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_hospital05_rooftop";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_smalltown01_caves";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_smalltown02_drainage";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_smalltown03_ranchhouse";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_smalltown04_mainstreet";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_smalltown05_houseboat";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_airport01_greenhouse";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_airport01_greenhouse";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_airport03_offices";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_airport04_terminal";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_airport05_runway";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_farm01_hilltop";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_farm02_traintunnel";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_farm03_bridge";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_farm04_barn";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_farm05_cornfield";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_hospital01_apartment";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_hospital02_subway";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_hospital03_sewers";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_hospital04_interior";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_hospital05_rooftop";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_smalltown01_caves";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_smalltown02_drainage";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_smalltown03_ranchhouse";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_smalltown04_mainstreet";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_vs_smalltown05_houseboat";
DELETE IGNORE FROM `hlstats_Heatmap_Config` WHERE `game` = "l4d" AND `map` = "l4d_sv_lighthouse";
INSERT IGNORE INTO `hlstats_Heatmap_Config` (`map`, `game`, `xoffset`, `yoffset`, `flipx`, `flipy`, `days`, `brush`, `scale`, `font`, `thumbw`, `thumbh`, `cropx1`, `cropy1`, `cropx2`, `cropy2`) VALUES
('koth_viaduct','tf', 7074, 3773, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('koth_sawmill','tf', 4604, 4094, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('koth_nucleus','tf', 3156, 2520, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ctf_sawmill','tf', 4603, 4073, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('arena_offblast_final','tf', 1920, 1536, 0, 1, 30, 'small', 3, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_yukon_final','tf', 6602, 5123, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('2tpl_mine_alpine','tf', 1238, 1462, 0, 1, 30, 'small', 4, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_blackmesa','tf', 4110, 1755, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_bloodstained','tf', 7182, 5447, 0, 1, 30, 'small', 12, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_corporation_b2','tf', 5272, 3113, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_frontline_a1','tf', 6534, 6439, 0, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_furnace_b3','tf', 6114, 5236, 0, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fy_twotowers','css',591,1561,1,1,30,'small',2.5,10,0.170312,0.170312,0,0,0,0),
('fy_twotowers32','css',591,1561,1,1,30,'small',2.5,10,0.170312,0.170312,0,0,0,0),
('fy_twotowers2009','css',591,1561,1,1,30,'small',2.5,10,0.170312,0.170312,0,0,0,0),
('de_alberta', 'css', 4187, 2071, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_alivemetal', 'css', 1158, 1221, 0, 1, 30, 'small', 2.9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_boston', 'css', 3116, 1189, 0, 1, 30, 'small', 4.4, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_carpediem_arena', 'css', 1961, 1262, 0, 1, 30, 'small', 3.2, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_deltamill2', 'css', 2388, 652, 0, 1, 30, 'small', 4, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_gristmill', 'css', 1724, -72, 0, 1, 30, 'small', 2.7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_losttemple_pro', 'css', 2495, 1838, 0, 1, 30, 'small', 5.1, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_nightfever', 'css', 3262, 4871, 0, 1, 30, 'small', 6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_pira_legos', 'css', 2964, 3027, 0, 1, 30, 'small', 4.3, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_rumpeldust2', 'css', 3678, 3925, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_sandland', 'css', 2795, 2344, 0, 1, 30, 'small', 4.6, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_snowcapped', 'css', 2248, 2633, 0, 1, 30, 'small', 4, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_toxin', 'css', 3394, 2023, 0, 1, 30, 'small', 5.4, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('de_winery_final', 'css', 2911, 2014, 0, 1, 30, 'small', 4, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_anzio', 'dod', 50.97, -82.75, 0, 1, 30, 'small', 1.01, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_avalanche', 'dod', 424, 160, 0, 1, 30, 'small', 1.58, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_charlie', 'dod', 32, 0, 1, 1, 30, 'small', 0.77, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_chemille', 'dod', 692, -568, 1, 1, 30, 'small', 1.19, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_donner', 'dod', 192, -1248, 1, 1, 30, 'small', 1.11, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_escape', 'dod', 176, 410, 1, 1, 30, 'small', 1.26, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_falaise', 'dod', 36.5, 227, 0, 1, 30, 'small', 0.82, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_flash', 'dod', 295.99, -504, 1, 1, 30, 'small', 1.19, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_flugplatz', 'dod', 199.5, -33, 0, 1, 30, 'small', 0.85, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_forest', 'dod', 492.5, 361, 1, 1, 30, 'small', 0.9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_glider', 'dod', 426, 308, 0, 1, 30, 'small', 1.14, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_jagd', 'dod', 64, 40, 0, 1, 30, 'small', 0.86, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_kalt', 'dod', 0, -504, 0, 1, 30, 'small', 1.22, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_kraftstoff', 'dod', 656, -308, 0, 1, 30, 'small', 1.1, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_merderet', 'dod', 532, 409, 1, 1, 30, 'small', 0.93, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_northbound', 'dod', 83.5, -10.5, 1, 1, 30, 'small', 1.01, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_saints', 'dod', 704, 196, 1, 1, 30, 'small', 1.25, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_sturm', 'dod', 210, 546, 1, 1, 30, 'small', 1.06, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_switch', 'dod', 1146, 582.5, 0, 1, 30, 'small', 1.19, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_vicenza', 'dod', 48, -48, 1, 1, 30, 'small', 1.05, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_zalec', 'dod', 8, -48, 1, 1, 30, 'small', 0.77, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dod_cean', 'dod', 540, 259, 0, 1, 30, 'small', 0.87, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('co_angst', 'ns', 828, 376, 1, 1, 30, 'small', 1.42, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('co_core', 'ns', 146, -472, 1, 1, 30, 'small', 2.25, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('co_daimos', 'ns', 968, -128, 1, 1, 30, 'small', 1.17, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('co_faceoff', 'ns', 1184, -368, 0, 1, 30, 'small', 1.48, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('co_kestrel', 'ns', 962, 1648, 1, 1, 30, 'small', 1.42, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('co_niveus', 'ns', 384, 1728, 0, 1, 30, 'small', 1.27, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('co_pulse', 'ns', 764, -268, 1, 1, 30, 'small', 1.83, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('co_sava', 'ns', 310, 974, 0, 1, 30, 'small', 1.09, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('co_ulysses', 'ns', 688, -1056, 1, 1, 30, 'small', 1.64, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('co_umbra', 'ns', 1760, 192, 0, 1, 30, 'small', 1.21, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ns_altair', 'ns', 360, 24, 1, 1, 30, 'small', 0.92, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ns_ayumi', 'ns', 260, -512, 0, 1, 30, 'small', 1.21, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ns_bast', 'ns', 152.5, 63, 1, 1, 30, 'small', 0.9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ns_caged', 'ns', 256, 456, 1, 1, 30, 'small', 0.95, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ns_eclipse', 'ns', 164, -40, 1, 1, 30, 'small', 0.91, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ns_eon', 'ns', 23, 91.5, 1, 1, 30, 'small', 0.92, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ns_hera', 'ns', 180, -24, 1, 1, 30, 'small', 0.83, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ns_lost', 'ns', 12, 256, 0, 1, 30, 'small', 1.28, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ns_lucid', 'ns', 380, -632, 1, 1, 30, 'small', 1.04, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ns_machina', 'ns', 112, -404, 0, 1, 30, 'small', 0.86, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ns_metal', 'ns', 164, 388, 0, 1, 30, 'small', 0.91, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ns_nancy', 'ns', 170, 0, 1, 1, 30, 'small', 0.84, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ns_nothing', 'ns', 212, 176, 1, 1, 30, 'small', 0.88, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ns_origin', 'ns', 20, -344, 0, 1, 30, 'small', 0.97, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ns_shiva', 'ns', 40, 480, 0, 1, 30, 'small', 0.88, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ns_tanith', 'ns', 44, -4, 0, 1, 30, 'small', 1.03, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ns_veil', 'ns', 160, 144, 0, 1, 30, 'small', 0.91, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('tls_abydos', 'sgtls', 13395, 7390, 1, 1, 30, 'small', 16, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('tls_erebus', 'sgtls', 17564, 11518, 1, 1, 30, 'small', 24, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('tls_lockdown', 'sgtls', 989, 1517, 1, 1, 30, 'small', 4, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('2fort', 'tfc', 90.63, 0, 0, 1, 30, 'small', 1.03, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('avanti', 'tfc', 304, 192, 0, 1, 30, 'small', 1.17, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('badlands', 'tfc', 8, 0, 1, 1, 30, 'small', 0.95, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('casbah', 'tfc', 552, -124, 0, 1, 30, 'small', 1.1, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('crossover2', 'tfc', 0, 0, 0, 1, 30, 'small', 1.11, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cz2', 'tfc', 144, 256, 0, 1, 30, 'small', 1.15, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('dustbowl', 'tfc', 448, 288, 1, 1, 30, 'small', 0.98, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('epicenter', 'tfc', 416, 0, 0, 1, 30, 'small', 1.32, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('flagrun', 'tfc', 0, 704, 0, 1, 30, 'small', 1.07, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('hunted', 'tfc', 432, 76, 1, 1, 30, 'small', 1.42, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('push', 'tfc', 0, 0, 0, 1, 30, 'small', 1.11, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('ravelin', 'tfc', 0, 0, 0, 1, 30, 'small', 1.04, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('rock2', 'tfc', 0, 0, 0, 1, 30, 'small', 0.98, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('warpath', 'tfc', 112, 0, 0, 1, 30, 'small', 1.02, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('well', 'tfc', 0, 0, 0, 1, 30, 'small', 0.94, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_airport01_greenhouse', 'l4d', 175, 5272, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_airport02_offices', 'l4d', -1723, 8693, 0, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_airport03_garage', 'l4d', 11413, 6781, 0, 1, 30, 'small', 12, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_airport04_terminal', 'l4d', 2659, 6795, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_airport05_runway', 'l4d', 8197, 12894, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_farm01_hilltop', 'l4d', 16423, -3193, 0, 1, 30, 'small', 13, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_farm02_traintunnel', 'l4d', 12106, -2749, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_farm03_bridge', 'l4d', 2307, -5227, 0, 1, 30, 'small', 12, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_farm04_barn', 'l4d', 1584, 2778, 0, 1, 30, 'small', 17, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_farm05_cornfield', 'l4d', -1851, 7619, 0, 1, 30, 'small', 13, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_hospital01_apartment', 'l4d', 662, 5571, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_hospital02_subway', 'l4d', -1621, 8552, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_hospital03_sewers', 'l4d', -7045, 14101, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_hospital04_interior', 'l4d', -9513, 16235, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_hospital05_rooftop', 'l4d', -4450, 10005, 0, 1, 30, 'small', 3, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_smalltown01_caves', 'l4d', 20542, -3156, 0, 1, 30, 'small', 13, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_smalltown03_ranchhouse', 'l4d', 16026, 2930, 0, 1, 30, 'small', 14, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_smalltown05_houseboat', 'l4d', 6554, 5155, 0, 1, 30, 'small', 12, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_sv_lighthouse', 'l4d', 4681, 2143, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_airport01_greenhouse', 'l4d', 175, 5272, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_airport02_offices', 'l4d', -1723, 8693, 0, 1, 30, 'small', 9, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_airport03_garage', 'l4d', 11413, 6781, 0, 1, 30, 'small', 12, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_airport04_terminal', 'l4d', 2659, 6795, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_airport05_runway', 'l4d', 8197, 12894, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_farm01_hilltop', 'l4d', 16423, -3193, 0, 1, 30, 'small', 13, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_farm02_traintunnel', 'l4d', 12106, -2749, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_farm03_bridge', 'l4d', 2307, -5227, 0, 1, 30, 'small', 12, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_farm04_barn', 'l4d', 1584, 2778, 0, 1, 30, 'small', 17, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_farm05_cornfield', 'l4d', -1851, 7619, 0, 1, 30, 'small', 13, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_hospital01_apartment', 'l4d', 662, 5571, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_hospital02_subway', 'l4d', -1621, 8552, 0, 1, 30, 'small', 8, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_hospital03_sewers', 'l4d', -7045, 14101, 0, 1, 30, 'small', 10, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_hospital04_interior', 'l4d', -9513, 16235, 0, 1, 30, 'small', 5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_hospital05_rooftop', 'l4d', -4450, 10005, 0, 1, 30, 'small', 3, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_smalltown01_caves', 'l4d', 20542, -3156, 0, 1, 30, 'small', 13, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_smalltown03_ranchhouse', 'l4d', 16026, 2930, 0, 1, 30, 'small', 14, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('l4d_vs_smalltown05_houseboat', 'l4d', 6554, 5155, 0, 1, 30, 'small', 12, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_freight','tf', 4470, 3520, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_freight_final','tf', 4477, 3517, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('fy_iceworld','tf', 1600, 1279, 0, 1, 30, 'small', 2.5, 10, 0.170312, 0.170312, 0, 0, 0, 0),
('cp_orange_x3','tf', 5321, 7321, 0, 1, 30, 'small', 7, 10, 0.170312, 0.170312, 0, 0, 0, 0);
ALTER TABLE `hlstats_Players`
DROP INDEX `clan`,
ADD INDEX `skill` (`skill`),
ADD INDEX `game` (`game`),
ADD INDEX `kills` (`kills`);
ALTER TABLE `hlstats_Events_Frags`
ADD INDEX `weapon16` (`weapon`(16)),
ADD INDEX `killerRole` (`killerRole`(8));
ALTER TABLE `hlstats_Events_PlayerPlayerActions`
ADD INDEX `actionId` (`actionId`);
ALTER TABLE `hlstats_Players_History`
ADD INDEX `playerId` (`playerId`);
ALTER TABLE `hlstats_Ranks`
ADD INDEX `game` (`game`(8));
ALTER TABLE `hlstats_Servers_VoiceComm`
DROP INDEX `address`,
ADD UNIQUE `address` ( `addr` , `queryPort` );
ALTER TABLE `hlstats_PlayerNames`
ADD INDEX `name16` (`name`(16));
ALTER TABLE `hlstats_Heatmap_Config` ADD `rotate` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `flipy` ;
INSERT IGNORE INTO `hlstats_Actions` (`game`, `code`, `reward_player`, `reward_team`, `team`, `description`, `for_PlayerActions`, `for_PlayerPlayerActions`, `for_TeamActions`, `for_WorldActions`)
(SELECT code, 'death_sawblade', 0, 0, '', 'LOL SAW''D', '1', '0', '0', '0' FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Ribbons` (`awardCode`, `awardCount`, `special`, `game`, `image`, `ribbonName`)
(SELECT 'deflect_arrow',1,0,code,'1_deflect_arrow.png','Bronze Deflected Arrow' FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Ribbons` (`awardCode`, `awardCount`, `special`, `game`, `image`, `ribbonName`)
(SELECT 'deflect_arrow',5,0,code,'2_deflect_arrow.png','Silver Deflected Arrow' FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Ribbons` (`awardCode`, `awardCount`, `special`, `game`, `image`, `ribbonName`)
(SELECT 'deflect_arrow',10,0,code,'3_deflect_arrow.png','Gold Deflected Arrow' FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT INTO `hlstats_Weapons` (`game`, `code`, `name`, `modifier`)
(SELECT code, 'backstab', 'Backstab', 1 FROM hlstats_Games WHERE realgame = 'ff');
INSERT INTO `hlstats_Weapons` (`game`, `code`, `name`, `modifier`)
(SELECT code, 'telefrag', 'Telefrag', 2 FROM hlstats_Games WHERE realgame = 'tf');
INSERT IGNORE INTO `hlstats_Awards` (`awardType`, `game`, `code`, `name`, `verb`)
(SELECT 'W',code,'telefrag', 'Lucky Duck', 'kills by telefrag' FROM hlstats_Games WHERE `realgame` = 'tf');
INSERT IGNORE INTO `hlstats_Options_Choices` (`keyname`, `value`, `text`, `isDefault`) VALUES
('google_map_region', 'ROMANIA', 'Romania', 0);
UPDATE `hlstats_Options` SET `value` = '1.6.1' WHERE `keyname` = 'version';

View File

@ -0,0 +1,13 @@
HLstatsX: Community Edition
Version 1.6.2
IF YOU ARE CURRENTLY RUNNING 1.6.1 AND ARE UPGRADING TO 1.6.2:
Upload the web portion of the package to your web site and visit http://path_to_your/stats/updater/.
You will receive instructions to upgrade your database to the latest revision.
IF YOU ARE NOT RUNNING 1.6.1 AND WANT TO UPGRADE TO 1.6.2:
Run every upgrade SQL found in the "sql" folder through 1.6.1. Afterwards upload the "web" folder contents to your web server and go to http://path_to_your/stats/updater/.
No upgrade.sql will be provided for future releases.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

7599
sql/install.sql Normal file

File diff suppressed because it is too large Load Diff