Added GetGameTickCount native (bug 5209, r=psychonic).
Added GetGameTickCount native (
bug 5209, r=psychonic).
1.1 --- a/AMBuildScript Tue May 29 20:17:57 2012 -0400
1.2 +++ b/AMBuildScript Wed May 30 14:13:43 2012 +0100
1.3 @@ -43,7 +43,7 @@
1.4 'HL2SDKOBVALVE': 'hl2sdk-ob-valve',
1.5 'HL2SDKL4D': 'hl2sdk-l4d',
1.6 'HL2SDKL4D2': 'hl2sdk-l4d2',
1.7 - 'MYSQL5': 'mysql-5.0'
1.8 +# 'MYSQL5': 'mysql-5.0'
1.9 }
1.10
1.11 if AMBuild.target['platform'] != 'darwin':
1.12 @@ -403,7 +403,7 @@
1.13 ['extensions', 'cstrike', 'AMBuilder'],
1.14 ['extensions', 'curl', 'AMBuilder'],
1.15 ['extensions', 'geoip', 'AMBuilder'],
1.16 - ['extensions', 'mysql', 'AMBuilder'],
1.17 +# ['extensions', 'mysql', 'AMBuilder'],
1.18 ['extensions', 'sdktools', 'AMBuilder'],
1.19 ['extensions', 'topmenus', 'AMBuilder'],
1.20 ['extensions', 'updater', 'AMBuilder'],
2.1 --- a/core/smn_halflife.cpp Tue May 29 20:17:57 2012 -0400
2.2 +++ b/core/smn_halflife.cpp Wed May 30 14:13:43 2012 +0100
2.3 @@ -87,6 +87,11 @@
2.4 return sp_ftoc(gpGlobals->curtime);
2.5 }
2.6
2.7 +static cell_t GetGameTickCount(IPluginContext *pContext, const cell_t *params)
2.8 +{
2.9 + return gpGlobals->tickcount;
2.10 +}
2.11 +
2.12 static cell_t CreateFakeClient(IPluginContext *pContext, const cell_t *params)
2.13 {
2.14 if (!g_SourceMod.IsMapRunning())
2.15 @@ -524,6 +529,7 @@
2.16 {"GetGameDescription", GetGameDescription},
2.17 {"GetGameFolderName", GetGameFolderName},
2.18 {"GetGameTime", GetGameTime},
2.19 + {"GetGameTickCount", GetGameTickCount},
2.20 {"GetRandomFloat", GetRandomFloat},
2.21 {"GetRandomInt", GetRandomInt},
2.22 {"IsDedicatedServer", IsDedicatedServer},
3.1 --- a/plugins/include/halflife.inc Tue May 29 20:17:57 2012 -0400
3.2 +++ b/plugins/include/halflife.inc Wed May 30 14:13:43 2012 +0100
3.3 @@ -128,6 +128,13 @@
3.4 */
3.5 native Float:GetGameTime();
3.6
3.7 +/**
3.8 + * Returns the game's internal tick count.
3.9 + *
3.10 + * @return Game tick count.
3.11 + */
3.12 +native GetGameTickCount();
3.13 +
3.14 /**
3.15 * Returns the game description from the mod.
3.16 *
4.1 --- a/tools/buildbot/PackageScript Tue May 29 20:17:57 2012 -0400
4.2 +++ b/tools/buildbot/PackageScript Wed May 30 14:13:43 2012 +0100
4.3 @@ -224,7 +224,7 @@
4.4 AddNormalLibrary('sourcemod.logic', 'bin')
4.5 AddNormalLibrary('sourcepawn.jit.x86', 'bin')
4.6 AddNormalLibrary('geoip.ext', 'extensions')
4.7 -AddNormalLibrary('dbi.mysql.ext', 'extensions')
4.8 +#AddNormalLibrary('dbi.mysql.ext', 'extensions')
4.9 AddNormalLibrary('dbi.sqlite.ext', 'extensions')
4.10
4.11 AddNormalLibrary('game.cstrike.ext.2.ep2v', 'extensions')