-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update plugin confoglcompmod. (#538)
* Moved plugin confoglcompmod to archive * Add updated plugin 'confoglcompmod' * Extra module disabled * Build plugin confoglcompmod
- Loading branch information
Showing
56 changed files
with
7,645 additions
and
132 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
#pragma semicolon 1 | ||
|
||
#if defined(AUTOVERSION) | ||
#include "version.inc" | ||
#else | ||
#define PLUGIN_VERSION "2.2.4" | ||
#endif | ||
|
||
#if !defined(DEBUG_ALL) | ||
#define DEBUG_ALL 0 | ||
#endif | ||
|
||
#include <sourcemod> | ||
#include <sdktools> | ||
#include <sdkhooks> | ||
#include <left4dhooks> | ||
#include <colors> | ||
#include "includes/constants.sp" | ||
#include "includes/functions.sp" | ||
#include "includes/debug.sp" | ||
#include "includes/survivorindex.sp" | ||
#include "includes/configs.sp" | ||
#include "includes/customtags.inc" | ||
|
||
#include "modules/MapInfo.sp" | ||
#include "modules/WeaponInformation.sp" | ||
#include "modules/ReqMatch.sp" | ||
#include "modules/CvarSettings.sp" | ||
#include "modules/GhostTank.sp" | ||
#include "modules/WaterSlowdown.sp" | ||
#include "modules/UnreserveLobby.sp" | ||
//#include "modules/GhostWarp.sp" | ||
#include "modules/UnprohibitBosses.sp" | ||
#include "modules/PasswordSystem.sp" | ||
#include "modules/BotKick.sp" | ||
//#include "modules/EntityRemover.sp" | ||
#include "modules/ScoreMod.sp" | ||
#include "modules/FinaleSpawn.sp" | ||
#include "modules/BossSpawning.sp" | ||
//#include "modules/WeaponCustomization.sp" | ||
#include "modules/l4dt_forwards.sp" | ||
#include "modules/ClientSettings.sp" | ||
#include "modules/ItemTracking.sp" | ||
//#include "modules/SpectatorHud.sp" | ||
|
||
public Plugin:myinfo = | ||
{ | ||
name = "Confogl's Competitive Mod", | ||
author = "Confogl Team", | ||
description = "A competitive mod for L4D2", | ||
version = PLUGIN_VERSION, | ||
url = "http://confogl.googlecode.com/" | ||
} | ||
|
||
public OnPluginStart() | ||
{ | ||
Debug_OnModuleStart(); | ||
Configs_OnModuleStart(); | ||
MI_OnModuleStart(); | ||
SI_OnModuleStart(); | ||
WI_OnModuleStart(); | ||
|
||
RM_OnModuleStart(); | ||
|
||
CVS_OnModuleStart(); | ||
PS_OnModuleStart(); | ||
UL_OnModuleStart(); | ||
|
||
//ER_OnModuleStart(); | ||
//GW_OnModuleStart(); | ||
WS_OnModuleStart(); | ||
GT_OnModuleStart(); | ||
UB_OnModuleStart(); | ||
|
||
BK_OnModuleStart(); | ||
|
||
SM_OnModuleStart(); | ||
FS_OnModuleStart(); | ||
BS_OnModuleStart(); | ||
//WC_OnModuleStart(); | ||
CLS_OnModuleStart(); | ||
IT_OnModuleStart(); | ||
//SH_OnModuleStart(); | ||
|
||
AddCustomServerTag("confogl", true); | ||
} | ||
|
||
public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max) | ||
{ | ||
RM_APL(); | ||
Configs_APL(); | ||
MI_APL(); | ||
RegPluginLibrary("confogl"); | ||
} | ||
|
||
public OnPluginEnd() | ||
{ | ||
CVS_OnModuleEnd(); | ||
PS_OnModuleEnd(); | ||
//ER_OnModuleEnd(); | ||
SM_OnModuleEnd(); | ||
|
||
WS_OnModuleEnd(); | ||
RemoveCustomServerTag("confogl"); | ||
} | ||
|
||
public OnGameFrame() | ||
{ | ||
WS_OnGameFrame(); | ||
} | ||
|
||
public OnMapStart() | ||
{ | ||
MI_OnMapStart(); | ||
RM_OnMapStart(); | ||
|
||
SM_OnMapStart(); | ||
BS_OnMapStart(); | ||
IT_OnMapStart(); | ||
} | ||
|
||
public OnMapEnd() | ||
{ | ||
MI_OnMapEnd(); | ||
WI_OnMapEnd(); | ||
PS_OnMapEnd(); | ||
WS_OnMapEnd(); | ||
} | ||
|
||
public OnConfigsExecuted() | ||
{ | ||
CVS_OnConfigsExecuted(); | ||
} | ||
|
||
public OnClientDisconnect(client) | ||
{ | ||
RM_OnClientDisconnect(client); | ||
//GT_OnClientDisconnect(client); | ||
//SH_OnClientDisconnect(client); | ||
} | ||
|
||
public OnClientPutInServer(client) | ||
{ | ||
RM_OnClientPutInServer(); | ||
UL_OnClientPutInServer(); | ||
PS_OnClientPutInServer(client); | ||
} | ||
|
||
/*public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon) | ||
{ | ||
if(GW_OnPlayerRunCmd(client, buttons)) | ||
{ | ||
return Plugin_Handled; | ||
} | ||
return Plugin_Continue; | ||
}*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
/* * | ||
* ============================================================================= | ||
* Confogl.inc | ||
* Confogl (C)2011 Confogl Team | ||
* ============================================================================= | ||
* | ||
* This file is part of the Confogl competitive L4D2 plugin suite. | ||
* | ||
* 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 <http://www.gnu.org/licenses/>. | ||
* | ||
* As a special exception, Confogl Team 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, Confogl Team grants | ||
* this exception to all derivative works. Confogl defines further | ||
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), | ||
* or <http://www.sourcemod.net/license.php>. | ||
* | ||
*/ | ||
#if defined _confogl_Included | ||
#endinput | ||
#endif | ||
#define _confogl_Included | ||
|
||
/* Forwards */ | ||
|
||
/** | ||
* @brief Called when matchmode is fully loaded, before map restart. | ||
* @remarks Called just before confogl_plugins.cfg executes | ||
* | ||
* @noreturn | ||
*/ | ||
forward void LGO_OnMatchModeLoaded(); | ||
|
||
/** | ||
* @brief Called when matchmode is un-loaded, before map restart. | ||
* @remarks Plugins are unloaded immediately after this call finishes | ||
* | ||
* @noreturn | ||
*/ | ||
forward void LGO_OnMatchModeUnloaded(); | ||
|
||
/* NATIVES */ | ||
|
||
/** | ||
* @brief Tells if a confogl match is currently running | ||
* @remarks Formerly IsPluginEnabled() internally | ||
* | ||
* @return True if matchmode is loaded, false otherwise | ||
*/ | ||
native bool LGO_IsMatchModeLoaded(); | ||
|
||
/** | ||
* @brief Build a filepath relative to the current running config. | ||
* @remarks Should produce a path in cfg/cfgogl/CONFIG/ or addons/sourcemod/configs/confogl | ||
* | ||
* @param buffer Buffer to write the path to | ||
* @param maxlength Buffer size | ||
* @param sFileName Name of the file to look for in the config | ||
* @noreturn | ||
*/ | ||
native void LGO_BuildConfigPath(char[] buffer, int maxlength, const char[] sFileName); | ||
|
||
/** | ||
* @brief Execute a cfg file for the current config | ||
* @remarks Should execute the named .cfg in cfg/ or cfg/cfgogl/CURRENT_CONFIG/ | ||
* | ||
* @param sFileName Name of the cfg file to execute | ||
* @noreturn | ||
*/ | ||
native void LGO_ExecuteConfigCfg(const char[] sFileName); | ||
|
||
/** | ||
* @brief Tells if map data is available | ||
* @remarks Map data should be available when any map is loaded, after OnMapStart() | ||
* | ||
* @return True if map data is available, false if it is not. | ||
*/ | ||
native bool LGO_IsMapDataAvailable(); | ||
|
||
/** | ||
* @brief Get an Int value from the MapInfo keyvalues for the current map with a specific key | ||
* @remarks Mapinfo keyvalues is used to store static data about maps | ||
* | ||
* @param key Key to read the value from | ||
* @param defvalue Default value to return if key is not found (default 0) | ||
* @return Integer value for given key, or defvalue if key is not found | ||
*/ | ||
native int LGO_GetMapValueInt(const char[] key, const int defvalue = 0); | ||
|
||
/** | ||
* @brief Get a Float value from the MapInfo keyvalues for the current map with a specific key | ||
* @remarks Mapinfo keyvalues is used to store static data about maps | ||
* | ||
* @param key Key to read the value from | ||
* @param defvalue Default value to return if key is not found (default 0.0) | ||
* @return Float value for given key, or defvalue if key is not found | ||
*/ | ||
native float LGO_GetMapValueFloat(const char[] key, const float defvalue = 0.0); | ||
|
||
/** | ||
* @brief Get a Vector from the MapInfo keyvalues for the current map with a specific key | ||
* @remarks Mapinfo keyvalues is used to store static data about maps | ||
* | ||
* @param key Key to read the value from | ||
* @param vector Vector to store the result in | ||
* @param defvalue Default value to use if key is not found (default NULL_VECTOR) | ||
* @noreturn | ||
*/ | ||
native void LGO_GetMapValueVector(const char[] key, float vector[3], const float defvalue[3] = NULL_VECTOR); | ||
|
||
/** | ||
* @brief Get a String from the MapInfo keyvalues for the current map with a specific key | ||
* @remarks Mapinfo keyvalues is used to store static data about maps | ||
* | ||
* @param key Key to read the value from | ||
* @param value String to store the result in | ||
* @param maxlength Maximum length to write to the value String buffer | ||
* @param defvalue Default value to use if key is not found (default "") | ||
* @noreturn | ||
*/ | ||
native void LGO_GetMapValueString(const char[] key, char[] value, int maxlength, const char[] defvalue = ""); | ||
|
||
/** | ||
* @brief Copy a Subsection from the MapInfo keyvalues for the current map | ||
* @remarks Mapinfo keyvalues is used to store static data about maps | ||
* | ||
* @param kv KeyValues Handle to copy to | ||
* @param section Name of the section to copy | ||
* @noreturn | ||
*/ | ||
native void LGO_CopyMapSubsection(KeyValues kv, const char[] section); | ||
|
||
public SharedPlugin __pl_confogl = | ||
{ | ||
name = "confogl", | ||
file = "confoglcompmod.smx", | ||
#if defined REQUIRE_PLUGIN | ||
required = 1, | ||
#else | ||
required = 0, | ||
#endif | ||
}; | ||
|
||
#if !defined REQUIRE_PLUGIN | ||
public void __pl_confogl_SetNTVOptional() | ||
{ | ||
MarkNativeAsOptional("LGO_BuildConfigPath"); | ||
MarkNativeAsOptional("LGO_ExecuteConfigCfg"); | ||
MarkNativeAsOptional("LGO_IsMapDataAvailable"); | ||
MarkNativeAsOptional("LGO_GetMapValueInt"); | ||
MarkNativeAsOptional("LGO_GetMapValueFloat"); | ||
MarkNativeAsOptional("LGO_GetMapValueVector"); | ||
MarkNativeAsOptional("LGO_GetMapValueString"); | ||
MarkNativeAsOptional("LGO_CopyMapSubsection"); | ||
MarkNativeAsOptional("LGO_IsMatchModeLoaded"); | ||
} | ||
#endif |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.