David Anderson
eaea3c927d
Update upstream AMTL as a submodule.
2015-03-08 00:24:03 -08:00
David Anderson
715a51d01f
Merge pull request #285 from alliedmodders/frames
...
Implement a new stack and error handling model for the SourcePawn VM.
2015-03-04 23:45:59 -08:00
David Anderson
a1afa23bc4
Implement a new stack and error handling model for the SourcePawn VM.
...
This has three major changes to SourcePawn. First, the API now supports the concept of "exceptions". The exception state is a global property of an instance of the SourcePawn VM. Exceptions can be caught or suppressed. Many places in SourceMod have been updated to check exceptions instead of errors.
The new API obsoletes major parts of the embedder API - all but one method of invoking functions is obsoleted, and the debug interface has been scrapped. Extensions using the native API will not be affected, however, ThrowNativeError has been deprecated in favor of ReportError.
Second, the SourcePawn concept of a "stack" has been unified at the API level. A stack frame iterator now iterates over all SourcePawn invocations, rather than the topmost plugin. This makes error handling more consistent and removes another dependency on context-per-plugin.
Finally, the implementation of stack frames has been changed dramatically. Rather than maintain a complicated and expensive return pointer stack, we now rely on the implicit one provided by the CPU. The stack frame iterator now walks the JIT stack directly. This removes many unnecessary bookkeeping instructions from the generated code, in particular making the CALL instruction 40% faster.
These changes required some fair surgery to the JIT. Its error paths are now slightly more complicated, as they have to throw an exception rather than return an error code. In addition, any path that can throw an exception is now responsible for creating an "exit frame", which exists to tell the stack frame iterator about transitions from the JIT to the VM.
2015-03-04 23:45:30 -08:00
Nicholas Hastings
fdc3c0791e
Merge pull request #266 from alliedmodders/tfconds-reducks
...
Replace frameloop for player condition checks in TF2 ext with sendproxies (r=All of the KyleS).
2015-02-27 04:43:15 -08:00
Nicholas Hastings
5f7e800444
Use new IVEngineServer::GetIServer to get IServer* on Insurgency.
2015-02-22 15:16:26 -05:00
Nicholas Hastings
70be2941fe
All of the KyleS.
2015-02-18 22:42:06 -05:00
Nicholas Hastings
9ffbac4f4e
Simplified code. (We don't need m_Shared).
2015-02-18 18:44:31 -05:00
Nicholas Hastings
684b59a921
Don't fire forwards if client isn't ingame.
2015-02-18 12:33:37 -08:00
Nicholas Hastings
e8765c5d3d
Move m_CondOffset initialization to ctor.
2015-02-18 12:32:45 -08:00
Nicholas Hastings
ac530a4ce0
Fix passing incorrect cond# to forwards for CondEx/2/3 fields.
2015-02-18 12:09:17 -08:00
Nicholas Hastings
589482736f
Merge pull request #247 from AnthonyIacono/normalshook-upgrade
...
Improvements for NormalSHook functionality (r=psychonic).
2015-02-18 14:43:33 -05:00
Nicholas Hastings
c4a58b1c95
Make sure processing and fwd calls happen on main thread.
2015-02-18 05:35:58 -08:00
Nicholas Hastings
6bc2d20177
Mess with some array sizes.
2015-02-08 20:30:15 -05:00
Nicholas Hastings
350eb462ca
Rewrite TF2 extension's player conditions handling to remove dirty frame loop.
2015-02-08 20:03:07 -05:00
Anthony
3558418ed7
Initializing soundEntry and using something safer than strcpy
2015-02-05 11:12:33 -08:00
Nicholas Hastings
10c62dc0c0
Fix crash when creating and destroying a TopMenu without map change (bug 6303).
2015-02-04 09:57:04 -08:00
Ruben Gonzalez
213e7ced8c
Initial CSGO GetWeaponPrice fixes
2015-01-31 12:44:18 -05:00
Nicholas Hastings
e2aab2ab10
Don't allow plugins to block LevelInit (wtf).
2015-01-27 18:01:30 -08:00
Anthony
ee0575bbb0
Adding EmitSoundEntry() for engines >= portal 2
2015-01-21 10:33:29 -08:00
Kyle Sanderson
e3349116cb
Establish a default timeout for MySQL connectivity.
2015-01-21 05:58:45 -08:00
Anthony
cddae6f456
Upgrading the normal sound hook for games like CS:GO
2015-01-20 15:08:57 -08:00
Nicholas Hastings
aa38226337
Fix SDKHooks causing crash on plugin load/unload or player connect/disconnect if missing gamedata.
2014-12-30 20:56:28 -05:00
Nicholas Hastings
7f0edd441e
Add offset printing to datamap dumps.
2014-12-30 08:36:35 -05:00
Nicholas Hastings
0d67bcc5ba
Add null-check on serverclass in gamerules lookup.
2014-12-14 15:21:54 -05:00
Nicholas Hastings
88cb74213c
Add support for getting g_pGameRules without a byte signature / symbol.
2014-12-13 16:35:32 -05:00
Nicholas Hastings
939b10bd8e
Refactor SDKTools to not expose gamerules ptr ptr outside of vglobals.cpp.
2014-12-13 15:48:51 -05:00
David Anderson
61bf7de101
Revert adminmenu API changes.
2014-12-12 10:10:46 -08:00
Nicholas Hastings
09060c265f
Convert TFHoliday values to pubvars.
2014-12-09 20:21:24 -05:00
Nicholas Hastings
e7e43e38a5
Merge pull request #210 from alliedmodders/more-clientprefs-newauth
...
Fix clientprefs IsAuthIdConnected (again) (r=asherkin).
2014-11-26 18:55:57 -05:00
Nicholas Hastings
b0ceac9d74
Fix clientprefs IsAuthIdConnected (again).
2014-11-22 10:00:40 -08:00
Nicholas Hastings
f38fd6a550
Merge pull request #205 from alliedmodders/tf2condex3
...
Add support for TF2 player conditions above >= 96 (r=asherkin).
2014-11-19 17:15:56 -05:00
Nicholas Hastings
d3a4c972e2
Add static_assert on ConBitVecAndNot hack so it gets updated on next cond count change.
2014-11-15 11:31:18 -05:00
Nicholas Hastings
1cf43b4ec2
Fix off-by-one error with FindNextSetBit in cond checks.
2014-11-15 11:22:43 -05:00
Nicholas Hastings
849df7895b
Update TF2 extension for new m_nPlayerCondEx3 player conditions field.
2014-11-15 10:08:07 -05:00
Nicholas Hastings
ea86eee74e
Fix SetAuthIdCookie's IsAuthIdConnect function's issues with mixed auth id types.
2014-11-15 09:34:49 -05:00
Nicholas Hastings
0d24804839
Merge pull request #174 from alliedmodders/eliminate-more-gamedata
...
Eliminate the need for more gamedata on some games (r=asherkin).
2014-11-08 12:52:53 -05:00
David Anderson
b97335ccb0
Port TopMenus to transitional syntax.
2014-10-30 19:20:33 -07:00
Nicholas Hastings
f0dd129344
Eliminate need for FindEntityByClassname gamedata on sdk2013 and soon css/dods/hl2dm (already on tf2).
2014-10-30 19:25:26 -04:00
Nicholas Hastings
749701014d
Eliminate need for sv gamedata on sdk2013 and soon css/dods/hl2dm (already on tf2).
2014-10-30 19:25:13 -04:00
Nicholas Hastings
10cee734dc
Eliminate need for s_pTempEnts gamedata on sdk2013 and soon css/dods/hl2dm (already on tf2).
2014-10-30 19:24:53 -04:00
David Anderson
76d26044f6
Fix build.
2014-10-21 21:51:15 -07:00
David Anderson
75335dbef3
Merge pull request #156 from Bara20/patch-2
...
Fix undefined symbol: clock_gettime.
2014-10-21 12:42:18 -07:00
Nicholas Hastings
77dc5ac7ed
Fix build.
2014-10-14 17:47:44 -04:00
Nicholas Hastings
37c29775d4
Fix OnTakeDamage_Alive gamedata lookup in SDKHooks.
2014-10-14 17:36:55 -04:00
Nicholas Hastings
570570f7a0
Fix regression causing inconsistencies in clientprefs auth id handling (r=VoiDeD).
2014-09-12 13:04:37 -07:00
Nicholas Hastings
e4569cb2b9
Disable RTTI for more game-agnostic extensions.
2014-09-11 17:41:25 -07:00
Nicholas Hastings
47450bb98c
Disable RTTI for game-agnostic extensions
2014-09-11 17:28:24 -07:00
Bara
d493bc701d
Fix undefined symbol: clock_gettime
...
[SM] Extension dbi.mysql.ext.so failed to load: /home/csgo/csgo/addons/sourcemod/extensions/dbi.mysql.ext.so: undefined symbol: clock_gettime
2014-09-12 01:52:20 +02:00
Nicholas Hastings
6d7115d62f
Update the missed steamid nullcheck in clientprefs
2014-09-09 18:04:39 -07:00
Nicholas Hastings
9e6fcc7673
Make OnClientAuthorized use Steam2 ids where available
2014-09-09 17:43:01 -07:00
David Anderson
448c55c0f2
Fix DBI after AMTL changes.
2014-09-03 21:11:17 -07:00
Nicholas Hastings
be55587d70
Add OnTakeDamage_Alive hook support to SDKHooks (bug=6249).
2014-09-03 17:45:34 -04:00
Ryan Stecker
cae1d0dec1
Don't override hook result in BlockedPost.
2014-09-02 13:01:18 -05:00
Ryan Stecker
88c6d3d9a7
Merge remote-tracking branch 'upstream/master' into sdkhooks-blocked
2014-09-02 00:04:54 -05:00
David Anderson
9267d0c803
Eliminate Newborn/NoAddRef (bug 5907, r=ds).
2014-08-22 22:50:25 -07:00
Ryan Stecker
d873b20573
Fix typo related to invalid regex handle errors.
2014-08-14 12:24:51 -05:00
Ryan Stecker
601aac440e
Implement SDKHook_Blocked and SDKHook_BlockedPost.
2014-08-01 21:35:41 -05:00
Nicholas Hastings
8d5fe316e0
Merge pull request #114 from VoiDeD/tf2-removewearable
...
Implement TF2_RemoveWearable native (r=psychonic).
2014-07-30 18:43:34 -04:00
Kyle Sanderson
ab72841704
Rename SDKHooks function and variable to be friendlier.
2014-07-30 15:34:51 -07:00
Ryan Stecker
4a400d9569
Implement TF2_RemoveWearable native.
2014-07-29 20:31:27 -05:00
Kyle Sanderson
ba0406930d
Pre-allocate 8 elements to skip trivial reallocations near the beginning of the vectors life.
2014-07-29 02:48:13 -07:00
Kyle Sanderson
be79dee6e0
Store only the callback as per VoiDeD, re-eval if HookList changes.
2014-07-29 02:46:49 -07:00
Kyle Sanderson
97610edda4
HackFix: Mimic forwardsys style of pawn calling.
2014-07-28 15:51:34 -07:00
Peace-Maker
1181144e57
Fix regression. SDKHook_ReloadPost never firing
...
The switch to vtable hooks typo'd the ReloadPost hooks.
2014-07-16 20:40:52 +02:00
Ruben Gonzalez
9e1fef9775
Update TerminateRound code and gamedata for update.
2014-07-11 09:18:47 -04:00
Nicholas Hastings
ffa1887c48
Merge pull request #65 from powerlord/master
...
New functions for SDKTools to get information from game_sound files (r=psychonic).
2014-07-04 17:17:00 -04:00
Ross Bemrose
966841afbd
Make sure the edict isn't free.
...
return GetParametersForSoundEx's return value instead of always true.
2014-07-03 14:13:36 -04:00
Ross Bemrose
e1d4ed0e34
Fixed overwriting the same copy/pasted line twice instead of once per new native.
2014-07-03 13:19:19 -04:00
Nicholas Hastings
3254f6f362
Switch TF2 to use IVEngineServer::GetIServer in SDKTools to find IServer ptr.
2014-07-03 12:26:52 -04:00
Ross Bemrose
d25ab6349c
Commit new version of bug 5942: New functions for SDKTools to get information from game_sound files.
2014-07-03 10:20:53 -04:00
Nicholas Hastings
eeba5b93c5
Update CStrike extension CSWeaponDrop to use Vector overload on CS:GO.
2014-07-02 10:08:56 -04:00
Peace-Maker
909c6ec594
Refresh sorting of topmenu after (re)LoadTopMenuConfig (bug 6032, r=psychonic).
2014-06-29 21:07:55 -04:00
Nicholas Hastings
bbdf40160c
Add missing thisptr to call.
2014-06-23 19:24:27 -04:00
Nicholas Hastings
de0f49248d
Update TF2_IsHolidayActive native to virtually call gamerules IsHolidayActive.
2014-06-23 16:23:49 -04:00
Nicholas Hastings
fe485836f1
Remove redundant code.
2014-06-19 23:48:15 -04:00
Nicholas Hastings
1daf629a42
Remove dead variable.
2014-06-19 23:34:35 -04:00
Nicholas Hastings
151c6d246e
Switch TF2 extension to hook CTFGameRules::IsHolidayActive for holiday forward (bug 6137).
2014-06-19 23:22:47 -04:00
Nicholas Hastings
58158ce607
Merge pull request #40 from alliedmodders/fix-invalid-string-index
...
Fix FindStringIndex native not returning INVALID_STRING_INDEX when string not found (bug 6144, r=DS).
2014-06-19 14:40:16 -04:00
Nicholas Hastings
291ef6fdc4
Fix FindStringIndex native not returning INVALID_STRING_INDEX when string not found (bug 6144).
2014-06-19 11:40:01 -04:00
Nicholas Hastings
75254bbf25
Update SDKTools entity output functions to use core's GetEntityClassname instead of own.
2014-06-19 11:27:26 -04:00
Nicholas Hastings
e95309a603
Add early-exit in entity output detour if entity has no classname.
2014-06-19 00:33:54 -04:00
Kyle Sanderson
69cb941fa4
Merge pull request #25 from KyleSanderson/kylepreds
...
Replace SourceHook list usages in clientprefs with AMTL.
2014-06-12 15:42:30 -07:00
Nicholas Hastings
e7870da5ff
Add ifdef section notes on endifs.
2014-06-11 23:37:02 -04:00
Nicholas Hastings
a697e81427
Use updated IServerTools iface on TF2 for getting tempent list and FindEntityByClassname.
2014-06-11 22:44:42 -04:00
Kyle Sanderson
695fc802a9
Replace SourceHook list usages in clientprefs with AMTL.
2014-06-04 21:49:48 -07:00
Kyle Sanderson
975fc93e1f
Replace SourceHook list usages in tf with AMTL.
2014-06-04 17:36:53 -07:00
Kyle Sanderson
6c37a5d9f3
Replace SourceHook list usages in cstrike with AMTL.
2014-06-04 17:36:28 -07:00
David Anderson
abdf7d5b07
Port build scripts to the new project API.
2014-05-31 19:56:42 -07:00
David Anderson
2e89d91a86
Switch build infrastructure to Git.
2014-05-25 01:53:58 -07:00
Kyle Sanderson
365da7fef6
GCC build fix.
2014-05-20 20:33:50 -07:00
Nicholas Hastings
61b6a32631
Fix crash in ReconnectClient and Inactivate client when IServer ptr is null (bug 6122, r=asherkin).
...
--HG--
extra : amend_source : a38ac59091e43118d61b9c3eda30dece4190992e
2014-05-15 10:49:32 -04:00
Nicholas Hastings
b4ff034ac2
Fix passing invalid ent to OnEntity forwards (bug 6119, r=KyleS).
...
--HG--
extra : rebase_source : f5477d7d36ef579c40b0547389e8eccaf129f69e
2014-05-10 22:21:42 -04:00
Nicholas Hastings
6b27a7fe46
Consolidate duplicate OnEntityCreated logic (bug 6119, r=KyleS).
...
--HG--
extra : rebase_source : b0f563081c5d98c3fbc2769ee89e3ce0ec093624
2014-05-10 22:21:42 -04:00
Nicholas Hastings
adc9569e23
Fix clients being invalid when passed to OnEntityDestroyed (bug 6119, r=KyleS).
...
--HG--
extra : rebase_source : 546168635b7e7cd8f8c4302858aa258025444dfd
2014-05-10 22:21:38 -04:00
Peace-Maker
e9b4a6e96c
Add DisplayTopMenuCategory native (bug 6033, r=dvander).
2014-05-09 12:32:49 -07:00
Peace-Maker
530078b3ae
Add ability to disable TopMenu Title Caching (bug 6034, r=dvander).
2014-05-09 12:30:52 -07:00
Kyle Sanderson
55b77a1925
Return the 'd' to ClientPrefs::AreClientCookiesPening (r=asherkin).
2014-05-09 09:34:29 -07:00
Nicholas Hastings
0513f93f9d
Add PrepSDKCall_SetAddress and Address support to PrepSDKCall_SetFromConf (bug 5261, r=asherkin).
2014-05-07 12:58:16 -04:00
Kyle Sanderson
b5decd8a50
Build Fix.
2014-05-06 18:48:53 -07:00
Kyle Sanderson
b1901da79f
Unify Maximum supported clients, raised SDKTools limit (bug 5964, r=psychonic).
2014-05-06 18:40:35 -07:00
Peace-Maker
cec703a059
Change hook prototype of GroundEntChanged to include void* parameter (bug 6050, r=psychonic).
2014-05-05 11:40:42 -04:00
Scott Ehlert
ecec7dbef3
Deduplicate a number of files used by extensions by moving them to the public directory (bug 5341, r=psychonic).
...
These files include smsdk_ext.cpp, smsdk_ext.h, sm_memtable.h, CDetour/*, and asm/*.
The smsdk_config.h file for each extension has also been moved out of the 'sdk' directory into its parent.
--HG--
rename : extensions/bintools/sdk/smsdk_config.h => extensions/bintools/smsdk_config.h
rename : extensions/clientprefs/sdk/smsdk_config.h => extensions/clientprefs/smsdk_config.h
rename : extensions/cstrike/sdk/smsdk_config.h => extensions/cstrike/smsdk_config.h
rename : extensions/curl/sdk/smsdk_config.h => extensions/curl/smsdk_config.h
rename : extensions/geoip/sdk/smsdk_config.h => extensions/geoip/smsdk_config.h
rename : extensions/mysql/sdk/smsdk_config.h => extensions/mysql/smsdk_config.h
rename : extensions/regex/sdk/smsdk_config.h => extensions/regex/smsdk_config.h
rename : extensions/sdkhooks/sdk/smsdk_config.h => extensions/sdkhooks/smsdk_config.h
rename : extensions/sdktools/sdk/smsdk_config.h => extensions/sdktools/smsdk_config.h
rename : extensions/sqlite/sdk/smsdk_config.h => extensions/sqlite/smsdk_config.h
rename : extensions/structs/sdk/smsdk_config.h => extensions/structs/smsdk_config.h
rename : extensions/tf2/sdk/smsdk_config.h => extensions/tf2/smsdk_config.h
rename : extensions/topmenus/sdk/smsdk_config.h => extensions/topmenus/smsdk_config.h
rename : extensions/updater/sdk/smsdk_config.h => extensions/updater/smsdk_config.h
rename : extensions/sdktools/CDetour/detourhelpers.h => public/CDetour/detourhelpers.h
rename : extensions/sdktools/CDetour/detours.cpp => public/CDetour/detours.cpp
rename : extensions/sdktools/CDetour/detours.h => public/CDetour/detours.h
rename : extensions/sdktools/asm/asm.c => public/asm/asm.c
rename : extensions/sdktools/asm/asm.h => public/asm/asm.h
rename : public/sample_ext/sdk/smsdk_config.h => public/sample_ext/smsdk_config.h
rename : core/logic/sm_memtable.h => public/sm_memtable.h
rename : public/sample_ext/sdk/smsdk_ext.cpp => public/smsdk_ext.cpp
rename : public/sample_ext/sdk/smsdk_ext.h => public/smsdk_ext.h
2014-04-23 21:19:28 -05:00
Nicholas Hastings
63451b7b6b
Update for hl2sdk-nd changes.
2014-04-20 12:00:04 -04:00
Powerlord
5efb5068cd
Add new TF2_IsHolidayActive native to TF2 Ext (bug 6095, r=psychonic).
2014-04-07 23:17:11 -04:00
Nicholas Hastings
57067d38fe
Print SendProp flags in netprop dump (bug 6082, r=asherkin).
2014-03-29 14:23:16 -04:00
Kyle Sanderson
9abac06e85
Change SDKHooks to VTable Hooks (bug 6070, r=psychonic).
2014-03-23 22:11:06 -06:00
Nicholas Hastings
451c90b932
Improve logical entity support in SDKHooks natives (bug 6069, r=asherkin).
2014-03-21 22:09:15 -04:00
Nicholas Hastings
d6bbb765c1
Add hack to not throw error on FEBC not found if not attempted to be found (nobug, r=asherkin).
2014-03-21 12:03:19 -04:00
Nicholas Hastings
db756f482b
Fix SDKHooks TraceAttack hook crashing on SDK 2013 mods.
2014-03-08 22:06:29 -05:00
Nicholas Hastings
b4156a19c3
Fix TE_* natives operating on incorrect data for some tempents (bug 6072, r=fyren).
2014-03-08 19:46:49 -05:00
Nicholas Hastings
b3e2647dc4
Fix IgniteEntity crash on NMRiH.
2014-03-08 01:04:49 -05:00
Scott Ehlert
22e8b53029
Add gamedata for EntityFactoryDictionary and IServer for Dota 2 on Linux (bug 6068, r=psychonic).
2014-03-03 05:20:40 -06:00
Kyle Sanderson
38bbb8580f
Move PlayerRunCmd to a global VTable Hook (bug 6051, r=psychonic).
2014-03-01 14:25:35 -07:00
Nicholas Hastings
692f597808
Update SDKHooks CTakeDamageInfoHack for SDK updates.
2014-02-28 15:03:53 -05:00
Ruben Gonzalez
ab6971656b
Fix not returning a valid weaponID for cz75a (irc, r=KyleS)
2014-02-13 13:19:59 -05:00
Dr!fter
a4d841655b
Fix possible crash when unloading cstrike extension. (irc, r=KyleS)
2014-02-13 00:02:35 -05:00
Ruben Gonzalez
162c69bfda
Fix CS_GetWeaponPrice returning incorrect value for M4A1 in CS:GO
...
--HG--
extra : amend_source : b4fa218795b59a82f98c0c8142e3bf36161f88d6
2014-02-12 19:03:14 -05:00
Peace-Maker
75d950e4b0
Add GiveAmmo native to SDKTools (bug 6039, r=psychonic).
2014-02-10 10:49:19 -05:00
Scott Ehlert
e00e879af5
Use == instead of is operator for checking string equality in AMBuild scripts (bug 6043, r=dvander).
2014-02-09 22:50:20 -06:00
Scott Ehlert
0ab8f4a1bd
Remove GLIBC 2.7 depedency from Webternet extension (no bug, r=dvander).
2014-02-09 15:19:17 -06:00
Ruben Gonzalez
79f825cc44
Fix typo in sdktools error.
2014-02-08 22:12:31 -05:00
Ruben Gonzalez
f351e20de3
Update CStrike extension and gamedata on windows for latest CS:GO update (irc, r= psychonic)
2014-02-08 20:04:12 -05:00
Nicholas Hastings
4093fa0588
Fix SDKHooks load issue and reliance on gEntList ptr on CS:GO and Dota 2 on Windows.
2014-02-07 22:11:31 -05:00
Nicholas Hastings
097d2d902c
Add missing meta results to some pre-hooks in SDKHooks (nobug, r=me).
2014-01-27 10:09:47 -05:00
Peace-Maker
9d15512f3b
Fix crash in SDKHooks Reload post-hook (irc, r=psychonic).
2014-01-27 10:09:03 -05:00
Kyle Sanderson
5acc7209b2
Add client checks to EmitSound SoundsHooks (bug 5873, r=psychonic)
2014-01-17 23:25:23 -05:00
David Anderson
b69b0de234
Various build fixes (bug 5997 part 14, r=ds).
2013-12-30 17:51:01 -05:00
David Anderson
6d320163a1
Various Windows build fixes (bug 5997 part 13, r=ds).
...
--HG--
rename : sourcepawn/compiler/libpawnc.rc => sourcepawn/compiler/version.rc
2013-12-30 17:51:00 -05:00
David Anderson
f82224eba0
Move versioning to a static library to improve trivial build speed (bug 5997 part 9, r=ds).
2013-12-30 17:51:00 -05:00
David Anderson
75e622e879
Port packaging to AMBuild 2 (bug 5997 part 6, r=ds).
2013-12-30 17:50:59 -05:00
David Anderson
54ed1807c0
Port webternet/curl to AMBuild 2 (bug 5997 part 2, r=ds).
2013-12-30 17:50:57 -05:00
David Anderson
e1a820dcf9
Port simple C++ build scripts to AMBuild 2 (bug 5997 part 1, r=ds).
2013-12-30 17:50:56 -05:00
Nicholas Hastings
bdbc3c3b58
Fix SDKHooks Spawn hook crashing in Dota.
...
--HG--
extra : rebase_source : dfe1eb22256268b321b8c24be718fbc7c770e74e
2013-12-28 08:19:34 -05:00
Nicholas Hastings
5df8c9290f
Fix incorrect return and inability to block in TF2 OnCrit forward (r=FlaminSarge, VoiDeD).
2013-11-09 19:33:06 -05:00
Nicholas Hastings
056f64ad40
Consolidate SDKTools ent factory lookup (r=asherkin).
2013-11-05 20:32:37 -05:00
Nicholas Hastings
c9c147a814
Have SDKTools use IServerTools to get ent facts where available (bug 5968, r=asherkin).
2013-10-29 18:59:36 -04:00
Nicholas Hastings
31aa230cba
Updated TF2 ext Burn call with new parameter.
2013-10-29 18:59:12 -04:00
David Anderson
96d6cf8def
Fix some memory errors (bug 5904, r=ds).
2013-10-29 18:58:34 -04:00
Kyle Sanderson
35191745ca
Fix regression in SDKTools SetClientListening hook refcounting (bug 5956, r=fyren).
2013-10-24 13:20:42 -04:00
Nicholas Hastings
e0746e1ab8
Added engine support for Insurgency (bug 5951, r=asherkin).
2013-10-13 14:16:08 -04:00
Nicholas Hastings
5e1d207eae
Added engine support for Blade Symphony (bug 5949, r=asherkin).
2013-10-13 14:15:29 -04:00
Nicholas Hastings
3e15966c3e
Add support for Source SDK Base 2013 (bug 5917, r=asherkin).
2013-10-13 14:14:51 -04:00
Nicholas Hastings
5bde264c43
Rename some register defines to avoid conflict with sys headers (bug 5917, r=hamdinger).
2013-10-08 21:01:21 -04:00
Nicholas Hastings
3174fb7d19
Update CTakeDamageInfo var names from sdk update.
2013-10-06 10:57:38 -04:00
Drifter
75ce4c395a
Add CS_UpdateClientModel native to cstrike extension (bug 5905, r=psychonic).
2013-09-10 13:08:14 -04:00
Nicholas Hastings
46327563f2
Initialize DamageCustom var in SDKHooks CTakeDamageInfoHack (nobug, r=asherkin).
2013-09-09 18:41:54 -04:00
Kyle Sanderson
3308f0644c
Fix incorrect assignment in SDKHook_TakeDamage + cleanup (bug 5911, r=psychonic).
2013-09-06 18:37:13 -04:00
Nicholas Hastings
e8ce238eb7
Another fix for build on non-windows.
2013-08-29 10:12:44 -04:00
Nicholas Hastings
404b1c5ed0
Fix build on non-windows.
2013-08-29 09:47:20 -04:00
Nicholas Hastings
dde1deb6bc
Clean up TF2 ext CalcCritical code (bug 5894, r=voided).
2013-08-29 09:27:35 -04:00
David Anderson
51dc097266
Switch TopMenus off KTrie (bug 5884 part 16, r=ds).
2013-08-25 12:20:38 -07:00
David Anderson
8e99b342a4
Switch ClientPrefs off KTrie (bug 5884 part 15, r=ds).
2013-08-25 12:19:10 -07:00
Nicholas Hastings
96e971084a
Fix SDKHooks hook ent validation missing first datatable name (bug 5881, r=asherkin).
2013-08-24 21:59:52 -04:00
David Anderson
4d43374fde
Add atomic reference counting and port DBI (bug 5876 part 3, r=ds).
...
--HG--
extra : rebase_source : a6defaf477e7a856ce91f92d5f3143f12c141da3
2013-08-23 00:18:13 -07:00
David Anderson
dac42ee272
Add reference counting to IDatabase (bug 5876 part 2, r=ds).
...
--HG--
extra : rebase_source : 9fef982c3923a2f5cb842b3b8a5cca235ef9c6b9
2013-08-23 00:18:12 -07:00
Nicholas Hastings
50083048f6
Fixed SDKHooks thinking a hook type was supported when gamedata missing (r=voided).
...
--HG--
extra : rebase_source : 88a08b03ecbbbaa3bf1c91db30c2e08ceb106e95
2013-08-22 21:45:19 -04:00
David Anderson
c373527851
Rename ke_* headers to am-*
...
--HG--
rename : public/amtl/ke_allocator_policies.h => public/amtl/am-allocator-policies.h
rename : public/amtl/ke_inline_list.h => public/amtl/am-inline-list.h
rename : public/amtl/ke_thread_posix.h => public/amtl/am-thread-posix.h
rename : public/amtl/ke_thread_utils.h => public/amtl/am-thread-utils.h
rename : public/amtl/ke_thread_windows.h => public/amtl/am-thread-windows.h
rename : public/amtl/ke_utility.h => public/amtl/am-utility.h
rename : public/amtl/ke_vector.h => public/amtl/am-vector.h
2013-08-22 17:10:59 -07:00
David Anderson
de8726ab73
Move ke_ headers to new public/amtl folder.
...
--HG--
rename : public/sourcepawn/ke_allocator_policies.h => public/amtl/ke_allocator_policies.h
rename : public/sourcepawn/ke_inline_list.h => public/amtl/ke_inline_list.h
rename : public/sourcepawn/ke_thread_posix.h => public/amtl/ke_thread_posix.h
rename : public/sourcepawn/ke_thread_utils.h => public/amtl/ke_thread_utils.h
rename : public/sourcepawn/ke_thread_windows.h => public/amtl/ke_thread_windows.h
rename : public/sourcepawn/ke_utility.h => public/amtl/ke_utility.h
rename : public/sourcepawn/ke_vector.h => public/amtl/ke_vector.h
2013-08-22 16:30:44 -07:00
David Anderson
94d33a4ef1
Fix various problems with unloading ClientPrefs and SourceMod (bug 5874, r=ds).
...
--HG--
extra : rebase_source : 0a35f8380d651ca65fac9dd402c5cd3625e3105c
2013-08-22 14:05:44 -07:00
Kyle Sanderson
d79b41e4a7
Fix weapon ID checks (bug 5872, r=Dr!fter)
2013-08-21 10:55:12 -04:00
Nicholas Hastings
6f0f6676db
Fixed char * constant conversion warning in cstrike ext.
2013-08-15 18:43:14 -04:00
Drifter
45cabd756c
Fix CS:GO GetWeaponPrice and OnGetWeaponPrice using outdated method (r=psychonic).
2013-08-15 14:40:30 -04:00
Nicholas Hastings
7d431e55df
Update BuyCommand detour in CStrike extension with new param on CS:GO.
2013-08-14 17:08:02 -04:00
Nicholas Hastings
575962569f
Update GivePlayerItem for new params in CS:GO.
2013-08-14 17:07:27 -04:00
FlaminSarge
7db280a666
Add GetPlayerJingleFile native. (bug 5690, r=asherkin)
2013-08-12 02:08:34 +01:00
Asher Baker
2b88905b40
Fixed build.
2013-08-12 01:32:44 +01:00
FlaminSarge
ef5263ef9e
Add support for more CalcIsAttackCritical helpers. (bug 5576, r=asherkin)
2013-08-12 01:18:01 +01:00
FlaminSarge
9206512c38
Add support for tracking player conditions >= 64. (bug 5565, r=asherkin)
2013-08-12 01:11:11 +01:00
Kyle Sanderson
b9cd424186
Add support for nested datatables. (bug 5446, r=asherkin)
2013-08-12 00:54:21 +01:00
Kyle Sanderson
86c699dd36
Fixed various memory issues. (bug 5766, r=asherkin)
2013-08-12 00:44:22 +01:00
GoD-Tony
5ec9cf7089
Added ISDKHooks interface with entity listeners (bug 5602, r=psychonic).
2013-08-04 10:03:40 -04:00
Kyle Sanderson
aad1b5dc9f
Fixed regression in CellFilter GetRecipientIndex reading oob (bug 5826, r=psychonic).
2013-08-03 19:20:03 -04:00
Drifter
fa0df413f4
Added CS_IsValidWeaponID native and validity checks to other natives (bug 5566, r=psychonic).
2013-07-31 22:11:15 -04:00
Drifter
1a8be6344a
Fixed incorrect return for some weapons in CS_GetWeaponPrice (bug 5562, r=psychonic).
2013-07-31 22:08:23 -04:00
Kyle Sanderson
fff8455903
Fixed crash in SDKHooks when throwing bad ent type error on logical ent (r=psychonic).
2013-07-31 22:03:59 -04:00
Nicholas Hastings
a36c266e7d
Split TF2, DoD:S, HL2:DM, and ND to separate binaries (bug 5813, r=asherkin).
2013-07-21 11:53:56 -04:00
Nicholas Hastings
636c100b6b
Updated for latest hl2sdk-dota changes.
...
--HG--
extra : amend_source : 503e712bb88b2da051c9ea3d6d51b7294ba83230
2013-07-29 10:03:18 -04:00
Kyle Sanderson
29bc273e58
Removed -Wno-parentheses from posix build and fixed warnings (bug 5745, r=psychonic).
2013-07-18 15:50:57 -04:00
Kyle Sanderson
b96e0c8713
Fixed accidental assignment in each of SDKTools and sp compiler (bug 5745, r=psychonic).
2013-07-18 15:50:50 -04:00
Kyle Sanderson
1f88f1f3f6
Throw error instead of crash when calling SetTeamScore between maps (bug 5718, r=psychonic).
2013-07-18 11:38:04 -04:00
Peace-Maker
69d8b1c30d
Added SQL_SetCharset native to (re)set charset even after reconnect (bug 5786, r=psychonic).
2013-07-18 10:27:12 -04:00
Nicholas Hastings
c230cf5aab
Updated for latest hl2sdk-dota changes.
2013-07-12 02:31:41 -04:00
Asher Baker
efabf18162
Fixed copy-paste error in 116256b519b5.
2013-05-16 14:58:14 +01:00
Asher Baker
56737ac523
File upload support for webternet (r=psychonic).
2013-05-16 14:49:03 +01:00
Nicholas Hastings
702885ebb2
Fixed SDKTools dota build.
2013-05-14 11:27:06 -04:00
Nicholas Hastings
a12b83de59
Typo fix.
2013-05-14 10:24:47 -04:00
Nicholas Hastings
3b83356825
Updated for latest hl2sdk-dota changes.
...
--HG--
extra : rebase_source : 0365a2c057523822481dee0880f8a5d525a8050a
2013-05-14 10:19:29 -04:00
Nicholas Hastings
614967ccc1
Updated for latest hl2sdk-dota changes.
2013-05-13 15:18:12 -04:00
Brian Simon
a79e552ab4
Added more alternative names for TFClass_Heavy (bug 5338, r=asherkin).
2013-04-11 03:07:50 +01:00
Peace-Maker
35cd7eb2be
Add alternative lookup method for EntityFactoryDictionary (bug 5658, r=asherkin).
2013-03-19 11:25:04 -04:00
Nicholas Hastings
ec716f0c58
Cache m_iEFlags offset for datamaps dump instead of getting for each ent (bug 5657, r=asherkin).
2013-03-19 11:24:01 -04:00
Nicholas Hastings
877ef76540
Tweaked Dota 2 support to account for lack of IPluginHelpers (bug 5656, r=asherkin).
2013-03-19 11:19:19 -04:00
Nicholas Hastings
519e8c5fcd
Added basic support for Dota 2 (bug 5656, r=asherkin).
2013-03-19 11:18:44 -04:00
GoD-Tony
d866c061a3
Added logged error when PlayerRunCommand offset lookup fails (bug 5535, r=psychonic).
2013-03-18 19:53:30 -04:00
Nicholas Hastings
f8fed31918
Changed MM:S inclusion in sqlite vcproj to use MMSOURCE19 env var (NPOTB) (bug 5468).
2013-03-18 19:06:48 -04:00
Asher Baker
e84f6e4afd
Backed out updated libcurl.
2013-03-18 00:55:59 +00:00
Asher Baker
9b65900df0
Fix libcurl compile error.
2013-03-18 00:14:55 +00:00
Asher Baker
63175aa3cb
Updated cURL version.
2013-03-17 22:23:20 +00:00
Asher Baker
0f62a8ec2f
Generate debugging information during compilation (bug 5227, r=ds).
2013-03-17 21:00:28 +00:00
Nicholas Hastings
5077703400
Moved PCRE_STATIC def in Regex ext to extension instead of modifying pcre header (bug 5593).
2013-03-17 11:39:04 -04:00
Nicholas Hastings
77fef18590
Recompiled Regex extension libpcre against v8.32, enabling utf8, unicode props, and jit (bug 5593).
2013-03-17 11:39:04 -04:00
Nicholas Hastings
ed6d8521e6
Added msvc10 proj file for Regex extension and hooked up to meta sln (NPOTB).
2013-03-17 11:29:55 -04:00
Kyle Sanderson
d24c751eef
Fixed crash regression in cset 90159516acd3 when player auth is invalid (bug 5538, r=asherkin).
2013-03-17 09:49:31 -04:00
Nicholas Hastings
cf0401fea7
Add DPT_Int64 type to netprop dumps (bug 5655, r=asherkin).
2013-03-16 22:57:57 -04:00
Kyle Sanderson
ef6c454137
Replace usages of deprecated Sourcehook Add/Remove macros (bug 5631, r=dvander).
2013-03-16 22:15:25 -04:00
FlaminSarge
093f8cb89b
Exposed third parameter of TF2's AddCond in TF2_AddCondition (bug 5641, r=psychonic).
2013-03-16 18:05:22 -04:00
Nicholas Hastings
707e820af6
Fixed some engine builds failing.
2013-03-16 14:11:56 -04:00
Nicholas Hastings
0c7696da65
Add GetPlayerResourceEntity to SDKTools; deprecate old, broken TF2-specific impl (bug 5491, r=asherkin).
2013-03-16 13:50:36 -04:00
Nicholas Hastings
d44e334524
Fixed SDKHooks GetMaxHealth callback being passed incorrect parameters.
2013-03-02 13:42:07 -05:00
Kyle Sanderson
5d942265f9
Overhaul of ClientPrefs extension (bug 5538, r=asherkin).
2013-02-28 21:51:49 +00:00
Kyle Sanderson
f2d54b7728
Fixed SM ambuild config failure at TF2 ext if ep2v sdk is missing (bug 5608, r=psychonic).
2013-02-12 12:26:10 -05:00
Nicholas Hastings
a040c237bc
Removed intentional invalid steamid crash in SDK Hooks.
2013-02-11 09:39:23 -05:00
Peace-Maker
176c003658
Fixed SDKHooks missing version info.
2013-02-09 11:37:51 -05:00
Nicholas Hastings
74aafaa72f
Fixed SDKHooks looking for IServerTools on < Orangebox, causing load failure (bug 5603).
2013-02-08 22:46:49 -05:00
Nicholas Hastings
0ac7867b3d
Updated SDKHooks msvc10 project files and added to SM solution (NPOTB).
2013-02-08 22:26:51 -05:00
Nicholas Hastings
c1b65f52be
Minor typo fix in SDKHooks version.rc.
2013-02-08 07:57:16 -05:00
Nicholas Hastings
230e4e3a32
Build fix.
2013-02-08 00:00:09 -05:00
Nicholas Hastings
0015d00243
Initial commit of latest functional SDKHooks extension.
2013-02-07 23:43:33 -05:00
Peace-Maker
cd9a28864a
Updated for CS:S sync (r=asherkin).
2013-02-05 21:45:11 +00:00
Nicholas Hastings
c2ecb7363c
Fixed VARINT & UNSIGNED flags being read from dt instead of member in SendProp arrays (bug 5591, r=prodigysim).
2013-02-04 07:38:30 -05:00
Michael Busby
8dc7f78b0f
Fix GameRules_SetPropVector writing data to unexpected addresses instead of to the proxy entity (bug 5592, r=psychonic).
2013-01-27 14:59:14 -08:00
Nicholas Hastings
e74d5593a8
Updated CS:GO HandleCommand_Buy_Internal detour with new bool param.
2013-01-23 14:46:12 -05:00
Nicholas Hastings
bb9d5e11f1
Backed out changeset: 8048e61b5382.
2012-12-27 16:39:04 -05:00
Nicholas Hastings
df76b7285c
Backed out changeset: c283854680ad.
2012-12-27 16:38:49 -05:00
Nicholas Hastings
e105711678
Backed out changeset: 951598961ea8.
2012-12-27 16:38:34 -05:00
Nicholas Hastings
8f0c442024
Fixed TF2_RemoveCondition being called for added conds instead of removed conds.
2012-12-26 12:27:24 -05:00
Nicholas Hastings
02b8e3f7c0
Fixed typo in TF2 ext asm.c causing accidental assignment instead of compare.
2012-12-26 12:19:15 -05:00
Nicholas Hastings
7846ff1666
Updated Makefile for TF2 extension (NPOTB).
2012-12-26 12:19:15 -05:00
Nicholas Hastings
eaf441c226
Add -Wno-array-bounds for TF2 extension to avoid GCC bugged warning (msvc and Clang fine).
2012-12-23 22:06:52 -05:00
Nicholas Hastings
59df217a09
Updated SQLite to version 3.7.15.1 (bug 5235).
2012-12-23 17:06:11 -05:00
Nicholas Hastings
ffd7603b17
Added support in TF2 ext for detection of player conds >= 64 (bug 5565, r=asherkin).
2012-12-23 16:59:50 -05:00
Nicholas Hastings
329616c029
Fixed hang in TF2 extension when player condition 63 is added.
2012-12-21 01:17:30 -05:00
Nicholas Hastings
8eeec3dc48
Added new param for CTFPlayerShared::AddCond call in TF2 ext.
2012-12-19 07:55:03 -05:00
Nicholas Hastings
4a1dd5f519
Added support for new SPROP_VARINT sendprops.
2012-12-18 17:58:45 -05:00
Nicholas Hastings
5256edf0e5
Ported GetEntProp's unsigned prop support to GameRules_GetProp.
2012-12-18 17:53:45 -05:00
Nicholas Hastings
e9385e6eb6
Validate entity in GameRules_GetPropEnt and in CS_DropWeapon safety checks.
2012-12-17 14:34:44 -05:00
Nicholas Hastings
ba2915ce4e
Added natives to CStrike ext to access assists/score in CSGO (bug 5525, r=asherkin).
2012-12-15 14:36:52 -05:00
Kyle Sanderson
2e3c5e367e
Added WeaponIDToAlias native to CStrike extension (bug 5460, r=psychonic).
2012-12-14 15:12:22 -05:00
Asher Baker
a991d327e6
Improved sendtable dump output (bug 5471, r=psychonic).
2012-11-15 17:50:11 +00:00
Daniel Varnai
42ff151ae4
Added clan tag support for CS:GO in CStrike ext (bug 5429, r=psychonic).
2012-08-13 14:59:31 -04:00
Nicholas Hastings
6ff5733d7b
Removed old, unsupported msvc8/9 project files for TF2 and CStrike exts (NPOTB).
2012-09-08 12:14:01 -04:00
Nicholas Hastings
a3117ef272
Fixed output name in msvc10 files for TF2 and CStrike exts. (NPOTB) (bug 5479).
2012-09-08 12:13:20 -04:00
Nicholas Hastings
4f800fbd00
Updated SDKCall SetSignature to use same hidden-symbols engine list as core (bug 5440, r=me).
2012-08-27 19:31:38 -04:00
Nicholas Hastings
3025b9b5e0
Merge.
2012-08-26 23:35:18 -04:00
Kyle Sanderson
b0075842d1
Fixed minor memory leaks in cstrike ext (bug 5456, r=psychonic).
2012-08-26 23:33:11 -04:00
Asher Baker
bf76be5dfa
Overhauled versioning information (bug 5453, r=dvander).
2012-08-26 01:33:54 +01:00
Scott Ehlert
0d795fc651
Added support for CS:GO on Mac OS X (bug 5459, r=psychonic).
2012-08-25 11:28:52 -05:00
Nicholas Hastings
7441af67a8
Really fixed issues for today's TF2 engine update (bug 5450).
2012-08-24 01:36:42 -04:00
Nicholas Hastings
d88f07fd31
Updated SDKTools IServer finding on Windows for Ep2v and CSS (bug 5450, r=me).
2012-08-23 07:47:44 -04:00
Tony
74f49ec38f
Added more parameters to PlayerRunCommand forward (bug 5346, r=asherkin).
2012-08-21 00:42:46 -04:00