<?PHP
/**
*
* $Id: defines.inc.php 11 2005-06-18 10:43:23Z khaless $
* $Revision: 11 $
* $Author: khaless $
* $Date: 2005-06-18 20:43:23 +1000 (Sat, 18 Jun 2005) $
*
* Copyright (c) 2005 Mathew Rodley <hide@address.com>
*
* Full GPL License: <http://www.gnu.org/licenses/gpl.txt>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
DEFINE('LOG_PREFIX', 'L ([0-9]{2})\/([0-9]{2})\/([0-9]{4}) - ([0-9]{2}):([0-9]{2}):([0-9]{2}): ');
DEFINE('CVARS_START', 'Servercvarsstart');
DEFINE('CVARS', 'Servercvar"([a-zA-Z0-9_]{1,20})"="([a-zA-Z0-9_\.]{1,20})"');
DEFINE('CVARS_END', 'Servercvarsend');
DEFINE('LOGFILE_STARTED', 'Logfilestarted\(file"([a-zA-Z0-9_\.\]*)"\)\(game"([a-zA-Z0-9_]{1,20})"\)\(version"([0-9]+)/([0-9\.]+)/([0-9]+)"\)');
DEFINE('LOGFILE_END', 'Logfileclosed');
DEFINE('LOAD_MAP', 'Loadingmap"([a-zA-Z0-9_]{1,20})"');
DEFINE('STARTED_MAP', 'Startedmap"([a-zA-Z0-9_]{1,20})"\(CRC"([0-9\-]{9})"\)');
DEFINE('GOOD_RCON', 'Rcon: "rcon challenge "(.*)" (.*)" from "([0-9\.]{7,15}):([0-9]{1,6})"');
DEFINE('BAD_RCON', 'Bad Rcon: "rcon challenge "(.*)" (.*)" from "([0-9\.]{7,15}):([0-9]{1,6})"');
DEFINE('SERVER_NAME', 'Server name is "(.*)"');
DEFINE('SERVER_SAY', 'Server say "(.*)"');
DEFINE('CONNECTION', '"(.*)<([0-9]+)><(.*)><>" connected, address "([0-9\.]{7,15}):([0-9]{1,6})"');
DEFINE('ENTER_GAME', '"(.*)<([0-9]+)><(.*)><(.*)>" entered the game');
DEFINE('DISCONNECTION', '"(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>" disconnected');
DEFINE('SUICIDES', '"(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>" committed suicide with "(.*)"');
DEFINE('TEAM_SELECTION', '"(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>" joined team "([A-Za-z]{0,20})"');
DEFINE('ROLE_SELECTION', '"(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>" changed role to "([a-zA-Z0-9]*)"');
DEFINE('CHANGE_NAME', '"(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>" changed name to "(.*)"');
DEFINE('KILLS', '"(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>" killed "(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>" with "(.*)"');
DEFINE('INJURING', '"(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>" attacked "(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>" with "(.*)" \(damage "([0-9]+)"\)');
DEFINE('PLAYER_PLAYER_ACTION', '"(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>" triggered "(.*)" against "(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>"');
DEFINE('PLAYER_ACTION', '"(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>" triggered "(.*)"');
DEFINE('TEAM_ACTION', 'Team "([A-Za-z0-9]{0,20})" triggered "(.*)"');
DEFINE('TEAM_WIN', 'Team "([A-Za-z0-9]{0,20})" triggered "(.*)" \(CT "([0-9]+)"\) \(T "([0-9]+)"\)');
DEFINE('WORLD_ACTION', 'World triggered "(.*)"');
DEFINE('WORLD_WIN', 'World triggered "(.*)" \(CT "([0-9]+)"\) \(T "([0-9]+)"\)');
DEFINE('SAY', '"(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>" say "(.*)"');
DEFINE('TEAM_SAY', '"(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>" say_team "(.*)"');
DEFINE('TEAM_ALLIANCE', 'Team "([A-Za-z]{0,20})" formed alliance with team "([A-Za-z]{0,20})"');
DEFINE('PRIVATE_CHAT', '"(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>" tell "(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>" message "(.*)"');
DEFINE('WEAPON_SELECTION', '"(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>" selected weapon "(.*)"');
DEFINE('WEAPON_PICKUP', '"(.*)<([0-9]+)><(.*)><([A-Za-z0-9]{0,20})>" acquired weapon "(.*)"');
DEFINE('NS_ROUND_END', '\(map_name "([a-z0-9_]+)"\) \(game_version "([a-z0-9_.\s]+)"\) \(game_time "([0-9:]+)"\) \(victory_team "([a-zA-Z0-9]+)"\) \(losing_team "([a-zA-Z0-9]+)"\) \(winning_teamsize "([0-9_]+)"\) \(losing_teamsize "([0-9_]+)"\)');
DEFINE('NS_RESET_STARTED', 'Game reset started.');
DEFINE('NS_RESET_COMPLETED', 'Game reset complete.');
DEFINE('NS_VALID_CHECK_SUCCESS','Map validity check success.');
// actions with properties...
DEFINE('ROUND_END', '');
DEFINE('ROUND_END_SCORES', '');
?>