1.1 --- a/plugins/include/halflife.inc Mon Jul 29 10:03:18 2013 -0400
1.2 +++ b/plugins/include/halflife.inc Sun Jul 21 11:53:56 2013 -0400
1.3 @@ -64,6 +64,28 @@
1.4 DialogType_AskConnect /**< ask the client to connect to a specified IP */
1.5 };
1.6
1.7 +enum EngineVersion
1.8 +{
1.9 + Engine_Unknown, /**< Could not determine the engine version */
1.10 + Engine_Original, /**< Original Source Engine (used by The Ship) */
1.11 + Engine_SourceSDK2006, /**< Episode 1 Source Engine (second major SDK) */
1.12 + Engine_SourceSDK2007, /**< Orange Box Source Engine (third major SDK) */
1.13 + Engine_Left4Dead, /**< Left 4 Dead */
1.14 + Engine_DarkMessiah, /**< Dark Messiah Multiplayer (based on original engine) */
1.15 + Engine_Left4Dead2 = 7, /**< Left 4 Dead 2 */
1.16 + Engine_AlienSwarm, /**< Alien Swarm (and Alien Swarm SDK) */
1.17 + Engine_BloodyGoodTime, /**< Bloody Good Time */
1.18 + Engine_EYE, /**< E.Y.E Divine Cybermancy */
1.19 + Engine_Portal2, /**< Portal 2 */
1.20 + Engine_CSGO, /**< Counter-Strike: Global Offensive */
1.21 + Engine_CSS, /**< Counter-Strike: Source */
1.22 + Engine_DOTA, /**< Dota 2 */
1.23 + Engine_HL2DM, /**< Half-Life 2 Deathmatch */
1.24 + Engine_DODS, /**< Day of Defeat: Source */
1.25 + Engine_TF2, /**< Team Fortress 2 */
1.26 + Engine_NuclearDawn /**< Nuclear Dawn */
1.27 +};
1.28 +
1.29 #define INVALID_ENT_REFERENCE 0xFFFFFFFF
1.30
1.31 /**
1.32 @@ -264,9 +286,20 @@
1.33 *
1.34 * @return SOURCE_SDK version code.
1.35 */
1.36 +#pragma deprecated See GetEngineVersion()
1.37 native GuessSDKVersion();
1.38
1.39 /**
1.40 + * Gets the engine version that the currently-loaded SM core was compiled against.
1.41 + *
1.42 + * The engine version values are not guaranteed to be in any particular order,
1.43 + * and should only be compared by (in)equality.
1.44 + *
1.45 + * @return An EngineVersion value.
1.46 + */
1.47 +native EngineVersion:GetEngineVersion();
1.48 +
1.49 +/**
1.50 * Prints a message to a specific client in the chat area.
1.51 *
1.52 * @param client Client index.