diff --git a/core/sm_version.h b/core/sm_version.h index 7597eadd..e7814a4f 100644 --- a/core/sm_version.h +++ b/core/sm_version.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/core/sm_version.tpl b/core/sm_version.tpl index 611663dc..c9d0c6a3 100644 --- a/core/sm_version.tpl +++ b/core/sm_version.tpl @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/core/version.rc b/core/version.rc index 2a9e0860..0e0cf070 100644 --- a/core/version.rc +++ b/core/version.rc @@ -49,7 +49,7 @@ BEGIN VALUE "FileDescription", "SourceMod Core" VALUE "FileVersion", SVN_FULL_VERSION VALUE "InternalName", "sourcemod" - VALUE "LegalCopyright", "Copyright (c) 2004-2007, AlliedModders LLC" + VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC" VALUE "OriginalFilename", "sourcemod_mm.dll" VALUE "ProductName", "SourceMod" VALUE "ProductVersion", SVN_FULL_VERSION diff --git a/extensions/bintools/sdk/smsdk_config.h b/extensions/bintools/sdk/smsdk_config.h index dcb85e6b..f706d6dd 100644 --- a/extensions/bintools/sdk/smsdk_config.h +++ b/extensions/bintools/sdk/smsdk_config.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod BinTools Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/bintools/sdk/smsdk_ext.cpp b/extensions/bintools/sdk/smsdk_ext.cpp index a4b80a10..db14af69 100644 --- a/extensions/bintools/sdk/smsdk_ext.cpp +++ b/extensions/bintools/sdk/smsdk_ext.cpp @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/bintools/sdk/smsdk_ext.h b/extensions/bintools/sdk/smsdk_ext.h index 4324a11b..d77d84db 100644 --- a/extensions/bintools/sdk/smsdk_ext.h +++ b/extensions/bintools/sdk/smsdk_ext.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/bintools/svn_version.h b/extensions/bintools/svn_version.h index a224068c..8776675c 100644 --- a/extensions/bintools/svn_version.h +++ b/extensions/bintools/svn_version.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod BinTools Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/bintools/svn_version.tpl b/extensions/bintools/svn_version.tpl index 388fafd4..158d9bf4 100644 --- a/extensions/bintools/svn_version.tpl +++ b/extensions/bintools/svn_version.tpl @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod BinTools Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/bintools/version.rc b/extensions/bintools/version.rc index 8a357fe5..3d0e4184 100644 --- a/extensions/bintools/version.rc +++ b/extensions/bintools/version.rc @@ -49,7 +49,7 @@ BEGIN VALUE "FileDescription", "SourceMod BinTools Extension" VALUE "FileVersion", SVN_FULL_VERSION VALUE "InternalName", "SourceMod BinTools Extension" - VALUE "LegalCopyright", "Copyright (c) 2004-2007, AlliedModders LLC" + VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC" VALUE "OriginalFilename", "bintools.ext.dll" VALUE "ProductName", "SourceMod BinTools Extension" VALUE "ProductVersion", SVN_FULL_VERSION diff --git a/extensions/cstrike/sdk/smsdk_config.h b/extensions/cstrike/sdk/smsdk_config.h index a070e6b3..c3b6081a 100644 --- a/extensions/cstrike/sdk/smsdk_config.h +++ b/extensions/cstrike/sdk/smsdk_config.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Counter-Strike:Source Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/cstrike/sdk/smsdk_ext.cpp b/extensions/cstrike/sdk/smsdk_ext.cpp index f5e6f3fc..37733333 100644 --- a/extensions/cstrike/sdk/smsdk_ext.cpp +++ b/extensions/cstrike/sdk/smsdk_ext.cpp @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/cstrike/sdk/smsdk_ext.h b/extensions/cstrike/sdk/smsdk_ext.h index c137616b..3d5a229d 100644 --- a/extensions/cstrike/sdk/smsdk_ext.h +++ b/extensions/cstrike/sdk/smsdk_ext.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/cstrike/svn_version.h b/extensions/cstrike/svn_version.h index fe5e1238..f6a1083d 100644 --- a/extensions/cstrike/svn_version.h +++ b/extensions/cstrike/svn_version.h @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod SDKTools Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod Counter-Strike:Source Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/cstrike/svn_version.tpl b/extensions/cstrike/svn_version.tpl index ad458193..58f12022 100644 --- a/extensions/cstrike/svn_version.tpl +++ b/extensions/cstrike/svn_version.tpl @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod SDKTools Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod Counter-Strike:Source Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/cstrike/version.rc b/extensions/cstrike/version.rc index 37d14dad..2abaa001 100644 --- a/extensions/cstrike/version.rc +++ b/extensions/cstrike/version.rc @@ -49,7 +49,7 @@ BEGIN VALUE "FileDescription", "SourceMod CS:S Extension" VALUE "FileVersion", SVN_FULL_VERSION VALUE "InternalName", "SourceMod CS:S Extension" - VALUE "LegalCopyright", "Copyright (c) 2004-2007, AlliedModders LLC" + VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC" VALUE "OriginalFilename", "game.cstrike.ext.dll" VALUE "ProductName", "SourceMod CS:S Extension" VALUE "ProductVersion", SVN_FULL_VERSION diff --git a/extensions/geoip/sdk/smsdk_config.h b/extensions/geoip/sdk/smsdk_config.h index 7faf7f58..dbe2ad2c 100644 --- a/extensions/geoip/sdk/smsdk_config.h +++ b/extensions/geoip/sdk/smsdk_config.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod GeoIP Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/geoip/sdk/smsdk_ext.cpp b/extensions/geoip/sdk/smsdk_ext.cpp index a4b80a10..db14af69 100644 --- a/extensions/geoip/sdk/smsdk_ext.cpp +++ b/extensions/geoip/sdk/smsdk_ext.cpp @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/geoip/sdk/smsdk_ext.h b/extensions/geoip/sdk/smsdk_ext.h index 4324a11b..d77d84db 100644 --- a/extensions/geoip/sdk/smsdk_ext.h +++ b/extensions/geoip/sdk/smsdk_ext.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/geoip/svn_version.h b/extensions/geoip/svn_version.h index 9b5bc675..c2a5715e 100644 --- a/extensions/geoip/svn_version.h +++ b/extensions/geoip/svn_version.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod GeoIP Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/geoip/svn_version.tpl b/extensions/geoip/svn_version.tpl index df71de4f..5edca91f 100644 --- a/extensions/geoip/svn_version.tpl +++ b/extensions/geoip/svn_version.tpl @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod GeoIP Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/geoip/version.rc b/extensions/geoip/version.rc index d89d3701..f047d0e0 100644 --- a/extensions/geoip/version.rc +++ b/extensions/geoip/version.rc @@ -49,7 +49,7 @@ BEGIN VALUE "FileDescription", "SourceMod GeoIP Extension" VALUE "FileVersion", SVN_FULL_VERSION VALUE "InternalName", "SourceMod GeoIP Extension" - VALUE "LegalCopyright", "Copyright (c) 2004-2007, AlliedModders LLC" + VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC" VALUE "OriginalFilename", "geoip.ext.dll" VALUE "ProductName", "SourceMod GeoIP Extension" VALUE "ProductVersion", SVN_FULL_VERSION diff --git a/extensions/mysql/sdk/smsdk_config.h b/extensions/mysql/sdk/smsdk_config.h index e6603b41..d5bb8c44 100644 --- a/extensions/mysql/sdk/smsdk_config.h +++ b/extensions/mysql/sdk/smsdk_config.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod MySQL Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/mysql/sdk/smsdk_ext.cpp b/extensions/mysql/sdk/smsdk_ext.cpp index a4b80a10..db14af69 100644 --- a/extensions/mysql/sdk/smsdk_ext.cpp +++ b/extensions/mysql/sdk/smsdk_ext.cpp @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/mysql/sdk/smsdk_ext.h b/extensions/mysql/sdk/smsdk_ext.h index 4324a11b..d77d84db 100644 --- a/extensions/mysql/sdk/smsdk_ext.h +++ b/extensions/mysql/sdk/smsdk_ext.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/mysql/svn_version.h b/extensions/mysql/svn_version.h index 36752954..234ba795 100644 --- a/extensions/mysql/svn_version.h +++ b/extensions/mysql/svn_version.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod MySQL Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/mysql/svn_version.tpl b/extensions/mysql/svn_version.tpl index ae804164..0f989691 100644 --- a/extensions/mysql/svn_version.tpl +++ b/extensions/mysql/svn_version.tpl @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod MySQL Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/mysql/version.rc b/extensions/mysql/version.rc index 370f1757..500c847f 100644 --- a/extensions/mysql/version.rc +++ b/extensions/mysql/version.rc @@ -49,7 +49,7 @@ BEGIN VALUE "FileDescription", "SourceMod MySQL Extension" VALUE "FileVersion", SVN_FULL_VERSION VALUE "InternalName", "SourceMod MySQL Extension" - VALUE "LegalCopyright", "Copyright (c) 2004-2007, AlliedModders LLC" + VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC" VALUE "OriginalFilename", "dbi.mysql.ext.dll" VALUE "ProductName", "SourceMod MySQL Extension" VALUE "ProductVersion", SVN_FULL_VERSION diff --git a/extensions/regex/CRegEx.cpp b/extensions/regex/CRegEx.cpp index a775b0ef..2af6012d 100644 --- a/extensions/regex/CRegEx.cpp +++ b/extensions/regex/CRegEx.cpp @@ -1,155 +1,155 @@ -/** - * vim: set ts=4 : - * ============================================================================= - * SourceMod Regular Expressions Extension - * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. - * ============================================================================= - * - * This program is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, version 3.0, as published by the - * Free Software Foundation. - * - * 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, see . - * - * As a special exception, AlliedModders LLC gives you permission to link the - * code of this program (as well as its derivative works) to "Half-Life 2," the - * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software - * by the Valve Corporation. You must obey the GNU General Public License in - * all respects for all other code used. Additionally, AlliedModders LLC grants - * this exception to all derivative works. AlliedModders LLC defines further - * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), - * or . - * - * Version: $Id$ - */ - -#include "pcre.h" -#include "CRegEx.h" -#include -#include "extension.h" - -RegEx::RegEx() -{ - mErrorOffset = 0; - mError = NULL; - re = NULL; - mFree = true; - subject = NULL; - mSubStrings = 0; -} - -void RegEx::Clear () -{ - mErrorOffset = 0; - mError = NULL; - if (re) - pcre_free(re); - re = NULL; - mFree = true; - if (subject) - delete [] subject; - subject = NULL; - mSubStrings = 0; -} - -RegEx::~RegEx() -{ - Clear(); -} - -bool RegEx::isFree(bool set, bool val) -{ - if (set) - { - mFree = val; - return true; - } else { - return mFree; - } -} - -int RegEx::Compile(const char *pattern, int iFlags) -{ - if (!mFree) - Clear(); - - re = pcre_compile(pattern, iFlags, &mError, &mErrorOffset, NULL); - - if (re == NULL) - { - return 0; - } - - mFree = false; - - return 1; -} - -int RegEx::Match(const char *str) -{ - int rc = 0; - - if (mFree || re == NULL) - return -1; - - this->ClearMatch(); - - //save str - subject = new char[strlen(str)+1]; - strcpy(subject, str); - - rc = pcre_exec(re, NULL, subject, (int)strlen(subject), 0, 0, ovector, 30); - - if (rc < 0) - { - if (rc == PCRE_ERROR_NOMATCH) - { - return 0; - } else { - mErrorOffset = rc; - return -1; - } - } - - mSubStrings = rc; - - return 1; -} -void RegEx::ClearMatch() -{ - // Clears match results - mErrorOffset = 0; - mError = NULL; - if (subject) - delete [] subject; - subject = NULL; - mSubStrings = 0; -} - -const char *RegEx::GetSubstring(int s, char buffer[], int max) -{ - int i = 0; - if (s >= mSubStrings || s < 0) - return NULL; - - char *substr_a = subject + ovector[2*s]; - int substr_l = ovector[2*s+1] - ovector[2*s]; - - for (i = 0; i= max) - break; - buffer[i] = substr_a[i]; - } - - buffer[i] = '\0'; - - return buffer; -} - +/** + * vim: set ts=4 : + * ============================================================================= + * SourceMod Regular Expressions Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. + * ============================================================================= + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License, version 3.0, as published by the + * Free Software Foundation. + * + * 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, see . + * + * As a special exception, AlliedModders LLC gives you permission to link the + * code of this program (as well as its derivative works) to "Half-Life 2," the + * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software + * by the Valve Corporation. You must obey the GNU General Public License in + * all respects for all other code used. Additionally, AlliedModders LLC grants + * this exception to all derivative works. AlliedModders LLC defines further + * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), + * or . + * + * Version: $Id$ + */ + +#include "pcre.h" +#include "CRegEx.h" +#include +#include "extension.h" + +RegEx::RegEx() +{ + mErrorOffset = 0; + mError = NULL; + re = NULL; + mFree = true; + subject = NULL; + mSubStrings = 0; +} + +void RegEx::Clear () +{ + mErrorOffset = 0; + mError = NULL; + if (re) + pcre_free(re); + re = NULL; + mFree = true; + if (subject) + delete [] subject; + subject = NULL; + mSubStrings = 0; +} + +RegEx::~RegEx() +{ + Clear(); +} + +bool RegEx::isFree(bool set, bool val) +{ + if (set) + { + mFree = val; + return true; + } else { + return mFree; + } +} + +int RegEx::Compile(const char *pattern, int iFlags) +{ + if (!mFree) + Clear(); + + re = pcre_compile(pattern, iFlags, &mError, &mErrorOffset, NULL); + + if (re == NULL) + { + return 0; + } + + mFree = false; + + return 1; +} + +int RegEx::Match(const char *str) +{ + int rc = 0; + + if (mFree || re == NULL) + return -1; + + this->ClearMatch(); + + //save str + subject = new char[strlen(str)+1]; + strcpy(subject, str); + + rc = pcre_exec(re, NULL, subject, (int)strlen(subject), 0, 0, ovector, 30); + + if (rc < 0) + { + if (rc == PCRE_ERROR_NOMATCH) + { + return 0; + } else { + mErrorOffset = rc; + return -1; + } + } + + mSubStrings = rc; + + return 1; +} +void RegEx::ClearMatch() +{ + // Clears match results + mErrorOffset = 0; + mError = NULL; + if (subject) + delete [] subject; + subject = NULL; + mSubStrings = 0; +} + +const char *RegEx::GetSubstring(int s, char buffer[], int max) +{ + int i = 0; + if (s >= mSubStrings || s < 0) + return NULL; + + char *substr_a = subject + ovector[2*s]; + int substr_l = ovector[2*s+1] - ovector[2*s]; + + for (i = 0; i= max) + break; + buffer[i] = substr_a[i]; + } + + buffer[i] = '\0'; + + return buffer; +} + diff --git a/extensions/regex/CRegEx.h b/extensions/regex/CRegEx.h index 56e1dfd4..4cf0c4fd 100644 --- a/extensions/regex/CRegEx.h +++ b/extensions/regex/CRegEx.h @@ -1,59 +1,59 @@ -/** - * vim: set ts=4 : - * ============================================================================= - * SourceMod Regular Expressions Extension - * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. - * ============================================================================= - * - * This program is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, version 3.0, as published by the - * Free Software Foundation. - * - * 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, see . - * - * As a special exception, AlliedModders LLC gives you permission to link the - * code of this program (as well as its derivative works) to "Half-Life 2," the - * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software - * by the Valve Corporation. You must obey the GNU General Public License in - * all respects for all other code used. Additionally, AlliedModders LLC grants - * this exception to all derivative works. AlliedModders LLC defines further - * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), - * or . - * - * Version: $Id$ - */ - -#ifndef _INCLUDE_CREGEX_H -#define _INCLUDE_CREGEX_H - -class RegEx -{ -public: - RegEx(); - ~RegEx(); - bool isFree(bool set=false, bool val=false); - void Clear(); - - int Compile(const char *pattern, int iFlags); - int Match(const char *str); - void ClearMatch(); - const char *GetSubstring(int s, char buffer[], int max); -public: - int mErrorOffset; - const char *mError; - int mSubStrings; -private: - pcre *re; - bool mFree; - int ovector[30]; - char *subject; -}; - -#endif //_INCLUDE_CREGEX_H - +/** + * vim: set ts=4 : + * ============================================================================= + * SourceMod Regular Expressions Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. + * ============================================================================= + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License, version 3.0, as published by the + * Free Software Foundation. + * + * 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, see . + * + * As a special exception, AlliedModders LLC gives you permission to link the + * code of this program (as well as its derivative works) to "Half-Life 2," the + * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software + * by the Valve Corporation. You must obey the GNU General Public License in + * all respects for all other code used. Additionally, AlliedModders LLC grants + * this exception to all derivative works. AlliedModders LLC defines further + * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), + * or . + * + * Version: $Id$ + */ + +#ifndef _INCLUDE_CREGEX_H +#define _INCLUDE_CREGEX_H + +class RegEx +{ +public: + RegEx(); + ~RegEx(); + bool isFree(bool set=false, bool val=false); + void Clear(); + + int Compile(const char *pattern, int iFlags); + int Match(const char *str); + void ClearMatch(); + const char *GetSubstring(int s, char buffer[], int max); +public: + int mErrorOffset; + const char *mError; + int mSubStrings; +private: + pcre *re; + bool mFree; + int ovector[30]; + char *subject; +}; + +#endif //_INCLUDE_CREGEX_H + diff --git a/extensions/regex/extension.cpp b/extensions/regex/extension.cpp index e3519172..ee7d173a 100644 --- a/extensions/regex/extension.cpp +++ b/extensions/regex/extension.cpp @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod Sample Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod Regular Expressions Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under @@ -38,7 +38,7 @@ using namespace SourceHook; /** * @file extension.cpp - * @brief Implement extension code here. + * @brief Implement Regex extension code here. */ RegexExtension g_RegexExtension; /**< Global singleton for extension's main interface */ diff --git a/extensions/regex/extension.h b/extensions/regex/extension.h index 0c4beff2..681dade1 100644 --- a/extensions/regex/extension.h +++ b/extensions/regex/extension.h @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod Sample Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod Regular Expressions Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under @@ -34,7 +34,7 @@ /** * @file extension.h - * @brief Sample extension code header. + * @brief Regex extension code header. */ #include "smsdk_ext.h" diff --git a/extensions/regex/sdk/smsdk_config.h b/extensions/regex/sdk/smsdk_config.h index 21a8e4d3..294cd992 100644 --- a/extensions/regex/sdk/smsdk_config.h +++ b/extensions/regex/sdk/smsdk_config.h @@ -1,7 +1,7 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod Sample Extension + * SourceMod Regular Expressions Extension * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * diff --git a/extensions/regex/sdk/smsdk_ext.cpp b/extensions/regex/sdk/smsdk_ext.cpp index 0c728f00..bf027ac5 100644 --- a/extensions/regex/sdk/smsdk_ext.cpp +++ b/extensions/regex/sdk/smsdk_ext.cpp @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/regex/sdk/smsdk_ext.h b/extensions/regex/sdk/smsdk_ext.h index 4702f2a2..0ee0dfa2 100644 --- a/extensions/regex/sdk/smsdk_ext.h +++ b/extensions/regex/sdk/smsdk_ext.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/regex/svn_version.tpl b/extensions/regex/svn_version.tpl index 1d3f09b3..158a66a3 100644 --- a/extensions/regex/svn_version.tpl +++ b/extensions/regex/svn_version.tpl @@ -1,7 +1,7 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod SQLite Extension + * SourceMod Regular Expressions Extension * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * diff --git a/extensions/sdktools/sdk/smsdk_config.h b/extensions/sdktools/sdk/smsdk_config.h index d9a07d6b..3f41c1fe 100644 --- a/extensions/sdktools/sdk/smsdk_config.h +++ b/extensions/sdktools/sdk/smsdk_config.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod SDKTools Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/sdktools/sdk/smsdk_ext.cpp b/extensions/sdktools/sdk/smsdk_ext.cpp index 40bdc775..a823d1b2 100644 --- a/extensions/sdktools/sdk/smsdk_ext.cpp +++ b/extensions/sdktools/sdk/smsdk_ext.cpp @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/sdktools/sdk/smsdk_ext.h b/extensions/sdktools/sdk/smsdk_ext.h index fdda6ad3..aec87f98 100644 --- a/extensions/sdktools/sdk/smsdk_ext.h +++ b/extensions/sdktools/sdk/smsdk_ext.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/sdktools/svn_version.h b/extensions/sdktools/svn_version.h index fe5e1238..92488d3b 100644 --- a/extensions/sdktools/svn_version.h +++ b/extensions/sdktools/svn_version.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod SDKTools Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/sdktools/svn_version.tpl b/extensions/sdktools/svn_version.tpl index ad458193..08a4c47d 100644 --- a/extensions/sdktools/svn_version.tpl +++ b/extensions/sdktools/svn_version.tpl @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod SDKTools Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/sdktools/version.rc b/extensions/sdktools/version.rc index 0ec90dc4..546028f6 100644 --- a/extensions/sdktools/version.rc +++ b/extensions/sdktools/version.rc @@ -49,7 +49,7 @@ BEGIN VALUE "FileDescription", "SourceMod SDKTools Extension" VALUE "FileVersion", SVN_FULL_VERSION VALUE "InternalName", "SourceMod SDKTools Extension" - VALUE "LegalCopyright", "Copyright (c) 2004-2007, AlliedModders LLC" + VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC" VALUE "OriginalFilename", "sdktools.ext.dll" VALUE "ProductName", "SourceMod SDKTools Extension" VALUE "ProductVersion", SVN_FULL_VERSION diff --git a/extensions/sqlite/Makefile b/extensions/sqlite/Makefile index 03a286e3..cf8ee596 100644 --- a/extensions/sqlite/Makefile +++ b/extensions/sqlite/Makefile @@ -17,7 +17,7 @@ PROJECT = dbi.sqlite #Uncomment for Metamod: Source enabled extension #USEMETA = true -OBJECTS = sdk/smsdk_ext.cpp extension.cpp sm_memtable.cpp \ +OBJECTS = sdk/smsdk_ext.cpp sdk/sm_memtable.cpp extension.cpp \ driver/SqDatabase.cpp driver/SqDriver.cpp driver/SqQuery.cpp \ driver/SqResults.cpp diff --git a/extensions/sqlite/msvc8/sm_sqlite.vcproj b/extensions/sqlite/msvc8/sm_sqlite.vcproj index 1f23bacc..cfe66a8b 100644 --- a/extensions/sqlite/msvc8/sm_sqlite.vcproj +++ b/extensions/sqlite/msvc8/sm_sqlite.vcproj @@ -189,10 +189,6 @@ RelativePath="..\extension.cpp" > - - - - + + + + diff --git a/extensions/sqlite/sm_memtable.cpp b/extensions/sqlite/sdk/sm_memtable.cpp similarity index 93% rename from extensions/sqlite/sm_memtable.cpp rename to extensions/sqlite/sdk/sm_memtable.cpp index 95cdebda..8f18b136 100644 --- a/extensions/sqlite/sm_memtable.cpp +++ b/extensions/sqlite/sdk/sm_memtable.cpp @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/sqlite/sm_memtable.h b/extensions/sqlite/sdk/sm_memtable.h similarity index 94% rename from extensions/sqlite/sm_memtable.h rename to extensions/sqlite/sdk/sm_memtable.h index 744eb4b6..53ba5ff8 100644 --- a/extensions/sqlite/sm_memtable.h +++ b/extensions/sqlite/sdk/sm_memtable.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/sqlite/sdk/smsdk_config.h b/extensions/sqlite/sdk/smsdk_config.h index 955f7c57..a8823b81 100644 --- a/extensions/sqlite/sdk/smsdk_config.h +++ b/extensions/sqlite/sdk/smsdk_config.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod SQLite Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/sqlite/sdk/smsdk_ext.cpp b/extensions/sqlite/sdk/smsdk_ext.cpp index 8d55b217..c504da48 100644 --- a/extensions/sqlite/sdk/smsdk_ext.cpp +++ b/extensions/sqlite/sdk/smsdk_ext.cpp @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/sqlite/sdk/smsdk_ext.h b/extensions/sqlite/sdk/smsdk_ext.h index 4324a11b..d77d84db 100644 --- a/extensions/sqlite/sdk/smsdk_ext.h +++ b/extensions/sqlite/sdk/smsdk_ext.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/sqlite/svn_version.h b/extensions/sqlite/svn_version.h index dc69ac27..fdeea801 100644 --- a/extensions/sqlite/svn_version.h +++ b/extensions/sqlite/svn_version.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod SQLite Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/sqlite/svn_version.tpl b/extensions/sqlite/svn_version.tpl index 133fbb9a..2473a102 100644 --- a/extensions/sqlite/svn_version.tpl +++ b/extensions/sqlite/svn_version.tpl @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod SQLite Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/sqlite/version.rc b/extensions/sqlite/version.rc index 718aa476..5fc38de7 100644 --- a/extensions/sqlite/version.rc +++ b/extensions/sqlite/version.rc @@ -49,7 +49,7 @@ BEGIN VALUE "FileDescription", "SourceMod SQLite Extension" VALUE "FileVersion", SVN_FULL_VERSION VALUE "InternalName", "SourceMod SQLite Extension" - VALUE "LegalCopyright", "Copyright (c) 2004-2007, AlliedModders LLC" + VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC" VALUE "OriginalFilename", "dbi.sqlite.ext.dll" VALUE "ProductName", "SourceMod SQLite Extension" VALUE "ProductVersion", SVN_FULL_VERSION diff --git a/extensions/tf2/criticals.cpp b/extensions/tf2/criticals.cpp index 8767caf3..e0ca46ae 100644 --- a/extensions/tf2/criticals.cpp +++ b/extensions/tf2/criticals.cpp @@ -1,7 +1,7 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod TF2 Extension + * SourceMod Team Fortress 2 Extension * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * diff --git a/extensions/tf2/criticals.h b/extensions/tf2/criticals.h index 8c89113d..604647fc 100644 --- a/extensions/tf2/criticals.h +++ b/extensions/tf2/criticals.h @@ -1,7 +1,7 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod TF2 Extension + * SourceMod Team Fortress 2 Extension * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * diff --git a/extensions/tf2/detours.h b/extensions/tf2/detours.h index 325a4ecb..6ed0cc01 100644 --- a/extensions/tf2/detours.h +++ b/extensions/tf2/detours.h @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod SDKTools Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod Team Fortress 2 Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/tf2/sdk/smsdk_ext.cpp b/extensions/tf2/sdk/smsdk_ext.cpp index cc9bee0e..37733333 100644 --- a/extensions/tf2/sdk/smsdk_ext.cpp +++ b/extensions/tf2/sdk/smsdk_ext.cpp @@ -1,7 +1,7 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod Team Fortress 2 Extension + * SourceMod Base Extension Code * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * diff --git a/extensions/tf2/sdk/smsdk_ext.h b/extensions/tf2/sdk/smsdk_ext.h index f2dae105..3d5a229d 100644 --- a/extensions/tf2/sdk/smsdk_ext.h +++ b/extensions/tf2/sdk/smsdk_ext.h @@ -1,7 +1,7 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod Team Fortress 2 Extension + * SourceMod Base Extension Code * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * diff --git a/extensions/tf2/svn_version.h b/extensions/tf2/svn_version.h index 84c26f85..b7da51c6 100644 --- a/extensions/tf2/svn_version.h +++ b/extensions/tf2/svn_version.h @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod SDKTools Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod Team Fortress 2 Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/tf2/svn_version.tpl b/extensions/tf2/svn_version.tpl index ad458193..381e026e 100644 --- a/extensions/tf2/svn_version.tpl +++ b/extensions/tf2/svn_version.tpl @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod SDKTools Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod Team Fortress 2 Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/topmenus/Makefile b/extensions/topmenus/Makefile index 133b68c8..de617dad 100644 --- a/extensions/topmenus/Makefile +++ b/extensions/topmenus/Makefile @@ -17,8 +17,8 @@ PROJECT = topmenus #Uncomment for Metamod: Source enabled extension #USEMETA = true -OBJECTS = sdk/smsdk_ext.cpp extension.cpp TopMenuManager.cpp TopMenu.cpp \ - sdk/sm_memtable.cpp smn_topmenus.cpp +OBJECTS = sdk/smsdk_ext.cpp sdk/sm_memtable.cpp extension.cpp TopMenuManager.cpp \ + TopMenu.cpp smn_topmenus.cpp ############################################## ### CONFIGURE ANY OTHER FLAGS/OPTIONS HERE ### diff --git a/extensions/topmenus/TopMenu.cpp b/extensions/topmenus/TopMenu.cpp index 61b14620..b195fe5c 100644 --- a/extensions/topmenus/TopMenu.cpp +++ b/extensions/topmenus/TopMenu.cpp @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod Sample Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod TopMenus Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/topmenus/TopMenu.h b/extensions/topmenus/TopMenu.h index 2747c778..742c32fb 100644 --- a/extensions/topmenus/TopMenu.h +++ b/extensions/topmenus/TopMenu.h @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod Sample Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod TopMenus Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/topmenus/TopMenuManager.cpp b/extensions/topmenus/TopMenuManager.cpp index 4652f781..fb55f1bf 100644 --- a/extensions/topmenus/TopMenuManager.cpp +++ b/extensions/topmenus/TopMenuManager.cpp @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod Sample Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod TopMenus Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/topmenus/TopMenuManager.h b/extensions/topmenus/TopMenuManager.h index dc1efed6..5e03b71e 100644 --- a/extensions/topmenus/TopMenuManager.h +++ b/extensions/topmenus/TopMenuManager.h @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod Sample Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod TopMenus Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/topmenus/extension.cpp b/extensions/topmenus/extension.cpp index c7761293..eb2e7579 100644 --- a/extensions/topmenus/extension.cpp +++ b/extensions/topmenus/extension.cpp @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod Sample Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod TopMenus Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/topmenus/extension.h b/extensions/topmenus/extension.h index 11730719..f5d94769 100644 --- a/extensions/topmenus/extension.h +++ b/extensions/topmenus/extension.h @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod Sample Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod TopMenus Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/topmenus/sdk/sm_memtable.cpp b/extensions/topmenus/sdk/sm_memtable.cpp index 95cdebda..8f18b136 100644 --- a/extensions/topmenus/sdk/sm_memtable.cpp +++ b/extensions/topmenus/sdk/sm_memtable.cpp @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/topmenus/sdk/sm_memtable.h b/extensions/topmenus/sdk/sm_memtable.h index 7c7f00a2..e4a42fd3 100644 --- a/extensions/topmenus/sdk/sm_memtable.h +++ b/extensions/topmenus/sdk/sm_memtable.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/topmenus/sdk/smsdk_config.h b/extensions/topmenus/sdk/smsdk_config.h index 3da0e133..078aca75 100644 --- a/extensions/topmenus/sdk/smsdk_config.h +++ b/extensions/topmenus/sdk/smsdk_config.h @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod Sample Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod TopMenus Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/topmenus/sdk/smsdk_ext.cpp b/extensions/topmenus/sdk/smsdk_ext.cpp index 618ce3b8..852361b1 100644 --- a/extensions/topmenus/sdk/smsdk_ext.cpp +++ b/extensions/topmenus/sdk/smsdk_ext.cpp @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/topmenus/sdk/smsdk_ext.h b/extensions/topmenus/sdk/smsdk_ext.h index b37ce03f..81e182d2 100644 --- a/extensions/topmenus/sdk/smsdk_ext.h +++ b/extensions/topmenus/sdk/smsdk_ext.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/topmenus/smn_topmenus.cpp b/extensions/topmenus/smn_topmenus.cpp index cb68c592..847f24bb 100644 --- a/extensions/topmenus/smn_topmenus.cpp +++ b/extensions/topmenus/smn_topmenus.cpp @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod Sample Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod TopMenus Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/topmenus/smn_topmenus.h b/extensions/topmenus/smn_topmenus.h index cda80fc6..120bfbed 100644 --- a/extensions/topmenus/smn_topmenus.h +++ b/extensions/topmenus/smn_topmenus.h @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod Sample Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod TopMenus Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/topmenus/svn_version.h b/extensions/topmenus/svn_version.h index dc69ac27..567ef100 100644 --- a/extensions/topmenus/svn_version.h +++ b/extensions/topmenus/svn_version.h @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod SQLite Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod TopMenus Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/topmenus/svn_version.tpl b/extensions/topmenus/svn_version.tpl index 133fbb9a..8d0d91e6 100644 --- a/extensions/topmenus/svn_version.tpl +++ b/extensions/topmenus/svn_version.tpl @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod SQLite Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod TopMenus Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/extensions/topmenus/version.rc b/extensions/topmenus/version.rc index 03c7c970..897ab627 100644 --- a/extensions/topmenus/version.rc +++ b/extensions/topmenus/version.rc @@ -49,7 +49,7 @@ BEGIN VALUE "FileDescription", "SourceMod TopMenus Extension" VALUE "FileVersion", SVN_FULL_VERSION VALUE "InternalName", "SourceMod TopMenus Extension" - VALUE "LegalCopyright", "Copyright (c) 2004-2007, AlliedModders LLC" + VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC" VALUE "OriginalFilename", "topmenus.ext.dll" VALUE "ProductName", "SourceMod TopMenus Extension" VALUE "ProductVersion", SVN_FULL_VERSION diff --git a/loader/loader.cpp b/loader/loader.cpp index 043e7d22..bb5f5ee9 100644 --- a/loader/loader.cpp +++ b/loader/loader.cpp @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/loader/svn_version.h b/loader/svn_version.h index 7597eadd..e7814a4f 100644 --- a/loader/svn_version.h +++ b/loader/svn_version.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/loader/svn_version.tpl b/loader/svn_version.tpl index 611663dc..c9d0c6a3 100644 --- a/loader/svn_version.tpl +++ b/loader/svn_version.tpl @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/loader/version.rc b/loader/version.rc index 946552e0..ebd54169 100644 --- a/loader/version.rc +++ b/loader/version.rc @@ -49,7 +49,7 @@ BEGIN VALUE "FileDescription", "SourceMod Loader" VALUE "FileVersion", SVN_FULL_VERSION VALUE "InternalName", "sourcemod" - VALUE "LegalCopyright", "Copyright (c) 2004-2007, AlliedModders LLC" + VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC" VALUE "OriginalFilename", "sourcemod_mm.dll" VALUE "ProductName", "SourceMod Loader" VALUE "ProductVersion", SVN_FULL_VERSION diff --git a/plugins/basebans/ban.sp b/plugins/basebans/ban.sp index 40c698da..28abb15a 100644 --- a/plugins/basebans/ban.sp +++ b/plugins/basebans/ban.sp @@ -4,7 +4,7 @@ * SourceMod Basecommands * Functionality related to banning. * - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under @@ -28,7 +28,7 @@ * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), * or . * - * Version: $Id: admin-flatfile.sp 1438 2007-09-16 03:45:06Z dvander $ + * Version: $Id$ */ PrepareBan(client, target, time, const String:reason[]) diff --git a/plugins/basecomm/gag.sp b/plugins/basecomm/gag.sp index fc14b32b..5299a0d6 100644 --- a/plugins/basecomm/gag.sp +++ b/plugins/basecomm/gag.sp @@ -4,7 +4,7 @@ * SourceMod Basecomm * Part of Basecomm plugin, menu and other functionality. * - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under @@ -28,7 +28,7 @@ * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), * or . * - * Version: $Id: admin-flatfile.sp 1438 2007-09-16 03:45:06Z dvander $ + * Version: $Id$ */ enum CommType diff --git a/plugins/basecommands/cancelvote.sp b/plugins/basecommands/cancelvote.sp index 1fb36689..58029793 100644 --- a/plugins/basecommands/cancelvote.sp +++ b/plugins/basecommands/cancelvote.sp @@ -1,75 +1,75 @@ -/** - * vim: set ts=4 : - * ============================================================================= - * SourceMod Basecommands Plugin - * Provides cancelvote functionality. - * - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. - * ============================================================================= - * - * This program is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, version 3.0, as published by the - * Free Software Foundation. - * - * 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, see . - * - * As a special exception, AlliedModders LLC gives you permission to link the - * code of this program (as well as its derivative works) to "Half-Life 2," the - * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software - * by the Valve Corporation. You must obey the GNU General Public License in - * all respects for all other code used. Additionally, AlliedModders LLC grants - * this exception to all derivative works. AlliedModders LLC defines further - * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), - * or . - * - * Version: $Id: admin-flatfile.sp 1438 2007-09-16 03:45:06Z dvander $ - */ - -PerformCancelVote(client) -{ - if (!IsVoteInProgress()) - { - ReplyToCommand(client, "[SM] %t", "Vote Not In Progress"); - return; - } - - ShowActivity2(client, "[SM] ", "%t", "Cancelled Vote"); - - CancelVote(); -} - -public AdminMenu_CancelVote(Handle:topmenu, - TopMenuAction:action, - TopMenuObject:object_id, - param, - String:buffer[], - maxlength) -{ - if (action == TopMenuAction_DisplayOption) - { - Format(buffer, maxlength, "%T", "Cancel vote", param); - } - else if (action == TopMenuAction_SelectOption) - { - PerformCancelVote(param); - RedisplayAdminMenu(topmenu, param); - } - else if (action == TopMenuAction_DrawOption) - { - buffer[0] = IsVoteInProgress() ? ITEMDRAW_DEFAULT : ITEMDRAW_IGNORE; - } -} - -public Action:Command_CancelVote(client, args) -{ - PerformCancelVote(client); - - return Plugin_Handled; -} - +/** + * vim: set ts=4 : + * ============================================================================= + * SourceMod Basecommands Plugin + * Provides cancelvote functionality. + * + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. + * ============================================================================= + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License, version 3.0, as published by the + * Free Software Foundation. + * + * 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, see . + * + * As a special exception, AlliedModders LLC gives you permission to link the + * code of this program (as well as its derivative works) to "Half-Life 2," the + * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software + * by the Valve Corporation. You must obey the GNU General Public License in + * all respects for all other code used. Additionally, AlliedModders LLC grants + * this exception to all derivative works. AlliedModders LLC defines further + * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), + * or . + * + * Version: $Id$ + */ + +PerformCancelVote(client) +{ + if (!IsVoteInProgress()) + { + ReplyToCommand(client, "[SM] %t", "Vote Not In Progress"); + return; + } + + ShowActivity2(client, "[SM] ", "%t", "Cancelled Vote"); + + CancelVote(); +} + +public AdminMenu_CancelVote(Handle:topmenu, + TopMenuAction:action, + TopMenuObject:object_id, + param, + String:buffer[], + maxlength) +{ + if (action == TopMenuAction_DisplayOption) + { + Format(buffer, maxlength, "%T", "Cancel vote", param); + } + else if (action == TopMenuAction_SelectOption) + { + PerformCancelVote(param); + RedisplayAdminMenu(topmenu, param); + } + else if (action == TopMenuAction_DrawOption) + { + buffer[0] = IsVoteInProgress() ? ITEMDRAW_DEFAULT : ITEMDRAW_IGNORE; + } +} + +public Action:Command_CancelVote(client, args) +{ + PerformCancelVote(client); + + return Plugin_Handled; +} + diff --git a/plugins/basecommands/execcfg.sp b/plugins/basecommands/execcfg.sp index b4cebf6b..8feb56d3 100644 --- a/plugins/basecommands/execcfg.sp +++ b/plugins/basecommands/execcfg.sp @@ -4,7 +4,7 @@ * SourceMod Basecommands Plugin * Provides exec cfg functionality * - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under @@ -28,7 +28,7 @@ * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), * or . * - * Version: $Id: admin-flatfile.sp 1438 2007-09-16 03:45:06Z dvander $ + * Version: $Id$ */ new Handle:g_ConfigMenu = INVALID_HANDLE; diff --git a/plugins/basecommands/kick.sp b/plugins/basecommands/kick.sp index 13f580a9..0871ffc0 100644 --- a/plugins/basecommands/kick.sp +++ b/plugins/basecommands/kick.sp @@ -4,7 +4,7 @@ * SourceMod Basecommands Plugin * Provides kick functionality * - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/plugins/basecommands/map.sp b/plugins/basecommands/map.sp index cea38b31..1e003c78 100644 --- a/plugins/basecommands/map.sp +++ b/plugins/basecommands/map.sp @@ -4,7 +4,7 @@ * SourceMod Basecommands Plugin * Provides map functionality * - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under @@ -28,7 +28,7 @@ * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), * or . * - * Version: $Id: admin-flatfile.sp 1438 2007-09-16 03:45:06Z dvander $ + * Version: $Id$ */ public MenuHandler_ChangeMap(Handle:menu, MenuAction:action, param1, param2) diff --git a/plugins/basecommands/reloadadmins.sp b/plugins/basecommands/reloadadmins.sp index 82ce4d2e..be9ca36f 100644 --- a/plugins/basecommands/reloadadmins.sp +++ b/plugins/basecommands/reloadadmins.sp @@ -4,7 +4,7 @@ * SourceMod Basecommands Plugin * Provides reloadadmins functionality. * - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/plugins/basecommands/who.sp b/plugins/basecommands/who.sp index 699528e1..d3766640 100644 --- a/plugins/basecommands/who.sp +++ b/plugins/basecommands/who.sp @@ -4,7 +4,7 @@ * SourceMod Basecommands Plugin * Provides sm_who functionality * - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under @@ -28,7 +28,7 @@ * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), * or . * - * Version: $Id: admin-flatfile.sp 1438 2007-09-16 03:45:06Z dvander $ + * Version: $Id$ */ PerformWho(client, target, ReplySource:reply, bool:is_admin) diff --git a/plugins/basevotes/voteban.sp b/plugins/basevotes/voteban.sp index 1827c0c6..80c28a18 100644 --- a/plugins/basevotes/voteban.sp +++ b/plugins/basevotes/voteban.sp @@ -4,7 +4,7 @@ * SourceMod Basevotes Plugin * Provides ban functionality * - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under @@ -28,7 +28,7 @@ * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), * or . * - * Version: $Id: admin-flatfile.sp 1438 2007-09-16 03:45:06Z dvander $ + * Version: $Id$ */ DisplayVoteBanMenu(client, target) diff --git a/plugins/basevotes/votekick.sp b/plugins/basevotes/votekick.sp index ca5122ca..8f7d2e4f 100644 --- a/plugins/basevotes/votekick.sp +++ b/plugins/basevotes/votekick.sp @@ -4,7 +4,7 @@ * SourceMod Basevotes Plugin * Provides kick functionality * - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under @@ -28,7 +28,7 @@ * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), * or . * - * Version: $Id: admin-flatfile.sp 1438 2007-09-16 03:45:06Z dvander $ + * Version: $Id$ */ diff --git a/plugins/basevotes/votemap.sp b/plugins/basevotes/votemap.sp index 843b78d1..9e16930a 100644 --- a/plugins/basevotes/votemap.sp +++ b/plugins/basevotes/votemap.sp @@ -4,7 +4,7 @@ * SourceMod Basevotes Plugin * Provides map functionality * - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under @@ -28,7 +28,7 @@ * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), * or . * - * Version: $Id: admin-flatfile.sp 1438 2007-09-16 03:45:06Z dvander $ + * Version: $Id$ */ new Handle:g_MapList = INVALID_HANDLE; diff --git a/plugins/funvotes/votealltalk.sp b/plugins/funvotes/votealltalk.sp index 01731e71..561b2274 100644 --- a/plugins/funvotes/votealltalk.sp +++ b/plugins/funvotes/votealltalk.sp @@ -4,7 +4,7 @@ * SourceMod Basefunvotes Plugin * Provides votealltalk functionality * - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under @@ -28,7 +28,7 @@ * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), * or . * - * Version: $Id: admin-flatfile.sp 1438 2007-09-16 03:45:06Z dvander $ + * Version: $Id$ */ DisplayVoteAllTalkMenu(client) diff --git a/plugins/funvotes/voteburn.sp b/plugins/funvotes/voteburn.sp index c3ea24bd..42573a17 100644 --- a/plugins/funvotes/voteburn.sp +++ b/plugins/funvotes/voteburn.sp @@ -4,7 +4,7 @@ * SourceMod Basefunvotes Plugin * Provides voteburn functionality * - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under @@ -28,7 +28,7 @@ * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), * or . * - * Version: $Id: admin-flatfile.sp 1438 2007-09-16 03:45:06Z dvander $ + * Version: $Id$ */ DisplayVoteBurnMenu(client, target, String:name[]) diff --git a/plugins/funvotes/voteff.sp b/plugins/funvotes/voteff.sp index b032c3c2..e12934cc 100644 --- a/plugins/funvotes/voteff.sp +++ b/plugins/funvotes/voteff.sp @@ -28,7 +28,7 @@ * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), * or . * - * Version: $Id: admin-flatfile.sp 1438 2007-09-16 03:45:06Z dvander $ + * Version: $Id$ */ DisplayVoteFFMenu(client) diff --git a/plugins/funvotes/votegravity.sp b/plugins/funvotes/votegravity.sp index 74a30ffd..d3de3572 100644 --- a/plugins/funvotes/votegravity.sp +++ b/plugins/funvotes/votegravity.sp @@ -4,7 +4,7 @@ * SourceMod Basefunvotes Plugin * Provides votegravity functionality * - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under @@ -28,7 +28,7 @@ * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), * or . * - * Version: $Id: admin-flatfile.sp 1438 2007-09-16 03:45:06Z dvander $ + * Version: $Id$ */ diff --git a/plugins/funvotes/voteslay.sp b/plugins/funvotes/voteslay.sp index db705fa7..395b9e31 100644 --- a/plugins/funvotes/voteslay.sp +++ b/plugins/funvotes/voteslay.sp @@ -4,7 +4,7 @@ * SourceMod Basefunvotes Plugin * Provides voteslay functionality * - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under @@ -28,7 +28,7 @@ * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), * or . * - * Version: $Id: admin-flatfile.sp 1438 2007-09-16 03:45:06Z dvander $ + * Version: $Id$ */ diff --git a/plugins/include/bitbuffer.inc b/plugins/include/bitbuffer.inc index 87de566c..f169c73b 100644 --- a/plugins/include/bitbuffer.inc +++ b/plugins/include/bitbuffer.inc @@ -1,325 +1,325 @@ -/** - * vim: set ts=4 : - * ============================================================================= - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. - * ============================================================================= - * - * This file is part of the SourceMod/SourcePawn SDK. - * - * This program is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, version 3.0, as published by the - * Free Software Foundation. - * - * 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, see . - * - * As a special exception, AlliedModders LLC gives you permission to link the - * code of this program (as well as its derivative works) to "Half-Life 2," the - * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software - * by the Valve Corporation. You must obey the GNU General Public License in - * all respects for all other code used. Additionally, AlliedModders LLC grants - * this exception to all derivative works. AlliedModders LLC defines further - * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), - * or . - * - * Version: $Id$ - */ - -#if defined _bitbuffer_included - #endinput -#endif -#define _bitbuffer_included - -/** - * Writes a single bit to a writable bitbuffer (bf_write). - * - * @param bf bf_write handle to write to. - * @param bit Bit to write (true for 1, false for 0). - * @noreturn - * @error Invalid or incorrect Handle. - */ -native BfWriteBool(Handle:bf, bool:bit); - -/** - * Writes a byte to a writable bitbuffer (bf_write). - * - * @param bf bf_write handle to write to. - * @param byte Byte to write (value will be written as 8bit). - * @noreturn - * @error Invalid or incorrect Handle. - */ -native BfWriteByte(Handle:bf, byte); - -/** - * Writes a byte to a writable bitbuffer (bf_write). - * - * @param bf bf_write handle to write to. - * @param chr Character to write. - * @noreturn - * @error Invalid or incorrect Handle. - */ -native BfWriteChar(Handle:bf, chr); - -/** - * Writes a 16bit integer to a writable bitbuffer (bf_write). - * - * @param bf bf_write handle to write to. - * @param num Integer to write (value will be written as 16bit). - * @noreturn - * @error Invalid or incorrect Handle. - */ -native BfWriteShort(Handle:bf, num); - -/** - * Writes a 16bit unsigned integer to a writable bitbuffer (bf_write). - * - * @param bf bf_write handle to write to. - * @param num Integer to write (value will be written as 16bit). - * @noreturn - * @error Invalid or incorrect Handle. - */ -native BfWriteWord(Handle:bf, num); - -/** - * Writes a normal integer to a writable bitbuffer (bf_write). - * - * @param bf bf_write handle to write to. - * @param num Integer to write (value will be written as 32bit). - * @noreturn - * @error Invalid or incorrect Handle. - */ -native BfWriteNum(Handle:bf, num); - -/** - * Writes a floating point number to a writable bitbuffer (bf_write). - * - * @param bf bf_write handle to write to. - * @param num Number to write. - * @noreturn - * @error Invalid or incorrect Handle. - */ -native BfWriteFloat(Handle:bf, Float:num); - -/** - * Writes a string to a writable bitbuffer (bf_write). - * - * @param bf bf_write handle to write to. - * @param string Text string to write. - * @noreturn - * @error Invalid or incorrect Handle. - */ -native BfWriteString(Handle:bf, const String:string[]); - -/** - * Writes an entity to a writable bitbuffer (bf_write). - * @note This is a wrapper around BfWriteShort(). - * - * @param bf bf_write handle to write to. - * @param ent Entity index to write. - * @noreturn - * @error Invalid or incorrect Handle, or invalid entity. - */ -native BfWriteEntity(Handle:bf, ent); - -/** - * Writes a bit angle to a writable bitbuffer (bf_write). - * - * @param bf bf_write handle to write to. - * @param angle Angle to write. - * @param numBits Optional number of bits to use. - * @noreturn - * @error Invalid or incorrect Handle. - */ -native BfWriteAngle(Handle:bf, Float:angle, numBits=8); - -/** - * Writes a coordinate to a writable bitbuffer (bf_write). - * - * @param bf bf_write handle to write to. - * @param coord Coordinate to write. - * @noreturn - * @error Invalid or incorrect Handle. - */ -native BfWriteCoord(Handle:bf, Float:coord); - -/** - * Writes a 3D vector of coordinates to a writable bitbuffer (bf_write). - * - * @param bf bf_write handle to write to. - * @param coord Coordinate array to write. - * @noreturn - * @error Invalid or incorrect Handle. - */ -native BfWriteVecCoord(Handle:bf, Float:coord[3]); - -/** - * Writes a 3D normal vector to a writable bitbuffer (bf_write). - * - * @param bf bf_write handle to write to. - * @param vec Vector to write. - * @noreturn - * @error Invalid or incorrect Handle. - */ -native BfWriteVecNormal(Handle:bf, Float:vec[3]); - -/** - * Writes a 3D angle vector to a writable bitbuffer (bf_write). - * - * @param bf bf_write handle to write to. - * @param angles Angle vector to write. - * @noreturn - * @error Invalid or incorrect Handle. - */ -native BfWriteAngles(Handle:bf, Float:angles[3]); - -/** - * Reads a single bit from a readable bitbuffer (bf_read). - * - * @param bf bf_read handle to read from. - * @return Bit value read. - * @error Invalid or incorrect Handle. - */ -native bool:BfReadBool(Handle:bf); - -/** - * Reads a byte from a readable bitbuffer (bf_read). - * - * @param bf bf_read handle to read from. - * @return Byte value read (read as 8bit). - * @error Invalid or incorrect Handle. - */ -native BfReadByte(Handle:bf); - -/** - * Reads a character from a readable bitbuffer (bf_read). - * - * @param bf bf_read handle to read from. - * @return Character value read. - * @error Invalid or incorrect Handle. - */ -native BfReadChar(Handle:bf); - -/** - * Reads a 16bit integer from a readable bitbuffer (bf_read). - * - * @param bf bf_read handle to read from. - * @return Integer value read (read as 16bit). - * @error Invalid or incorrect Handle. - */ -native BfReadShort(Handle:bf); - -/** - * Reads a 16bit unsigned integer from a readable bitbuffer (bf_read). - * - * @param bf bf_read handle to read from. - * @return Integer value read (read as 16bit). - * @error Invalid or incorrect Handle. - */ -native BfReadWord(Handle:bf); - -/** - * Reads a normal integer to a readable bitbuffer (bf_read). - * - * @param bf bf_read handle to read from. - * @return Integer value read (read as 32bit). - * @error Invalid or incorrect Handle. - */ -native BfReadNum(Handle:bf); - -/** - * Reads a floating point number from a readable bitbuffer (bf_read). - * - * @param bf bf_read handle to read from. - * @return Floating point value read. - * @error Invalid or incorrect Handle. - */ -native Float:BfReadFloat(Handle:bf); - -/** - * Reads a string from a readable bitbuffer (bf_read). - * - * @param bf bf_read handle to read from. - * @param buffer Destination string buffer. - * @param maxlength Maximum length of output string buffer. - * @param line If true the buffer will be copied until it reaches a '\n' or a null terminator. - * @return Number of bytes written to the buffer. If the bitbuffer stream overflowed, - * that is, had no terminator before the end of the stream, then a negative - * number will be returned equal to the number of characters written to the - * buffer minus 1. The buffer will be null terminated regardless of the - * return value. - * @error Invalid or incorrect Handle. - */ -native BfReadString(Handle:bf, String:buffer[], maxlength, bool:line=false); - -/** - * Reads an entity from a readable bitbuffer (bf_read). - * @note This is a wrapper around BfReadShort(). - * - * @param bf bf_read handle to read from. - * @return Entity index read. - * @error Invalid or incorrect Handle. - */ -native BfReadEntity(Handle:bf); - -/** - * Reads a bit angle from a readable bitbuffer (bf_read). - * - * @param bf bf_read handle to read from. - * @param numBits Optional number of bits to use. - * @return Angle read. - * @error Invalid or incorrect Handle. - */ -native Float:BfReadAngle(Handle:bf, numBits=8); - -/** - * Reads a coordinate from a readable bitbuffer (bf_read). - * - * @param bf bf_read handle to read from. - * @return Coordinate read. - * @error Invalid or incorrect Handle. - */ -native Float:BfReadCoord(Handle:bf); - -/** - * Reads a 3D vector of coordinates from a readable bitbuffer (bf_read). - * - * @param bf bf_read handle to read from. - * @param coord Destination coordinate array. - * @noreturn - * @error Invalid or incorrect Handle. - */ -native BfReadVecCoord(Handle:bf, Float:coord[3]); - -/** - * Reads a 3D normal vector from a readable bitbuffer (bf_read). - * - * @param bf bf_read handle to read from. - * @param vec Destination vector array. - * @noreturn - * @error Invalid or incorrect Handle. - */ -native BfReadVecNormal(Handle:bf, Float:vec[3]); - -/** - * Reads a 3D angle vector from a readable bitbuffer (bf_read). - * - * @param bf bf_read handle to read from. - * @param angles Destination angle vector. - * @noreturn - * @error Invalid or incorrect Handle. - */ -native BfReadAngles(Handle:bf, Float:angles[3]); - -/** - * Returns the number of bytes left in a readable bitbuffer (bf_read). - * - * @param bf bf_read handle to read from. - * @return Number of bytes left unread. - * @error Invalid or incorrect Handle. - */ -native BfGetNumBytesLeft(Handle:bf); +/** + * vim: set ts=4 : + * ============================================================================= + * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * ============================================================================= + * + * This file is part of the SourceMod/SourcePawn SDK. + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License, version 3.0, as published by the + * Free Software Foundation. + * + * 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, see . + * + * As a special exception, AlliedModders LLC gives you permission to link the + * code of this program (as well as its derivative works) to "Half-Life 2," the + * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software + * by the Valve Corporation. You must obey the GNU General Public License in + * all respects for all other code used. Additionally, AlliedModders LLC grants + * this exception to all derivative works. AlliedModders LLC defines further + * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), + * or . + * + * Version: $Id$ + */ + +#if defined _bitbuffer_included + #endinput +#endif +#define _bitbuffer_included + +/** + * Writes a single bit to a writable bitbuffer (bf_write). + * + * @param bf bf_write handle to write to. + * @param bit Bit to write (true for 1, false for 0). + * @noreturn + * @error Invalid or incorrect Handle. + */ +native BfWriteBool(Handle:bf, bool:bit); + +/** + * Writes a byte to a writable bitbuffer (bf_write). + * + * @param bf bf_write handle to write to. + * @param byte Byte to write (value will be written as 8bit). + * @noreturn + * @error Invalid or incorrect Handle. + */ +native BfWriteByte(Handle:bf, byte); + +/** + * Writes a byte to a writable bitbuffer (bf_write). + * + * @param bf bf_write handle to write to. + * @param chr Character to write. + * @noreturn + * @error Invalid or incorrect Handle. + */ +native BfWriteChar(Handle:bf, chr); + +/** + * Writes a 16bit integer to a writable bitbuffer (bf_write). + * + * @param bf bf_write handle to write to. + * @param num Integer to write (value will be written as 16bit). + * @noreturn + * @error Invalid or incorrect Handle. + */ +native BfWriteShort(Handle:bf, num); + +/** + * Writes a 16bit unsigned integer to a writable bitbuffer (bf_write). + * + * @param bf bf_write handle to write to. + * @param num Integer to write (value will be written as 16bit). + * @noreturn + * @error Invalid or incorrect Handle. + */ +native BfWriteWord(Handle:bf, num); + +/** + * Writes a normal integer to a writable bitbuffer (bf_write). + * + * @param bf bf_write handle to write to. + * @param num Integer to write (value will be written as 32bit). + * @noreturn + * @error Invalid or incorrect Handle. + */ +native BfWriteNum(Handle:bf, num); + +/** + * Writes a floating point number to a writable bitbuffer (bf_write). + * + * @param bf bf_write handle to write to. + * @param num Number to write. + * @noreturn + * @error Invalid or incorrect Handle. + */ +native BfWriteFloat(Handle:bf, Float:num); + +/** + * Writes a string to a writable bitbuffer (bf_write). + * + * @param bf bf_write handle to write to. + * @param string Text string to write. + * @noreturn + * @error Invalid or incorrect Handle. + */ +native BfWriteString(Handle:bf, const String:string[]); + +/** + * Writes an entity to a writable bitbuffer (bf_write). + * @note This is a wrapper around BfWriteShort(). + * + * @param bf bf_write handle to write to. + * @param ent Entity index to write. + * @noreturn + * @error Invalid or incorrect Handle, or invalid entity. + */ +native BfWriteEntity(Handle:bf, ent); + +/** + * Writes a bit angle to a writable bitbuffer (bf_write). + * + * @param bf bf_write handle to write to. + * @param angle Angle to write. + * @param numBits Optional number of bits to use. + * @noreturn + * @error Invalid or incorrect Handle. + */ +native BfWriteAngle(Handle:bf, Float:angle, numBits=8); + +/** + * Writes a coordinate to a writable bitbuffer (bf_write). + * + * @param bf bf_write handle to write to. + * @param coord Coordinate to write. + * @noreturn + * @error Invalid or incorrect Handle. + */ +native BfWriteCoord(Handle:bf, Float:coord); + +/** + * Writes a 3D vector of coordinates to a writable bitbuffer (bf_write). + * + * @param bf bf_write handle to write to. + * @param coord Coordinate array to write. + * @noreturn + * @error Invalid or incorrect Handle. + */ +native BfWriteVecCoord(Handle:bf, Float:coord[3]); + +/** + * Writes a 3D normal vector to a writable bitbuffer (bf_write). + * + * @param bf bf_write handle to write to. + * @param vec Vector to write. + * @noreturn + * @error Invalid or incorrect Handle. + */ +native BfWriteVecNormal(Handle:bf, Float:vec[3]); + +/** + * Writes a 3D angle vector to a writable bitbuffer (bf_write). + * + * @param bf bf_write handle to write to. + * @param angles Angle vector to write. + * @noreturn + * @error Invalid or incorrect Handle. + */ +native BfWriteAngles(Handle:bf, Float:angles[3]); + +/** + * Reads a single bit from a readable bitbuffer (bf_read). + * + * @param bf bf_read handle to read from. + * @return Bit value read. + * @error Invalid or incorrect Handle. + */ +native bool:BfReadBool(Handle:bf); + +/** + * Reads a byte from a readable bitbuffer (bf_read). + * + * @param bf bf_read handle to read from. + * @return Byte value read (read as 8bit). + * @error Invalid or incorrect Handle. + */ +native BfReadByte(Handle:bf); + +/** + * Reads a character from a readable bitbuffer (bf_read). + * + * @param bf bf_read handle to read from. + * @return Character value read. + * @error Invalid or incorrect Handle. + */ +native BfReadChar(Handle:bf); + +/** + * Reads a 16bit integer from a readable bitbuffer (bf_read). + * + * @param bf bf_read handle to read from. + * @return Integer value read (read as 16bit). + * @error Invalid or incorrect Handle. + */ +native BfReadShort(Handle:bf); + +/** + * Reads a 16bit unsigned integer from a readable bitbuffer (bf_read). + * + * @param bf bf_read handle to read from. + * @return Integer value read (read as 16bit). + * @error Invalid or incorrect Handle. + */ +native BfReadWord(Handle:bf); + +/** + * Reads a normal integer to a readable bitbuffer (bf_read). + * + * @param bf bf_read handle to read from. + * @return Integer value read (read as 32bit). + * @error Invalid or incorrect Handle. + */ +native BfReadNum(Handle:bf); + +/** + * Reads a floating point number from a readable bitbuffer (bf_read). + * + * @param bf bf_read handle to read from. + * @return Floating point value read. + * @error Invalid or incorrect Handle. + */ +native Float:BfReadFloat(Handle:bf); + +/** + * Reads a string from a readable bitbuffer (bf_read). + * + * @param bf bf_read handle to read from. + * @param buffer Destination string buffer. + * @param maxlength Maximum length of output string buffer. + * @param line If true the buffer will be copied until it reaches a '\n' or a null terminator. + * @return Number of bytes written to the buffer. If the bitbuffer stream overflowed, + * that is, had no terminator before the end of the stream, then a negative + * number will be returned equal to the number of characters written to the + * buffer minus 1. The buffer will be null terminated regardless of the + * return value. + * @error Invalid or incorrect Handle. + */ +native BfReadString(Handle:bf, String:buffer[], maxlength, bool:line=false); + +/** + * Reads an entity from a readable bitbuffer (bf_read). + * @note This is a wrapper around BfReadShort(). + * + * @param bf bf_read handle to read from. + * @return Entity index read. + * @error Invalid or incorrect Handle. + */ +native BfReadEntity(Handle:bf); + +/** + * Reads a bit angle from a readable bitbuffer (bf_read). + * + * @param bf bf_read handle to read from. + * @param numBits Optional number of bits to use. + * @return Angle read. + * @error Invalid or incorrect Handle. + */ +native Float:BfReadAngle(Handle:bf, numBits=8); + +/** + * Reads a coordinate from a readable bitbuffer (bf_read). + * + * @param bf bf_read handle to read from. + * @return Coordinate read. + * @error Invalid or incorrect Handle. + */ +native Float:BfReadCoord(Handle:bf); + +/** + * Reads a 3D vector of coordinates from a readable bitbuffer (bf_read). + * + * @param bf bf_read handle to read from. + * @param coord Destination coordinate array. + * @noreturn + * @error Invalid or incorrect Handle. + */ +native BfReadVecCoord(Handle:bf, Float:coord[3]); + +/** + * Reads a 3D normal vector from a readable bitbuffer (bf_read). + * + * @param bf bf_read handle to read from. + * @param vec Destination vector array. + * @noreturn + * @error Invalid or incorrect Handle. + */ +native BfReadVecNormal(Handle:bf, Float:vec[3]); + +/** + * Reads a 3D angle vector from a readable bitbuffer (bf_read). + * + * @param bf bf_read handle to read from. + * @param angles Destination angle vector. + * @noreturn + * @error Invalid or incorrect Handle. + */ +native BfReadAngles(Handle:bf, Float:angles[3]); + +/** + * Returns the number of bytes left in a readable bitbuffer (bf_read). + * + * @param bf bf_read handle to read from. + * @return Number of bytes left unread. + * @error Invalid or incorrect Handle. + */ +native BfGetNumBytesLeft(Handle:bf); diff --git a/plugins/include/sdktools_trace.inc b/plugins/include/sdktools_trace.inc index 32d9face..88b7f202 100644 --- a/plugins/include/sdktools_trace.inc +++ b/plugins/include/sdktools_trace.inc @@ -1,272 +1,272 @@ -/** - * vim: set ts=4 : - * ============================================================================= - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. - * ============================================================================= - * - * This file is part of the SourceMod/SourcePawn SDK. - * - * This program is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, version 3.0, as published by the - * Free Software Foundation. - * - * 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, see . - * - * As a special exception, AlliedModders LLC gives you permission to link the - * code of this program (as well as its derivative works) to "Half-Life 2," the - * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software - * by the Valve Corporation. You must obey the GNU General Public License in - * all respects for all other code used. Additionally, AlliedModders LLC grants - * this exception to all derivative works. AlliedModders LLC defines further - * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), - * or . - * - * Version: $Id$ - */ - -#if defined _sdktools_trace_included - #endinput -#endif -#define _sdktools_trace_included - -#define CONTENTS_EMPTY 0 /**< No contents. */ -#define CONTENTS_SOLID 0x1 /**< an eye is never valid in a solid . */ -#define CONTENTS_WINDOW 0x2 /**< translucent, but not watery (glass). */ -#define CONTENTS_AUX 0x4 -#define CONTENTS_GRATE 0x8 /**< alpha-tested "grate" textures. Bullets/sight pass through, but solids don't. */ -#define CONTENTS_SLIME 0x10 -#define CONTENTS_WATER 0x20 -#define CONTENTS_MIST 0x40 -#define CONTENTS_OPAQUE 0x80 /**< things that cannot be seen through (may be non-solid though). */ -#define LAST_VISIBLE_CONTENTS 0x80 -#define ALL_VISIBLE_CONTENTS (LAST_VISIBLE_CONTENTS | (LAST_VISIBLE_CONTENTS-1)) -#define CONTENTS_TESTFOGVOLUME 0x100 -#define CONTENTS_UNUSED5 0x200 -#define CONTENTS_UNUSED6 0x4000 -#define CONTENTS_TEAM1 0x800 /**< per team contents used to differentiate collisions. */ -#define CONTENTS_TEAM2 0x1000 /**< between players and objects on different teams. */ -#define CONTENTS_IGNORE_NODRAW_OPAQUE 0x2000 /**< ignore CONTENTS_OPAQUE on surfaces that have SURF_NODRAW. */ -#define CONTENTS_MOVEABLE 0x4000 /**< hits entities which are MOVETYPE_PUSH (doors, plats, etc) */ -#define CONTENTS_AREAPORTAL 0x8000 /**< remaining contents are non-visible, and don't eat brushes. */ -#define CONTENTS_PLAYERCLIP 0x10000 -#define CONTENTS_MONSTERCLIP 0x20000 - -/** - * @section currents can be added to any other contents, and may be mixed - */ -#define CONTENTS_CURRENT_0 0x40000 -#define CONTENTS_CURRENT_90 0x80000 -#define CONTENTS_CURRENT_180 0x100000 -#define CONTENTS_CURRENT_270 0x200000 -#define CONTENTS_CURRENT_UP 0x400000 -#define CONTENTS_CURRENT_DOWN 0x800000 - -/** - * @endsection - */ - -#define CONTENTS_ORIGIN 0x1000000 /**< removed before bsping an entity. */ -#define CONTENTS_MONSTER 0x2000000 /**< should never be on a brush, only in game. */ -#define CONTENTS_DEBRIS 0x4000000 -#define CONTENTS_DETAIL 0x8000000 /**< brushes to be added after vis leafs. */ -#define CONTENTS_TRANSLUCENT 0x10000000 /**< auto set if any surface has trans. */ -#define CONTENTS_LADDER 0x20000000 -#define CONTENTS_HITBOX 0x40000000 /**< use accurate hitboxes on trace. */ - -/** - * @section Trace masks. - */ -#define MASK_ALL (0xFFFFFFFF) -#define MASK_SOLID (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_WINDOW|CONTENTS_MONSTER|CONTENTS_GRATE) /**< everything that is normally solid */ -#define MASK_PLAYERSOLID (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_PLAYERCLIP|CONTENTS_WINDOW|CONTENTS_MONSTER|CONTENTS_GRATE) /**< everything that blocks player movement */ -#define MASK_NPCSOLID (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_MONSTERCLIP|CONTENTS_WINDOW|CONTENTS_MONSTER|CONTENTS_GRATE) /**< blocks npc movement */ -#define MASK_WATER (CONTENTS_WATER|CONTENTS_MOVEABLE|CONTENTS_SLIME) /**< water physics in these contents */ -#define MASK_OPAQUE (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_OPAQUE) /**< everything that blocks line of sight for AI, lighting, etc */ -#define MASK_OPAQUE_AND_NPCS (MASK_OPAQUE|CONTENTS_MONSTER) /**< everything that blocks line of sight for AI, lighting, etc, but with monsters added. */ -#define MASK_VISIBLE (MASK_OPAQUE|CONTENTS_IGNORE_NODRAW_OPAQUE) /**< everything that blocks line of sight for players */ -#define MASK_VISIBLE_AND_NPCS (MASK_OPAQUE_AND_NPCS|CONTENTS_IGNORE_NODRAW_OPAQUE) /**< everything that blocks line of sight for players, but with monsters added. */ -#define MASK_SHOT (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_MONSTER|CONTENTS_WINDOW|CONTENTS_DEBRIS|CONTENTS_HITBOX) /**< bullets see these as solid */ -#define MASK_SHOT_HULL (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_MONSTER|CONTENTS_WINDOW|CONTENTS_DEBRIS|CONTENTS_GRATE) /**< non-raycasted weapons see this as solid (includes grates) */ -#define MASK_SHOT_PORTAL (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_WINDOW) /**< hits solids (not grates) and passes through everything else */ -#define MASK_SOLID_BRUSHONLY (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_WINDOW|CONTENTS_GRATE) /**< everything normally solid, except monsters (world+brush only) */ -#define MASK_PLAYERSOLID_BRUSHONLY (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_WINDOW|CONTENTS_PLAYERCLIP|CONTENTS_GRATE) /**< everything normally solid for player movement, except monsters (world+brush only) */ -#define MASK_NPCSOLID_BRUSHONLY (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_WINDOW|CONTENTS_MONSTERCLIP|CONTENTS_GRATE) /**< everything normally solid for npc movement, except monsters (world+brush only) */ -#define MASK_NPCWORLDSTATIC (CONTENTS_SOLID|CONTENTS_WINDOW|CONTENTS_MONSTERCLIP|CONTENTS_GRATE) /**< just the world, used for route rebuilding */ -#define MASK_SPLITAREAPORTAL (CONTENTS_WATER|CONTENTS_SLIME) /**< These are things that can split areaportals */ - -/** - * @endsection - */ - -enum RayType -{ - RayType_EndPoint, /**< The trace ray will go from the start position to the end position. */ - RayType_Infinite /**< The trace ray will go from the start position to infinity using a direction vector. */ -}; - -funcenum TraceEntityFilter -{ - /** - * Called on entity filtering. - * - * @param entity Entity index. - * @param contentsMask Contents Mask. - * @return True to allow the current entity to be hit, otherwise false. - */ - bool:public(entity, contentsMask), - - /** - * Called on entity filtering. - * - * @param entity Entity index. - * @param contentsMask Contents Mask. - * @param data Data value, if used. - * @return True to allow the current entity to be hit, otherwise false. - */ - bool:public(entity, contentsMask, any:data), -}; - -/** - * Get the contents mask and the entity index at the given position. - * - * @param pos World position to test. - * @param entindex Entity index found at the given position (by reference). - * @return Contents mask. - */ -native TR_GetPointContents(const Float:pos[3], &entindex=-1); - -/** - * Get the point contents testing only the given entity index. - * - * @param entindex Entity index to test. - * @param pos World position. - * @return Contents mask. - */ -native TR_GetPointContentsEnt(entindex, const Float:pos[3]); - -/** - * Starts up a new trace ray using a global trace result. - * - * @param pos Starting position of the ray. - * @param vec Depending on RayType, it will be used as the ending point, or the direction angle. - * @param flags Trace flags. - * @param rtype Method to calculate the ray direction. - * @noreturn - */ -native TR_TraceRay(const Float:pos[3], const Float:vec[3], flags, RayType:rtype); - -/** - * Starts up a new trace ray using a global trace result and a customized trace ray filter. - * - * Calling TR_TraceRayFilter or TR_TraceRayFilterEx from inside a filter function is - * currently not allowed and may not work. - * - * @param pos Starting position of the ray. - * @param vec Depending on RayType, it will be used as the ending point, or the direction angle. - * @param flags Trace flags. - * @param rtype Method to calculate the ray direction. - * @param filter Function to use as a filter. - * @param data Arbitrary data value to pass through to the filter function. - * @noreturn - */ -native TR_TraceRayFilter(const Float:pos[3], - const Float:vec[3], - flags, - RayType:rtype, - TraceEntityFilter:filter, - any:data=0); - -/** - * Starts up a new trace ray using a new trace result. - * - * @param pos Starting position of the ray. - * @param vec Depending on RayType, it will be used as the ending point, or the direction angle. - * @param flags Trace flags. - * @param rtype Method to calculate the ray direction. - * @return Ray trace handle, which must be closed via CloseHandle(). - */ -native Handle:TR_TraceRayEx(const Float:pos[3], const Float:vec[3], flags, RayType:rtype); - -/** - * Starts up a new trace ray using a new trace result and a customized trace ray filter. - * - * Calling TR_TraceRayFilter or TR_TraceRayFilterEx from inside a filter function is - * currently not allowed and may not work. - * - * @param pos Starting position of the ray. - * @param vec Depending on RayType, it will be used as the ending point, or the direction angle. - * @param flags Trace flags. - * @param rtype Method to calculate the ray direction. - * @param filter Function to use as a filter. - * @param data Arbitrary data value to pass through to the filter function. - * @return Ray trace handle, which must be closed via CloseHandle(). - */ -native Handle:TR_TraceRayFilterEx(const Float:pos[3], - const Float:vec[3], - flags, - RayType:rtype, - TraceEntityFilter:filter, - any:data=0); - -/** - * Returns the time fraction from a trace result (1.0 means no collision). - * - * @param hndl A trace Handle, or INVALID_HANDLE to use a global trace result. - * @return Time fraction value of the trace. - * @error Invalid Handle. - */ -native Float:TR_GetFraction(Handle:hndl=INVALID_HANDLE); - -/** - * Returns the collision position of a trace result. - * - * @param pos Vector buffer to store data in. - * @param hndl A trace Handle, or INVALID_HANDLE to use a global trace result. - * @noreturn - * @error Invalid Handle. - */ -native TR_GetEndPosition(Float:pos[3], Handle:hndl=INVALID_HANDLE); - -/** - * Returns the entity index that collided with the trace. - * - * @param hndl A trace Handle, or INVALID_HANDLE to use a global trace result. - * @return Entity index or -1 for no collision. - * @error Invalid Handle. - */ -native TR_GetEntityIndex(Handle:hndl=INVALID_HANDLE); - -/** - * Returns if there was any kind of collision along the trace ray. - * - * @param hndl A trace Handle, or INVALID_HANDLE to use a global trace result. - * @return True if any collision found, otherwise false. - * @error Invalid Handle. - */ -native bool:TR_DidHit(Handle:hndl=INVALID_HANDLE); - -/** - * Returns in which body hit group the trace collided if any. - * - * @param hndl A trace Handle, or INVALID_HANDLE to use a global trace result. - * @return Body hit group. - * @error Invalid Handle. - */ -native TR_GetHitGroup(Handle:hndl=INVALID_HANDLE); - -/** - * Find the normal vector to the collison plane of a trace. - * - * @param hndl A trace Handle, or INVALID_HANDLE to use a global trace result. - * @param normal Vector buffer to store the vector normal to the collision plane - * @noreturn - * @error Invalid Handle - */ -native TR_GetPlaneNormal(Handle:hndl, Float:normal[3]); - +/** + * vim: set ts=4 : + * ============================================================================= + * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * ============================================================================= + * + * This file is part of the SourceMod/SourcePawn SDK. + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License, version 3.0, as published by the + * Free Software Foundation. + * + * 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, see . + * + * As a special exception, AlliedModders LLC gives you permission to link the + * code of this program (as well as its derivative works) to "Half-Life 2," the + * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software + * by the Valve Corporation. You must obey the GNU General Public License in + * all respects for all other code used. Additionally, AlliedModders LLC grants + * this exception to all derivative works. AlliedModders LLC defines further + * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), + * or . + * + * Version: $Id$ + */ + +#if defined _sdktools_trace_included + #endinput +#endif +#define _sdktools_trace_included + +#define CONTENTS_EMPTY 0 /**< No contents. */ +#define CONTENTS_SOLID 0x1 /**< an eye is never valid in a solid . */ +#define CONTENTS_WINDOW 0x2 /**< translucent, but not watery (glass). */ +#define CONTENTS_AUX 0x4 +#define CONTENTS_GRATE 0x8 /**< alpha-tested "grate" textures. Bullets/sight pass through, but solids don't. */ +#define CONTENTS_SLIME 0x10 +#define CONTENTS_WATER 0x20 +#define CONTENTS_MIST 0x40 +#define CONTENTS_OPAQUE 0x80 /**< things that cannot be seen through (may be non-solid though). */ +#define LAST_VISIBLE_CONTENTS 0x80 +#define ALL_VISIBLE_CONTENTS (LAST_VISIBLE_CONTENTS | (LAST_VISIBLE_CONTENTS-1)) +#define CONTENTS_TESTFOGVOLUME 0x100 +#define CONTENTS_UNUSED5 0x200 +#define CONTENTS_UNUSED6 0x4000 +#define CONTENTS_TEAM1 0x800 /**< per team contents used to differentiate collisions. */ +#define CONTENTS_TEAM2 0x1000 /**< between players and objects on different teams. */ +#define CONTENTS_IGNORE_NODRAW_OPAQUE 0x2000 /**< ignore CONTENTS_OPAQUE on surfaces that have SURF_NODRAW. */ +#define CONTENTS_MOVEABLE 0x4000 /**< hits entities which are MOVETYPE_PUSH (doors, plats, etc) */ +#define CONTENTS_AREAPORTAL 0x8000 /**< remaining contents are non-visible, and don't eat brushes. */ +#define CONTENTS_PLAYERCLIP 0x10000 +#define CONTENTS_MONSTERCLIP 0x20000 + +/** + * @section currents can be added to any other contents, and may be mixed + */ +#define CONTENTS_CURRENT_0 0x40000 +#define CONTENTS_CURRENT_90 0x80000 +#define CONTENTS_CURRENT_180 0x100000 +#define CONTENTS_CURRENT_270 0x200000 +#define CONTENTS_CURRENT_UP 0x400000 +#define CONTENTS_CURRENT_DOWN 0x800000 + +/** + * @endsection + */ + +#define CONTENTS_ORIGIN 0x1000000 /**< removed before bsping an entity. */ +#define CONTENTS_MONSTER 0x2000000 /**< should never be on a brush, only in game. */ +#define CONTENTS_DEBRIS 0x4000000 +#define CONTENTS_DETAIL 0x8000000 /**< brushes to be added after vis leafs. */ +#define CONTENTS_TRANSLUCENT 0x10000000 /**< auto set if any surface has trans. */ +#define CONTENTS_LADDER 0x20000000 +#define CONTENTS_HITBOX 0x40000000 /**< use accurate hitboxes on trace. */ + +/** + * @section Trace masks. + */ +#define MASK_ALL (0xFFFFFFFF) +#define MASK_SOLID (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_WINDOW|CONTENTS_MONSTER|CONTENTS_GRATE) /**< everything that is normally solid */ +#define MASK_PLAYERSOLID (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_PLAYERCLIP|CONTENTS_WINDOW|CONTENTS_MONSTER|CONTENTS_GRATE) /**< everything that blocks player movement */ +#define MASK_NPCSOLID (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_MONSTERCLIP|CONTENTS_WINDOW|CONTENTS_MONSTER|CONTENTS_GRATE) /**< blocks npc movement */ +#define MASK_WATER (CONTENTS_WATER|CONTENTS_MOVEABLE|CONTENTS_SLIME) /**< water physics in these contents */ +#define MASK_OPAQUE (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_OPAQUE) /**< everything that blocks line of sight for AI, lighting, etc */ +#define MASK_OPAQUE_AND_NPCS (MASK_OPAQUE|CONTENTS_MONSTER) /**< everything that blocks line of sight for AI, lighting, etc, but with monsters added. */ +#define MASK_VISIBLE (MASK_OPAQUE|CONTENTS_IGNORE_NODRAW_OPAQUE) /**< everything that blocks line of sight for players */ +#define MASK_VISIBLE_AND_NPCS (MASK_OPAQUE_AND_NPCS|CONTENTS_IGNORE_NODRAW_OPAQUE) /**< everything that blocks line of sight for players, but with monsters added. */ +#define MASK_SHOT (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_MONSTER|CONTENTS_WINDOW|CONTENTS_DEBRIS|CONTENTS_HITBOX) /**< bullets see these as solid */ +#define MASK_SHOT_HULL (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_MONSTER|CONTENTS_WINDOW|CONTENTS_DEBRIS|CONTENTS_GRATE) /**< non-raycasted weapons see this as solid (includes grates) */ +#define MASK_SHOT_PORTAL (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_WINDOW) /**< hits solids (not grates) and passes through everything else */ +#define MASK_SOLID_BRUSHONLY (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_WINDOW|CONTENTS_GRATE) /**< everything normally solid, except monsters (world+brush only) */ +#define MASK_PLAYERSOLID_BRUSHONLY (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_WINDOW|CONTENTS_PLAYERCLIP|CONTENTS_GRATE) /**< everything normally solid for player movement, except monsters (world+brush only) */ +#define MASK_NPCSOLID_BRUSHONLY (CONTENTS_SOLID|CONTENTS_MOVEABLE|CONTENTS_WINDOW|CONTENTS_MONSTERCLIP|CONTENTS_GRATE) /**< everything normally solid for npc movement, except monsters (world+brush only) */ +#define MASK_NPCWORLDSTATIC (CONTENTS_SOLID|CONTENTS_WINDOW|CONTENTS_MONSTERCLIP|CONTENTS_GRATE) /**< just the world, used for route rebuilding */ +#define MASK_SPLITAREAPORTAL (CONTENTS_WATER|CONTENTS_SLIME) /**< These are things that can split areaportals */ + +/** + * @endsection + */ + +enum RayType +{ + RayType_EndPoint, /**< The trace ray will go from the start position to the end position. */ + RayType_Infinite /**< The trace ray will go from the start position to infinity using a direction vector. */ +}; + +funcenum TraceEntityFilter +{ + /** + * Called on entity filtering. + * + * @param entity Entity index. + * @param contentsMask Contents Mask. + * @return True to allow the current entity to be hit, otherwise false. + */ + bool:public(entity, contentsMask), + + /** + * Called on entity filtering. + * + * @param entity Entity index. + * @param contentsMask Contents Mask. + * @param data Data value, if used. + * @return True to allow the current entity to be hit, otherwise false. + */ + bool:public(entity, contentsMask, any:data), +}; + +/** + * Get the contents mask and the entity index at the given position. + * + * @param pos World position to test. + * @param entindex Entity index found at the given position (by reference). + * @return Contents mask. + */ +native TR_GetPointContents(const Float:pos[3], &entindex=-1); + +/** + * Get the point contents testing only the given entity index. + * + * @param entindex Entity index to test. + * @param pos World position. + * @return Contents mask. + */ +native TR_GetPointContentsEnt(entindex, const Float:pos[3]); + +/** + * Starts up a new trace ray using a global trace result. + * + * @param pos Starting position of the ray. + * @param vec Depending on RayType, it will be used as the ending point, or the direction angle. + * @param flags Trace flags. + * @param rtype Method to calculate the ray direction. + * @noreturn + */ +native TR_TraceRay(const Float:pos[3], const Float:vec[3], flags, RayType:rtype); + +/** + * Starts up a new trace ray using a global trace result and a customized trace ray filter. + * + * Calling TR_TraceRayFilter or TR_TraceRayFilterEx from inside a filter function is + * currently not allowed and may not work. + * + * @param pos Starting position of the ray. + * @param vec Depending on RayType, it will be used as the ending point, or the direction angle. + * @param flags Trace flags. + * @param rtype Method to calculate the ray direction. + * @param filter Function to use as a filter. + * @param data Arbitrary data value to pass through to the filter function. + * @noreturn + */ +native TR_TraceRayFilter(const Float:pos[3], + const Float:vec[3], + flags, + RayType:rtype, + TraceEntityFilter:filter, + any:data=0); + +/** + * Starts up a new trace ray using a new trace result. + * + * @param pos Starting position of the ray. + * @param vec Depending on RayType, it will be used as the ending point, or the direction angle. + * @param flags Trace flags. + * @param rtype Method to calculate the ray direction. + * @return Ray trace handle, which must be closed via CloseHandle(). + */ +native Handle:TR_TraceRayEx(const Float:pos[3], const Float:vec[3], flags, RayType:rtype); + +/** + * Starts up a new trace ray using a new trace result and a customized trace ray filter. + * + * Calling TR_TraceRayFilter or TR_TraceRayFilterEx from inside a filter function is + * currently not allowed and may not work. + * + * @param pos Starting position of the ray. + * @param vec Depending on RayType, it will be used as the ending point, or the direction angle. + * @param flags Trace flags. + * @param rtype Method to calculate the ray direction. + * @param filter Function to use as a filter. + * @param data Arbitrary data value to pass through to the filter function. + * @return Ray trace handle, which must be closed via CloseHandle(). + */ +native Handle:TR_TraceRayFilterEx(const Float:pos[3], + const Float:vec[3], + flags, + RayType:rtype, + TraceEntityFilter:filter, + any:data=0); + +/** + * Returns the time fraction from a trace result (1.0 means no collision). + * + * @param hndl A trace Handle, or INVALID_HANDLE to use a global trace result. + * @return Time fraction value of the trace. + * @error Invalid Handle. + */ +native Float:TR_GetFraction(Handle:hndl=INVALID_HANDLE); + +/** + * Returns the collision position of a trace result. + * + * @param pos Vector buffer to store data in. + * @param hndl A trace Handle, or INVALID_HANDLE to use a global trace result. + * @noreturn + * @error Invalid Handle. + */ +native TR_GetEndPosition(Float:pos[3], Handle:hndl=INVALID_HANDLE); + +/** + * Returns the entity index that collided with the trace. + * + * @param hndl A trace Handle, or INVALID_HANDLE to use a global trace result. + * @return Entity index or -1 for no collision. + * @error Invalid Handle. + */ +native TR_GetEntityIndex(Handle:hndl=INVALID_HANDLE); + +/** + * Returns if there was any kind of collision along the trace ray. + * + * @param hndl A trace Handle, or INVALID_HANDLE to use a global trace result. + * @return True if any collision found, otherwise false. + * @error Invalid Handle. + */ +native bool:TR_DidHit(Handle:hndl=INVALID_HANDLE); + +/** + * Returns in which body hit group the trace collided if any. + * + * @param hndl A trace Handle, or INVALID_HANDLE to use a global trace result. + * @return Body hit group. + * @error Invalid Handle. + */ +native TR_GetHitGroup(Handle:hndl=INVALID_HANDLE); + +/** + * Find the normal vector to the collison plane of a trace. + * + * @param hndl A trace Handle, or INVALID_HANDLE to use a global trace result. + * @param normal Vector buffer to store the vector normal to the collision plane + * @noreturn + * @error Invalid Handle + */ +native TR_GetPlaneNormal(Handle:hndl, Float:normal[3]); + diff --git a/plugins/include/topmenus.inc b/plugins/include/topmenus.inc index a59f2fa0..ac8a972c 100644 --- a/plugins/include/topmenus.inc +++ b/plugins/include/topmenus.inc @@ -1,290 +1,290 @@ -/** - * vim: set ts=4 : - * ============================================================================= - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. - * ============================================================================= - * - * This file is part of the SourceMod/SourcePawn SDK. - * - * This program is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, version 3.0, as published by the - * Free Software Foundation. - * - * 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, see . - * - * As a special exception, AlliedModders LLC gives you permission to link the - * code of this program (as well as its derivative works) to "Half-Life 2," the - * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software - * by the Valve Corporation. You must obey the GNU General Public License in - * all respects for all other code used. Additionally, AlliedModders LLC grants - * this exception to all derivative works. AlliedModders LLC defines further - * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), - * or . - * - * Version: $Id$ - */ - -#if defined _topmenus_included - #endinput -#endif -#define _topmenus_included - -#include - -/** - * Actions a top menu will take on an object. - */ -enum TopMenuAction -{ - /** - * An option is being drawn for a menu (or for sorting purposes). - * - * INPUT : TopMenu Handle, object ID, client index. - * OUTPUT: Buffer for rendering, maxlength of buffer. - */ - TopMenuAction_DisplayOption = 0, - - /** - * The title of a menu is being drawn for a given object. - * - * Note: The Object ID will be INVALID_TOPMENUOBJECT if drawing the - * root title. Otherwise, the Object ID is a category. - * - * INPUT : TopMenu Handle, object ID, client index. - * OUTPUT: Buffer for rendering, maxlength of buffer. - */ - TopMenuAction_DisplayTitle = 1, - - /** - * A menu option has been selected. - * - * The Object ID will always be an item (not a category). - * - * INPUT : TopMenu Handle, object ID, client index. - */ - TopMenuAction_SelectOption = 2, - - /** - * A menu option is being drawn and its flags can be overridden. - * - * INPUT : TopMenu Handle, object ID, client index. - * OUTPUT: The first byte of the 'buffer' string should be set - * to the desired flags. By default, it will contain - * ITEMDRAW_DEFAULT. - */ - TopMenuAction_DrawOption = 3, - - /** - * Called when an object is being removed from the menu. - * This can be used to clean up data stored in the info string. - * - * INPUT : TopMenu Handle, object ID. - */ - TopMenuAction_RemoveObject = 4, -}; - -/** - * Top menu object types. - */ -enum TopMenuObjectType -{ - TopMenuObject_Category = 0, /**< Category (sub-menu branching from root) */ - TopMenuObject_Item = 1 /**< Item on a sub-menu */ -}; - -/** - * Top menu starting positions for display. - */ -enum TopMenuPosition -{ - TopMenuPosition_Start = 0, /**< Start/root of the menu */ - TopMenuPosition_LastRoot = 1, /**< Last position in the root menu */ - TopMenuPosition_LastCategory = 3, /**< Last position in their last category */ -}; - -/** - * Top menu object tag for type checking. - */ -enum TopMenuObject -{ - INVALID_TOPMENUOBJECT = 0, -} - -/** - * TopMenu callback prototype. - * - * @param topmenu Handle to the TopMenu. - * @param action TopMenuAction being performed. - * @param object_id The object ID (if used). - * @param param Extra parameter (if used). - * @param buffer Output buffer (if used). - * @param maxlength Output buffer (if used). - * @noreturn - */ -functag TopMenuHandler public(Handle:topmenu, - TopMenuAction:action, - TopMenuObject:object_id, - param, - String:buffer[], - maxlength); - -/** - * Creates a TopMenu. - * - * @param handler Handler to use for drawing the root title. - * @return A new TopMenu Handle, or INVALID_HANDLE on failure. - */ -native Handle:CreateTopMenu(TopMenuHandler:handler); - -/** - * Re-sorts the items in a TopMenu via a configuration file. - * - * The format of the configuration file should be a Valve Key-Values - * formatted file that SourceMod can parse. There should be one root - * section, and one sub-section for each category. Each sub-section's - * name should match the category name. - * - * Each sub-section may only contain key/value pairs in the form of: - * key: "item" - * value: Name of the item as passed to AddToTopMenu(). - * - * The TopMenu will draw items in the order declared in the configuration - * file. If items do not appear in the configuration file, they are sorted - * per-player based on how the handler function renders for that player. - * These items appear after the configuration sorted items. - * - * @param topmenu TopMenu Handle. - * @param file File path. - * @param error Error buffer. - * @param maxlength Maximum size of the error buffer. - * Error buffer will be filled with a - * zero-terminated string if false is - * returned. - * @return True on success, false on failure. - * @error Invalid TopMenu Handle. - */ -native bool:LoadTopMenuConfig(Handle:topmenu, const String:file[], String:error[], maxlength); - -/** - * Adds an object to a TopMenu. - * - * @param topmenu TopMenu Handle. - * @param name Object name (MUST be unique). - * @param type Object type. - * @param handler Handler for object. - * @param cmdname Command name (for access overrides). - * @param flags Default access flags. - * @param parent Parent object ID, or INVALID_TOPMENUOBJECT for none. - * Items must have a category parent. - * Categories must not have a parent. - * @param info_string Arbitrary storage (max 255 bytes). - * @return A new TopMenuObject ID, or INVALID_TOPMENUOBJECT on - * failure. - * @error Invalid TopMenu Handle. - */ -native TopMenuObject:AddToTopMenu(Handle:topmenu, - const String:name[], - TopMenuObjectType:type, - TopMenuHandler:handler, - TopMenuObject:parent, - const String:cmdname[]="", - flags=0, - const String:info_string[]=""); - -/** - * Retrieves the info string of a top menu item. - * - * @param topmenu TopMenu Handle. - * @param object TopMenuObject ID. - * @param buffer Buffer to store info string. - * @param maxlength Maximum size of info string. - * @return Number of bytes written, not including the - * null terminator. - * @error Invalid TopMenu Handle or TopMenuObject ID. - */ -native GetTopMenuInfoString(Handle:topmenu, TopMenuObject:parent, String:buffer[], maxlength); - -/** - * Retrieves the name string of a top menu item. - * - * @param topmenu TopMenu Handle. - * @param object TopMenuObject ID. - * @param buffer Buffer to store info string. - * @param maxlength Maximum size of info string. - * @return Number of bytes written, not including the - * null terminator. - * @error Invalid TopMenu Handle or TopMenuObject ID. - */ -native GetTopMenuObjName(Handle:topmenu, TopMenuObject:object, String:buffer[], maxlength); - -/** - * Removes an object from a TopMenu. - * - * Plugins' objects are automatically removed all TopMenus when the given - * plugin unloads or pauses. In the case of unpausing, all items are restored. - * - * @param topmenu TopMenu Handle. - * @param object TopMenuObject ID. - * @noreturn - * @error Invalid TopMenu Handle. - */ -native RemoveFromTopMenu(Handle:topmenu, TopMenuObject:object); - -/** - * Displays a TopMenu to a client. - * - * @param topmenu TopMenu Handle. - * @param client Client index. - * @param position Position to display from. - * @return True on success, false on failure. - * @error Invalid TopMenu Handle or client not in game. - */ -native bool:DisplayTopMenu(Handle:topmenu, client, TopMenuPosition:position); - -/** - * Finds a category's object ID in a TopMenu. - * - * @param topmenu TopMenu Handle. - * @param name Object's unique name. - * @return TopMenuObject ID on success, or - * INVALID_TOPMENUOBJECT on failure. - * @error Invalid TopMenu Handle. - */ -native TopMenuObject:FindTopMenuCategory(Handle:topmenu, const String:name[]); - -/** - * Do not edit below this line! - */ -public Extension:__ext_topmenus = -{ - name = "TopMenus", - file = "topmenus.ext", -#if defined AUTOLOAD_EXTENSIONS - autoload = 1, -#else - autoload = 0, -#endif -#if defined REQUIRE_EXTENSIONS - required = 1, -#else - required = 0, -#endif -}; - -#if !defined REQUIRE_EXTENSIONS -public __ext_topmenus_SetNTVOptional() -{ - MarkNativeAsOptional("CreateTopMenu"); - MarkNativeAsOptional("LoadTopMenuConfig"); - MarkNativeAsOptional("AddToTopMenu"); - MarkNativeAsOptional("RemoveFromTopMenu"); - MarkNativeAsOptional("DisplayTopMenu"); - MarkNativeAsOptional("FindTopMenuCategory"); -} -#endif +/** + * vim: set ts=4 : + * ============================================================================= + * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * ============================================================================= + * + * This file is part of the SourceMod/SourcePawn SDK. + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License, version 3.0, as published by the + * Free Software Foundation. + * + * 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, see . + * + * As a special exception, AlliedModders LLC gives you permission to link the + * code of this program (as well as its derivative works) to "Half-Life 2," the + * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software + * by the Valve Corporation. You must obey the GNU General Public License in + * all respects for all other code used. Additionally, AlliedModders LLC grants + * this exception to all derivative works. AlliedModders LLC defines further + * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), + * or . + * + * Version: $Id$ + */ + +#if defined _topmenus_included + #endinput +#endif +#define _topmenus_included + +#include + +/** + * Actions a top menu will take on an object. + */ +enum TopMenuAction +{ + /** + * An option is being drawn for a menu (or for sorting purposes). + * + * INPUT : TopMenu Handle, object ID, client index. + * OUTPUT: Buffer for rendering, maxlength of buffer. + */ + TopMenuAction_DisplayOption = 0, + + /** + * The title of a menu is being drawn for a given object. + * + * Note: The Object ID will be INVALID_TOPMENUOBJECT if drawing the + * root title. Otherwise, the Object ID is a category. + * + * INPUT : TopMenu Handle, object ID, client index. + * OUTPUT: Buffer for rendering, maxlength of buffer. + */ + TopMenuAction_DisplayTitle = 1, + + /** + * A menu option has been selected. + * + * The Object ID will always be an item (not a category). + * + * INPUT : TopMenu Handle, object ID, client index. + */ + TopMenuAction_SelectOption = 2, + + /** + * A menu option is being drawn and its flags can be overridden. + * + * INPUT : TopMenu Handle, object ID, client index. + * OUTPUT: The first byte of the 'buffer' string should be set + * to the desired flags. By default, it will contain + * ITEMDRAW_DEFAULT. + */ + TopMenuAction_DrawOption = 3, + + /** + * Called when an object is being removed from the menu. + * This can be used to clean up data stored in the info string. + * + * INPUT : TopMenu Handle, object ID. + */ + TopMenuAction_RemoveObject = 4, +}; + +/** + * Top menu object types. + */ +enum TopMenuObjectType +{ + TopMenuObject_Category = 0, /**< Category (sub-menu branching from root) */ + TopMenuObject_Item = 1 /**< Item on a sub-menu */ +}; + +/** + * Top menu starting positions for display. + */ +enum TopMenuPosition +{ + TopMenuPosition_Start = 0, /**< Start/root of the menu */ + TopMenuPosition_LastRoot = 1, /**< Last position in the root menu */ + TopMenuPosition_LastCategory = 3, /**< Last position in their last category */ +}; + +/** + * Top menu object tag for type checking. + */ +enum TopMenuObject +{ + INVALID_TOPMENUOBJECT = 0, +} + +/** + * TopMenu callback prototype. + * + * @param topmenu Handle to the TopMenu. + * @param action TopMenuAction being performed. + * @param object_id The object ID (if used). + * @param param Extra parameter (if used). + * @param buffer Output buffer (if used). + * @param maxlength Output buffer (if used). + * @noreturn + */ +functag TopMenuHandler public(Handle:topmenu, + TopMenuAction:action, + TopMenuObject:object_id, + param, + String:buffer[], + maxlength); + +/** + * Creates a TopMenu. + * + * @param handler Handler to use for drawing the root title. + * @return A new TopMenu Handle, or INVALID_HANDLE on failure. + */ +native Handle:CreateTopMenu(TopMenuHandler:handler); + +/** + * Re-sorts the items in a TopMenu via a configuration file. + * + * The format of the configuration file should be a Valve Key-Values + * formatted file that SourceMod can parse. There should be one root + * section, and one sub-section for each category. Each sub-section's + * name should match the category name. + * + * Each sub-section may only contain key/value pairs in the form of: + * key: "item" + * value: Name of the item as passed to AddToTopMenu(). + * + * The TopMenu will draw items in the order declared in the configuration + * file. If items do not appear in the configuration file, they are sorted + * per-player based on how the handler function renders for that player. + * These items appear after the configuration sorted items. + * + * @param topmenu TopMenu Handle. + * @param file File path. + * @param error Error buffer. + * @param maxlength Maximum size of the error buffer. + * Error buffer will be filled with a + * zero-terminated string if false is + * returned. + * @return True on success, false on failure. + * @error Invalid TopMenu Handle. + */ +native bool:LoadTopMenuConfig(Handle:topmenu, const String:file[], String:error[], maxlength); + +/** + * Adds an object to a TopMenu. + * + * @param topmenu TopMenu Handle. + * @param name Object name (MUST be unique). + * @param type Object type. + * @param handler Handler for object. + * @param cmdname Command name (for access overrides). + * @param flags Default access flags. + * @param parent Parent object ID, or INVALID_TOPMENUOBJECT for none. + * Items must have a category parent. + * Categories must not have a parent. + * @param info_string Arbitrary storage (max 255 bytes). + * @return A new TopMenuObject ID, or INVALID_TOPMENUOBJECT on + * failure. + * @error Invalid TopMenu Handle. + */ +native TopMenuObject:AddToTopMenu(Handle:topmenu, + const String:name[], + TopMenuObjectType:type, + TopMenuHandler:handler, + TopMenuObject:parent, + const String:cmdname[]="", + flags=0, + const String:info_string[]=""); + +/** + * Retrieves the info string of a top menu item. + * + * @param topmenu TopMenu Handle. + * @param object TopMenuObject ID. + * @param buffer Buffer to store info string. + * @param maxlength Maximum size of info string. + * @return Number of bytes written, not including the + * null terminator. + * @error Invalid TopMenu Handle or TopMenuObject ID. + */ +native GetTopMenuInfoString(Handle:topmenu, TopMenuObject:parent, String:buffer[], maxlength); + +/** + * Retrieves the name string of a top menu item. + * + * @param topmenu TopMenu Handle. + * @param object TopMenuObject ID. + * @param buffer Buffer to store info string. + * @param maxlength Maximum size of info string. + * @return Number of bytes written, not including the + * null terminator. + * @error Invalid TopMenu Handle or TopMenuObject ID. + */ +native GetTopMenuObjName(Handle:topmenu, TopMenuObject:object, String:buffer[], maxlength); + +/** + * Removes an object from a TopMenu. + * + * Plugins' objects are automatically removed all TopMenus when the given + * plugin unloads or pauses. In the case of unpausing, all items are restored. + * + * @param topmenu TopMenu Handle. + * @param object TopMenuObject ID. + * @noreturn + * @error Invalid TopMenu Handle. + */ +native RemoveFromTopMenu(Handle:topmenu, TopMenuObject:object); + +/** + * Displays a TopMenu to a client. + * + * @param topmenu TopMenu Handle. + * @param client Client index. + * @param position Position to display from. + * @return True on success, false on failure. + * @error Invalid TopMenu Handle or client not in game. + */ +native bool:DisplayTopMenu(Handle:topmenu, client, TopMenuPosition:position); + +/** + * Finds a category's object ID in a TopMenu. + * + * @param topmenu TopMenu Handle. + * @param name Object's unique name. + * @return TopMenuObject ID on success, or + * INVALID_TOPMENUOBJECT on failure. + * @error Invalid TopMenu Handle. + */ +native TopMenuObject:FindTopMenuCategory(Handle:topmenu, const String:name[]); + +/** + * Do not edit below this line! + */ +public Extension:__ext_topmenus = +{ + name = "TopMenus", + file = "topmenus.ext", +#if defined AUTOLOAD_EXTENSIONS + autoload = 1, +#else + autoload = 0, +#endif +#if defined REQUIRE_EXTENSIONS + required = 1, +#else + required = 0, +#endif +}; + +#if !defined REQUIRE_EXTENSIONS +public __ext_topmenus_SetNTVOptional() +{ + MarkNativeAsOptional("CreateTopMenu"); + MarkNativeAsOptional("LoadTopMenuConfig"); + MarkNativeAsOptional("AddToTopMenu"); + MarkNativeAsOptional("RemoveFromTopMenu"); + MarkNativeAsOptional("DisplayTopMenu"); + MarkNativeAsOptional("FindTopMenuCategory"); +} +#endif diff --git a/plugins/include/version.inc b/plugins/include/version.inc index a06645ef..194f99b9 100644 --- a/plugins/include/version.inc +++ b/plugins/include/version.inc @@ -1,7 +1,7 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This file is part of the SourceMod/SourcePawn SDK. diff --git a/plugins/include/version.tpl b/plugins/include/version.tpl index 6bc2c04a..28e8d0e0 100644 --- a/plugins/include/version.tpl +++ b/plugins/include/version.tpl @@ -1,7 +1,7 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This file is part of the SourceMod/SourcePawn SDK. diff --git a/public/extensions/ITopMenus.h b/public/extensions/ITopMenus.h index ef063e2d..250a0948 100644 --- a/public/extensions/ITopMenus.h +++ b/public/extensions/ITopMenus.h @@ -1,8 +1,8 @@ /** * vim: set ts=4 : * ============================================================================= - * SourceMod - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod TopMenus Extension + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/public/jit/jit_helpers.h b/public/jit/jit_helpers.h index 6bb825eb..01d97763 100644 --- a/public/jit/jit_helpers.h +++ b/public/jit/jit_helpers.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourcePawn JIT SDK - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/public/jit/x86/x86_macros.h b/public/jit/x86/x86_macros.h index cc21970a..1cea3502 100644 --- a/public/jit/x86/x86_macros.h +++ b/public/jit/x86/x86_macros.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourcePawn JIT SDK - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/public/mms_sample_ext/sm_ext.cpp b/public/mms_sample_ext/sm_ext.cpp index e68879ec..a7057766 100644 --- a/public/mms_sample_ext/sm_ext.cpp +++ b/public/mms_sample_ext/sm_ext.cpp @@ -1,145 +1,176 @@ -#include -#include "stub_mm.h" -#include "stub_util.h" -#include "sm_ext.h" - -MyExtension g_SMExt; - -bool SM_LoadExtension(char *error, size_t maxlength) -{ - if ((smexts = (IExtensionManager *)g_SMAPI->MetaFactory( - SOURCEMOD_INTERFACE_EXTENSIONS, - NULL, - NULL)) - == NULL) - { - if (error && maxlength) - { - UTIL_Format(error, maxlength, SOURCEMOD_INTERFACE_EXTENSIONS " interface not found"); - } - return false; - } - - /* This could be more dynamic */ - char path[256]; - g_SMAPI->PathFormat(path, - sizeof(path), - "addons/myplugin/bin/myplugin%s", -#if defined __linux__ - "_i486.so" -#else - ".dll" -#endif - ); - - if ((myself = smexts->LoadExternal(&g_SMExt, - path, - "myplugin_mm.ext", - error, - maxlength)) - == NULL) - { - SM_UnsetInterfaces(); - return false; - } - - return true; -} - -void SM_UnloadExtension() -{ - smexts->UnloadExtension(myself); -} - -bool MyExtension::OnExtensionLoad(IExtension *me, - IShareSys *sys, - char *error, - size_t maxlength, - bool late) -{ - sharesys = sys; - myself = me; - - /* Get the default interfaces from our configured SDK header */ - if (!SM_AcquireInterfaces(error, maxlength)) - { - return false; - } - - return true; -} - -void MyExtension::OnExtensionUnload() -{ - /* Clean up any resources here, and more importantly, make sure - * any listeners/hooks into SourceMod are totally removed, as well - * as data structures like handle types and forwards. - */ - - //... - - /* Make sure our pointers get NULL'd just in case */ - SM_UnsetInterfaces(); -} - -void MyExtension::OnExtensionsAllLoaded() -{ - /* Called once all extensions are marked as loaded. - * This always called, and always called only once. - */ -} - -void MyExtension::OnExtensionPauseChange(bool pause) -{ -} - -bool MyExtension::QueryRunning(char *error, size_t maxlength) -{ - /* if something is required that can't be determined during the initial - * load process, print a message here will show a helpful message to - * users when they view the extension's info. - */ - return true; -} - -bool MyExtension::IsMetamodExtension() -{ - /* Must return false! */ - return false; -} - -const char *MyExtension::GetExtensionName() -{ - return mmsplugin->GetName(); -} - -const char *MyExtension::GetExtensionURL() -{ - return mmsplugin->GetURL(); -} - -const char *MyExtension::GetExtensionTag() -{ - return mmsplugin->GetLogTag(); -} - -const char *MyExtension::GetExtensionAuthor() -{ - return mmsplugin->GetAuthor(); -} - -const char *MyExtension::GetExtensionVerString() -{ - return mmsplugin->GetVersion(); -} - -const char *MyExtension::GetExtensionDescription() -{ - return mmsplugin->GetDescription(); -} - -const char *MyExtension::GetExtensionDateString() -{ - return mmsplugin->GetDate(); -} - +/** + * vim: set ts=4 : + * ============================================================================= + * SourceMod Extension Code for Metamod:Source + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. + * ============================================================================= + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License, version 3.0, as published by the + * Free Software Foundation. + * + * 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, see . + * + * As a special exception, AlliedModders LLC gives you permission to link the + * code of this program (as well as its derivative works) to "Half-Life 2," the + * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software + * by the Valve Corporation. You must obey the GNU General Public License in + * all respects for all other code used. Additionally, AlliedModders LLC grants + * this exception to all derivative works. AlliedModders LLC defines further + * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), + * or . + * + * Version: $Id$ + */ + +#include +#include "stub_mm.h" +#include "stub_util.h" +#include "sm_ext.h" + +MyExtension g_SMExt; + +bool SM_LoadExtension(char *error, size_t maxlength) +{ + if ((smexts = (IExtensionManager *)g_SMAPI->MetaFactory( + SOURCEMOD_INTERFACE_EXTENSIONS, + NULL, + NULL)) + == NULL) + { + if (error && maxlength) + { + UTIL_Format(error, maxlength, SOURCEMOD_INTERFACE_EXTENSIONS " interface not found"); + } + return false; + } + + /* This could be more dynamic */ + char path[256]; + g_SMAPI->PathFormat(path, + sizeof(path), + "addons/myplugin/bin/myplugin%s", +#if defined __linux__ + "_i486.so" +#else + ".dll" +#endif + ); + + if ((myself = smexts->LoadExternal(&g_SMExt, + path, + "myplugin_mm.ext", + error, + maxlength)) + == NULL) + { + SM_UnsetInterfaces(); + return false; + } + + return true; +} + +void SM_UnloadExtension() +{ + smexts->UnloadExtension(myself); +} + +bool MyExtension::OnExtensionLoad(IExtension *me, + IShareSys *sys, + char *error, + size_t maxlength, + bool late) +{ + sharesys = sys; + myself = me; + + /* Get the default interfaces from our configured SDK header */ + if (!SM_AcquireInterfaces(error, maxlength)) + { + return false; + } + + return true; +} + +void MyExtension::OnExtensionUnload() +{ + /* Clean up any resources here, and more importantly, make sure + * any listeners/hooks into SourceMod are totally removed, as well + * as data structures like handle types and forwards. + */ + + //... + + /* Make sure our pointers get NULL'd just in case */ + SM_UnsetInterfaces(); +} + +void MyExtension::OnExtensionsAllLoaded() +{ + /* Called once all extensions are marked as loaded. + * This always called, and always called only once. + */ +} + +void MyExtension::OnExtensionPauseChange(bool pause) +{ +} + +bool MyExtension::QueryRunning(char *error, size_t maxlength) +{ + /* if something is required that can't be determined during the initial + * load process, print a message here will show a helpful message to + * users when they view the extension's info. + */ + return true; +} + +bool MyExtension::IsMetamodExtension() +{ + /* Must return false! */ + return false; +} + +const char *MyExtension::GetExtensionName() +{ + return mmsplugin->GetName(); +} + +const char *MyExtension::GetExtensionURL() +{ + return mmsplugin->GetURL(); +} + +const char *MyExtension::GetExtensionTag() +{ + return mmsplugin->GetLogTag(); +} + +const char *MyExtension::GetExtensionAuthor() +{ + return mmsplugin->GetAuthor(); +} + +const char *MyExtension::GetExtensionVerString() +{ + return mmsplugin->GetVersion(); +} + +const char *MyExtension::GetExtensionDescription() +{ + return mmsplugin->GetDescription(); +} + +const char *MyExtension::GetExtensionDateString() +{ + return mmsplugin->GetDate(); +} + diff --git a/public/mms_sample_ext/sm_ext.h b/public/mms_sample_ext/sm_ext.h index 24569822..93fb3cab 100644 --- a/public/mms_sample_ext/sm_ext.h +++ b/public/mms_sample_ext/sm_ext.h @@ -1,3 +1,34 @@ +/** + * vim: set ts=4 : + * ============================================================================= + * SourceMod Extension Code for Metamod:Source + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. + * ============================================================================= + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License, version 3.0, as published by the + * Free Software Foundation. + * + * 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, see . + * + * As a special exception, AlliedModders LLC gives you permission to link the + * code of this program (as well as its derivative works) to "Half-Life 2," the + * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software + * by the Valve Corporation. You must obey the GNU General Public License in + * all respects for all other code used. Additionally, AlliedModders LLC grants + * this exception to all derivative works. AlliedModders LLC defines further + * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), + * or . + * + * Version: $Id$ + */ + #ifndef _INCLUDE_SAMPLE_MMS_SOURCEMOD_EXTENSION_ #define _INCLUDE_SAMPLE_MMS_SOURCEMOD_EXTENSION_ diff --git a/public/mms_sample_ext/sm_sdk_config.cpp b/public/mms_sample_ext/sm_sdk_config.cpp index 26426c35..6c5f377a 100644 --- a/public/mms_sample_ext/sm_sdk_config.cpp +++ b/public/mms_sample_ext/sm_sdk_config.cpp @@ -1,151 +1,182 @@ -#include "sm_sdk_config.h" - -using namespace SourceMod; - -bool SM_AcquireInterfaces(char *error, size_t maxlength) -{ - SM_FIND_IFACE_OR_FAIL(SOURCEMOD, sm_main, error, maxlength); - -#if defined SMEXT_ENABLE_FORWARDSYS - SM_FIND_IFACE_OR_FAIL(FORWARDMANAGER, sm_forwards, error, maxlength); -#endif -#if defined SMEXT_ENABLE_HANDLESYS - SM_FIND_IFACE_OR_FAIL(HANDLESYSTEM, sm_handlesys, error, maxlength); -#endif -#if defined SMEXT_ENABLE_PLAYERHELPERS - SM_FIND_IFACE_OR_FAIL(PLAYERMANAGER, sm_players, error, maxlength); -#endif -#if defined SMEXT_ENABLE_DBMANAGER - SM_FIND_IFACE_OR_FAIL(DBI, sm_dbi, error, maxlength); -#endif -#if defined SMEXT_ENABLE_GAMECONF - SM_FIND_IFACE_OR_FAIL(GAMECONFIG, sm_gameconfs, error, maxlength); -#endif -#if defined SMEXT_ENABLE_MEMUTILS - SM_FIND_IFACE_OR_FAIL(MEMORYUTILS, sm_memutils, error, maxlength); -#endif -#if defined SMEXT_ENABLE_GAMEHELPERS - SM_FIND_IFACE_OR_FAIL(GAMEHELPERS, sm_gamehelpers, error, maxlength); -#endif -#if defined SMEXT_ENABLE_TIMERSYS - SM_FIND_IFACE_OR_FAIL(TIMERSYS, sm_timersys, error, maxlength); -#endif -#if defined SMEXT_ENABLE_THREADER - SM_FIND_IFACE_OR_FAIL(THREADER, sm_threader, error, maxlength); -#endif -#if defined SMEXT_ENABLE_LIBSYS - SM_FIND_IFACE_OR_FAIL(LIBRARYSYS, sm_libsys, error, maxlength); -#endif -#if defined SMEXT_ENABLE_PLUGINSYS - SM_FIND_IFACE_OR_FAIL(PLUGINSYSTEM, sm_plsys, error, maxlength); -#endif -#if defined SMEXT_ENABLE_MENUS - SM_FIND_IFACE_OR_FAIL(MENUMANAGER, sm_menus, error, maxlength); -#endif -#if defined SMEXT_ENABLE_ADMINSYS - SM_FIND_IFACE_OR_FAIL(ADMINSYS, sm_adminsys, error, maxlength); -#endif -#if defined SMEXT_ENABLE_TEXTPARSERS - SM_FIND_IFACE_OR_FAIL(TEXTPARSERS, sm_text, error, maxlength); -#endif - - return true; -} - -void SM_UnsetInterfaces() -{ - myself = NULL; - smexts = NULL; - sharesys = NULL; - sm_main = NULL; -#if defined SMEXT_ENABLE_FORWARDSYS - sm_forwards = NULL; -#endif -#if defined SMEXT_ENABLE_HANDLESYS - sm_handlesys = NULL; -#endif -#if defined SMEXT_ENABLE_PLAYERHELPERS - sm_players = NULL; -#endif -#if defined SMEXT_ENABLE_DBMANAGER - sm_dbi = NULL; -#endif -#if defined SMEXT_ENABLE_GAMECONF - sm_gameconfs = NULL; -#endif -#if defined SMEXT_ENABLE_MEMUTILS - sm_memutils = NULL; -#endif -#if defined SMEXT_ENABLE_GAMEHELPERS - sm_gamehelpers = NULL; -#endif -#if defined SMEXT_ENABLE_TIMERSYS - sm_timersys = NULL; -#endif -#if defined SMEXT_ENABLE_THREADER - sm_threader = NULL; -#endif -#if defined SMEXT_ENABLE_LIBSYS - sm_libsys = NULL; -#endif -#if defined SMEXT_ENABLE_PLUGINSYS - sm_plsys = NULL; -#endif -#if defined SMEXT_ENABLE_MENUS - sm_menus = NULL; -#endif -#if defined SMEXT_ENABLE_ADMINSYS - sm_adminsys = NULL; -#endif -#if defined SMEXT_ENABLE_TEXTPARSERS - sm_text = NULL; -#endif -} - -IExtension *myself = NULL; -IExtensionManager *smexts = NULL; -IShareSys *sharesys = NULL; -SourceMod::ISourceMod *sm_main = NULL; -#if defined SMEXT_ENABLE_FORWARDSYS -SourceMod::IForwardManager *sm_forwards = NULL; -#endif -#if defined SMEXT_ENABLE_HANDLESYS -SourceMod::IHandleSys *sm_handlesys = NULL; -#endif -#if defined SMEXT_ENABLE_PLAYERHELPERS -SourceMod::IPlayerManager *sm_players = NULL; -#endif -#if defined SMEXT_ENABLE_DBMANAGER -SourceMod::IDBManager *sm_dbi = NULL; -#endif -#if defined SMEXT_ENABLE_GAMECONF -SourceMod::IGameConfigManager *sm_gameconfs = NULL; -#endif -#if defined SMEXT_ENABLE_MEMUTILS -SourceMod::IMemoryUtils *sm_memutils = NULL; -#endif -#if defined SMEXT_ENABLE_GAMEHELPERS -SourceMod::IGameHelpers *sm_gamehelpers = NULL; -#endif -#if defined SMEXT_ENABLE_TIMERSYS -SourceMod::ITimerSystem *sm_timersys = NULL; -#endif -#if defined SMEXT_ENABLE_THREADER -SourceMod::IThreader *sm_threader = NULL; -#endif -#if defined SMEXT_ENABLE_LIBSYS -SourceMod::ILibrarySys *sm_libsys = NULL; -#endif -#if defined SMEXT_ENABLE_PLUGINSYS -SourceMod::IPluginManager *sm_plsys = NULL; -#endif -#if defined SMEXT_ENABLE_MENUS -SourceMod::IMenuManager *sm_menus = NULL; -#endif -#if defined SMEXT_ENABLE_ADMINSYS -SourceMod::IAdminSystem *sm_adminsys = NULL; -#endif -#if defined SMEXT_ENABLE_TEXTPARSERS -SourceMod::ITextParsers *sm_text = NULL; -#endif - +/** + * vim: set ts=4 : + * ============================================================================= + * SourceMod Extension Code for Metamod:Source + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. + * ============================================================================= + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License, version 3.0, as published by the + * Free Software Foundation. + * + * 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, see . + * + * As a special exception, AlliedModders LLC gives you permission to link the + * code of this program (as well as its derivative works) to "Half-Life 2," the + * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software + * by the Valve Corporation. You must obey the GNU General Public License in + * all respects for all other code used. Additionally, AlliedModders LLC grants + * this exception to all derivative works. AlliedModders LLC defines further + * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), + * or . + * + * Version: $Id$ + */ + +#include "sm_sdk_config.h" + +using namespace SourceMod; + +bool SM_AcquireInterfaces(char *error, size_t maxlength) +{ + SM_FIND_IFACE_OR_FAIL(SOURCEMOD, sm_main, error, maxlength); + +#if defined SMEXT_ENABLE_FORWARDSYS + SM_FIND_IFACE_OR_FAIL(FORWARDMANAGER, sm_forwards, error, maxlength); +#endif +#if defined SMEXT_ENABLE_HANDLESYS + SM_FIND_IFACE_OR_FAIL(HANDLESYSTEM, sm_handlesys, error, maxlength); +#endif +#if defined SMEXT_ENABLE_PLAYERHELPERS + SM_FIND_IFACE_OR_FAIL(PLAYERMANAGER, sm_players, error, maxlength); +#endif +#if defined SMEXT_ENABLE_DBMANAGER + SM_FIND_IFACE_OR_FAIL(DBI, sm_dbi, error, maxlength); +#endif +#if defined SMEXT_ENABLE_GAMECONF + SM_FIND_IFACE_OR_FAIL(GAMECONFIG, sm_gameconfs, error, maxlength); +#endif +#if defined SMEXT_ENABLE_MEMUTILS + SM_FIND_IFACE_OR_FAIL(MEMORYUTILS, sm_memutils, error, maxlength); +#endif +#if defined SMEXT_ENABLE_GAMEHELPERS + SM_FIND_IFACE_OR_FAIL(GAMEHELPERS, sm_gamehelpers, error, maxlength); +#endif +#if defined SMEXT_ENABLE_TIMERSYS + SM_FIND_IFACE_OR_FAIL(TIMERSYS, sm_timersys, error, maxlength); +#endif +#if defined SMEXT_ENABLE_THREADER + SM_FIND_IFACE_OR_FAIL(THREADER, sm_threader, error, maxlength); +#endif +#if defined SMEXT_ENABLE_LIBSYS + SM_FIND_IFACE_OR_FAIL(LIBRARYSYS, sm_libsys, error, maxlength); +#endif +#if defined SMEXT_ENABLE_PLUGINSYS + SM_FIND_IFACE_OR_FAIL(PLUGINSYSTEM, sm_plsys, error, maxlength); +#endif +#if defined SMEXT_ENABLE_MENUS + SM_FIND_IFACE_OR_FAIL(MENUMANAGER, sm_menus, error, maxlength); +#endif +#if defined SMEXT_ENABLE_ADMINSYS + SM_FIND_IFACE_OR_FAIL(ADMINSYS, sm_adminsys, error, maxlength); +#endif +#if defined SMEXT_ENABLE_TEXTPARSERS + SM_FIND_IFACE_OR_FAIL(TEXTPARSERS, sm_text, error, maxlength); +#endif + + return true; +} + +void SM_UnsetInterfaces() +{ + myself = NULL; + smexts = NULL; + sharesys = NULL; + sm_main = NULL; +#if defined SMEXT_ENABLE_FORWARDSYS + sm_forwards = NULL; +#endif +#if defined SMEXT_ENABLE_HANDLESYS + sm_handlesys = NULL; +#endif +#if defined SMEXT_ENABLE_PLAYERHELPERS + sm_players = NULL; +#endif +#if defined SMEXT_ENABLE_DBMANAGER + sm_dbi = NULL; +#endif +#if defined SMEXT_ENABLE_GAMECONF + sm_gameconfs = NULL; +#endif +#if defined SMEXT_ENABLE_MEMUTILS + sm_memutils = NULL; +#endif +#if defined SMEXT_ENABLE_GAMEHELPERS + sm_gamehelpers = NULL; +#endif +#if defined SMEXT_ENABLE_TIMERSYS + sm_timersys = NULL; +#endif +#if defined SMEXT_ENABLE_THREADER + sm_threader = NULL; +#endif +#if defined SMEXT_ENABLE_LIBSYS + sm_libsys = NULL; +#endif +#if defined SMEXT_ENABLE_PLUGINSYS + sm_plsys = NULL; +#endif +#if defined SMEXT_ENABLE_MENUS + sm_menus = NULL; +#endif +#if defined SMEXT_ENABLE_ADMINSYS + sm_adminsys = NULL; +#endif +#if defined SMEXT_ENABLE_TEXTPARSERS + sm_text = NULL; +#endif +} + +IExtension *myself = NULL; +IExtensionManager *smexts = NULL; +IShareSys *sharesys = NULL; +SourceMod::ISourceMod *sm_main = NULL; +#if defined SMEXT_ENABLE_FORWARDSYS +SourceMod::IForwardManager *sm_forwards = NULL; +#endif +#if defined SMEXT_ENABLE_HANDLESYS +SourceMod::IHandleSys *sm_handlesys = NULL; +#endif +#if defined SMEXT_ENABLE_PLAYERHELPERS +SourceMod::IPlayerManager *sm_players = NULL; +#endif +#if defined SMEXT_ENABLE_DBMANAGER +SourceMod::IDBManager *sm_dbi = NULL; +#endif +#if defined SMEXT_ENABLE_GAMECONF +SourceMod::IGameConfigManager *sm_gameconfs = NULL; +#endif +#if defined SMEXT_ENABLE_MEMUTILS +SourceMod::IMemoryUtils *sm_memutils = NULL; +#endif +#if defined SMEXT_ENABLE_GAMEHELPERS +SourceMod::IGameHelpers *sm_gamehelpers = NULL; +#endif +#if defined SMEXT_ENABLE_TIMERSYS +SourceMod::ITimerSystem *sm_timersys = NULL; +#endif +#if defined SMEXT_ENABLE_THREADER +SourceMod::IThreader *sm_threader = NULL; +#endif +#if defined SMEXT_ENABLE_LIBSYS +SourceMod::ILibrarySys *sm_libsys = NULL; +#endif +#if defined SMEXT_ENABLE_PLUGINSYS +SourceMod::IPluginManager *sm_plsys = NULL; +#endif +#if defined SMEXT_ENABLE_MENUS +SourceMod::IMenuManager *sm_menus = NULL; +#endif +#if defined SMEXT_ENABLE_ADMINSYS +SourceMod::IAdminSystem *sm_adminsys = NULL; +#endif +#if defined SMEXT_ENABLE_TEXTPARSERS +SourceMod::ITextParsers *sm_text = NULL; +#endif + diff --git a/public/mms_sample_ext/sm_sdk_config.h b/public/mms_sample_ext/sm_sdk_config.h index 59f854b5..f8507575 100644 --- a/public/mms_sample_ext/sm_sdk_config.h +++ b/public/mms_sample_ext/sm_sdk_config.h @@ -1,3 +1,34 @@ +/** + * vim: set ts=4 : + * ============================================================================= + * SourceMod Extension Code for Metamod:Source + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. + * ============================================================================= + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License, version 3.0, as published by the + * Free Software Foundation. + * + * 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, see . + * + * As a special exception, AlliedModders LLC gives you permission to link the + * code of this program (as well as its derivative works) to "Half-Life 2," the + * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software + * by the Valve Corporation. You must obey the GNU General Public License in + * all respects for all other code used. Additionally, AlliedModders LLC grants + * this exception to all derivative works. AlliedModders LLC defines further + * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), + * or . + * + * Version: $Id$ + */ + #ifndef _INCLUDE_SOURCEMOD_CONFIG_H_ #define _INCLUDE_SOURCEMOD_CONFIG_H_ diff --git a/public/mms_sample_ext/stub_mm.cpp b/public/mms_sample_ext/stub_mm.cpp index f058e7da..41a16c61 100644 --- a/public/mms_sample_ext/stub_mm.cpp +++ b/public/mms_sample_ext/stub_mm.cpp @@ -11,7 +11,7 @@ * * This stub plugin is public domain. * - * Version: $Id: stub_mm.cpp 534 2007-10-30 18:22:12Z dvander $ + * Version: $Id$ */ #include diff --git a/public/mms_sample_ext/stub_mm.h b/public/mms_sample_ext/stub_mm.h index b441a52b..6071530f 100644 --- a/public/mms_sample_ext/stub_mm.h +++ b/public/mms_sample_ext/stub_mm.h @@ -11,7 +11,7 @@ * * This stub plugin is public domain. * - * Version: $Id: stub_mm.h 463 2007-10-06 17:01:51Z dvander $ + * Version: $Id$ */ #ifndef _INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_ diff --git a/public/mms_sample_ext/stub_util.cpp b/public/mms_sample_ext/stub_util.cpp index e62b4909..0ffa402b 100644 --- a/public/mms_sample_ext/stub_util.cpp +++ b/public/mms_sample_ext/stub_util.cpp @@ -1,22 +1,38 @@ -#include -#include -#include "stub_util.h" - -size_t UTIL_Format(char *buffer, size_t maxlength, const char *fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - size_t len = vsnprintf(buffer, maxlength, fmt, ap); - va_end(ap); - - if (len >= maxlength) - { - len = maxlength - 1; - buffer[len] = '\0'; - } - - return len; -} - - +/** + * vim: set ts=4 : + * ====================================================== + * Metamod:Source Stub Plugin + * Written by AlliedModders LLC. + * ====================================================== + * + * This software is provided 'as-is', without any express or implied warranty. + * In no event will the authors be held liable for any damages arising from + * the use of this software. + * + * This stub plugin is public domain. + * + * Version: $Id$ + */ + +#include +#include +#include "stub_util.h" + +size_t UTIL_Format(char *buffer, size_t maxlength, const char *fmt, ...) +{ + va_list ap; + + va_start(ap, fmt); + size_t len = vsnprintf(buffer, maxlength, fmt, ap); + va_end(ap); + + if (len >= maxlength) + { + len = maxlength - 1; + buffer[len] = '\0'; + } + + return len; +} + + diff --git a/public/mms_sample_ext/stub_util.h b/public/mms_sample_ext/stub_util.h index 5e9cd3b1..d5a68a03 100644 --- a/public/mms_sample_ext/stub_util.h +++ b/public/mms_sample_ext/stub_util.h @@ -1,3 +1,19 @@ +/** + * vim: set ts=4 : + * ====================================================== + * Metamod:Source Stub Plugin + * Written by AlliedModders LLC. + * ====================================================== + * + * This software is provided 'as-is', without any express or implied warranty. + * In no event will the authors be held liable for any damages arising from + * the use of this software. + * + * This stub plugin is public domain. + * + * Version: $Id$ + */ + #ifndef _INCLUDE_STUB_UTIL_FUNCTIONS_H_ #define _INCLUDE_STUB_UTIL_FUNCTIONS_H_ diff --git a/public/sample_ext/extension.cpp b/public/sample_ext/extension.cpp index d05a6c56..be2bfb71 100644 --- a/public/sample_ext/extension.cpp +++ b/public/sample_ext/extension.cpp @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Sample Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/public/sample_ext/extension.h b/public/sample_ext/extension.h index d8f445a4..719d36c2 100644 --- a/public/sample_ext/extension.h +++ b/public/sample_ext/extension.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Sample Extension - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/public/sample_ext/sdk/smsdk_ext.cpp b/public/sample_ext/sdk/smsdk_ext.cpp index 0c728f00..bf027ac5 100644 --- a/public/sample_ext/sdk/smsdk_ext.cpp +++ b/public/sample_ext/sdk/smsdk_ext.cpp @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/public/sample_ext/sdk/smsdk_ext.h b/public/sample_ext/sdk/smsdk_ext.h index 4702f2a2..0ee0dfa2 100644 --- a/public/sample_ext/sdk/smsdk_ext.h +++ b/public/sample_ext/sdk/smsdk_ext.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourceMod Base Extension Code - * Copyright (C) 2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under diff --git a/sourcepawn/compiler/libpawnc.rc b/sourcepawn/compiler/libpawnc.rc index f84f9c93..70784bc0 100644 --- a/sourcepawn/compiler/libpawnc.rc +++ b/sourcepawn/compiler/libpawnc.rc @@ -34,11 +34,11 @@ BEGIN BEGIN BLOCK "040904E4" BEGIN - VALUE "CompanyName", "(C)1998-2006 ITB CompuPhase, AlliedModders LLC\0" + VALUE "CompanyName", "(C)1998-2008 ITB CompuPhase, AlliedModders LLC\0" VALUE "FileDescription", VERSIONDESCRIPTION VALUE "FileVersion", SVN_FULL_VERSION VALUE "InternalName", VERSIONNAME - VALUE "LegalCopyright", "(C)1998-2006 ITB CompuPhase, AlliedModders LLC\0" + VALUE "LegalCopyright", "(C)1998-2008 ITB CompuPhase, AlliedModders LLC\0" VALUE "OriginalFilename", VERSIONNAME VALUE "ProductName", VERSIONPRODUCTNAME VALUE "ProductVersion", SVN_FULL_VERSION diff --git a/sourcepawn/compiler/svn_version.h b/sourcepawn/compiler/svn_version.h index 5692241d..fdf483d0 100644 --- a/sourcepawn/compiler/svn_version.h +++ b/sourcepawn/compiler/svn_version.h @@ -1,7 +1,7 @@ /** * vim: set ts=4 : * =============================================================== - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * =============================================================== * * This file is not open source and may not be copied without explicit diff --git a/sourcepawn/compiler/svn_version.tpl b/sourcepawn/compiler/svn_version.tpl index a0947f6d..fab83d15 100644 --- a/sourcepawn/compiler/svn_version.tpl +++ b/sourcepawn/compiler/svn_version.tpl @@ -1,7 +1,7 @@ /** * vim: set ts=4 : * =============================================================== - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * =============================================================== * * This file is not open source and may not be copied without explicit diff --git a/sourcepawn/jit/x86/jit_version.h b/sourcepawn/jit/x86/jit_version.h index 0f86cc74..a50a1a1f 100644 --- a/sourcepawn/jit/x86/jit_version.h +++ b/sourcepawn/jit/x86/jit_version.h @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourcePawn JIT - * Copyright (C)2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This file is not open source and may not be copied without explicit wriiten diff --git a/sourcepawn/jit/x86/jit_version.tpl b/sourcepawn/jit/x86/jit_version.tpl index 8f087fb3..ec873f89 100644 --- a/sourcepawn/jit/x86/jit_version.tpl +++ b/sourcepawn/jit/x86/jit_version.tpl @@ -2,7 +2,7 @@ * vim: set ts=4 : * ============================================================================= * SourcePawn JIT - * Copyright (C)2004-2007 AlliedModders LLC. All rights reserved. + * Copyright (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This file is not open source and may not be copied without explicit wriiten diff --git a/sourcepawn/jit/x86/version.rc b/sourcepawn/jit/x86/version.rc index 60a7087f..5aa4d331 100644 --- a/sourcepawn/jit/x86/version.rc +++ b/sourcepawn/jit/x86/version.rc @@ -48,7 +48,7 @@ BEGIN VALUE "FileDescription", "SourcePawn JIT/Virtual Machine" VALUE "FileVersion", SVN_FULL_VERSION VALUE "InternalName", "sourcemod" - VALUE "LegalCopyright", "Copyright (c) 2004-2007, AlliedModders LLC" + VALUE "LegalCopyright", "Copyright (c) 2004-2008, AlliedModders LLC" VALUE "OriginalFilename", "sourcepawn.jit.x86.dll" VALUE "ProductName", "SourcePawn JIT" VALUE "ProductVersion", SVN_FULL_VERSION