Nicholas Hastings
a95527a72c
Merge pull request #370 from alliedmodders/valvefs-default-pathid
...
Make path id default to "GAME" instead of NULL for FileExists and FileSize if param missing.
2015-08-14 08:44:34 -04:00
Nicholas Hastings
4f0c06d068
Merge pull request #369 from alliedmodders/bug-6391
...
Fix bIsStringIndex not being initialized in SetEntPropString for non-index SendProps (bug 6391).
2015-08-14 08:32:33 -04:00
Nicholas Hastings
af4573e7af
Fix build on Clang.
2015-08-14 08:31:52 -04:00
Nicholas Hastings
a08a693bf3
Make path id default to "GAME" instead of NULL for FileExists and FileSize if param missing.
...
This only affects plugins compiled before the param existed in the includes. NULL defaults to "GAME"
on some engine versions, but is invalid on others, causing any file to not be found.
2015-08-14 07:52:50 -04:00
Nicholas Hastings
8a726a8fbb
Fix bIsStringIndex not being initialized in SetEntPropString for non-index SendProps.
2015-08-14 07:50:10 -04:00
David Anderson
ff692f6040
Merge pull request #366 from peace-maker/timer_paused
...
Fix calling timer callback in paused plugins
2015-08-13 22:14:02 -07:00
David Anderson
bcfef75c5d
Update regex and datapack includes to not use binding syntax.
2015-08-12 11:52:57 -07:00
Peace-Maker
0a14d3f50c
Fix calling timer callback in paused plugins
...
Don't try to call the timer callback, if it's not runnable.
Error wasn't reported before the exception refactoring.
2015-08-09 01:50:36 +02:00
Nicholas Hastings
f589298879
Fix maxlen in SetEntPropString not being initialized (bug 6391).
...
This var is only used when setting a direct string, rather than a string_t. Some flawed
logic was causing it to only be set if the sendprop didn't have a proxy function (although
all strings should; that's how we detect whether it's a string_t or not). The var only needs
to be set if it's not a string_t, but does not hurt anything if it is.
2015-07-25 10:46:41 -04:00
Nicholas Hastings
4db1280c59
Add comment to note that pStk actually gets deleted.
2015-07-12 19:18:27 -04:00
Nicholas Hastings
5893737321
Fix handle leak.
2015-07-12 17:38:50 -04:00
Nicholas Hastings
c85cc5cbf7
Add support for listening to, blocking, changing, and faking ClientCommandKeyValues.
2015-07-12 13:14:46 -04:00
Asher Baker
705b5d3f5f
Merge pull request #340 from asherkin/datapack-alloc
...
Improve DataPack memory allocation & Report size for DataPack Handles
2015-07-08 20:07:40 +01:00
Nicholas Hastings
8a978dc71f
Remove hack around FuzzyMatch never being returned in TF2 for FindMap.
...
It has been fixed now in the game.
2015-07-04 13:42:50 -04:00
Nicholas Hastings
52147ca75f
Use datadesc instead of serverclass for m_iName lookup.
...
m_iName is not networked on all games.
2015-07-03 08:57:15 -04:00
Nicholas Hastings
1a5714c3ca
Fix build for ep1 and darkm.
2015-07-02 15:22:33 -04:00
Nicholas Hastings
e0a83ff7b2
Add support for setting string_t values with SetEntPropString.
...
Adds new AllowPooledString func to CHalfLife2 to allocate a string in the game's string pool.
Also fixes SetEntPropString using incorrect offset for nested sendprops.
2015-07-02 14:47:31 -04:00
Nicholas Hastings
93bec920cf
Add support for GetEntPropString(Prop_Send) with netvars backed by string_t vars.
2015-07-02 14:00:47 -04:00
Nicholas Hastings
80838af4a2
Work around eFindMap_FuzzyMatch never actually being returned in TF2.
2015-06-28 09:48:01 -04:00
Nicholas Hastings
c383f1dc43
Fix compile errors on Clang by implementing own enum.
2015-06-27 19:58:14 -04:00
Nicholas Hastings
f107ff9cd2
Expose FindMap/ResolveFuzzyMapName to plugins.
2015-06-27 13:10:47 -04:00
Kyle Sanderson
0f9b9d0a24
Call OnClientDisconnect(_Post) if the client is already connected.
2015-06-11 20:14:25 -07:00
Nicholas Hastings
c0d4dfa6ed
Update IsMapValid for today's TF2 update.
2015-06-11 17:48:58 -04:00
Nicholas Hastings
14e0a9a487
Fix some ctype misuses (bug 6377).
...
isalpha, isdigit, isupper, and islower do not return 0/1. They return 0 or anything-else. Since the bool tag in pawn only supports exactly 0 and 1, we need to return 1 for all truthy returns in the natives that wrap these.
2015-06-10 14:40:48 -04:00
Nicholas Hastings
9f8a40f482
Merge pull request #337 from alliedmodders/earlier-maxclients
...
Populate MaxClients before OnPluginStart is called.
2015-05-20 06:48:08 -04:00
Nicholas Hastings
2abb8e6335
Remove engine check for whether or not to search alt mapcycle paths.
2015-05-18 09:16:36 -04:00
Asher Baker
fd48f4adfd
Report size for DataPack Handles.
2015-05-13 19:43:53 +01:00
Asher Baker
7f97e67931
Saner allocation policy for DataPacks.
2015-05-13 19:43:35 +01:00
Nicholas Hastings
11bf32f6f1
Enable finding mapcycle in cfg dir on sdk2013 and bms.
2015-05-13 06:49:37 -07:00
Nicholas Hastings
ae78acf97a
Remove harmless remnant of reverted change.
2015-05-12 13:39:06 -04:00
Nicholas Hastings
51344262c6
Merge pull request #333 from TheMadSword/IncreasedPrintToBufferSize
...
Increased PrintToChat, PrintCenter & PrintHint w/ "all" version, buffer sizes from 192 to 254.
2015-05-12 09:23:25 -04:00
Nicholas Hastings
75a93314a2
Rename PlayerManager::m_FirstPass to m_bServerActivated for clarity.
2015-05-11 20:42:26 -04:00
Nicholas Hastings
91b2ab8be1
Fixed some badness with the player initialization moving.
2015-05-11 20:29:00 -04:00
Nicholas Hastings
8fc689c89a
Populate MaxClients before OnPluginStart is called.
2015-05-11 19:31:22 -04:00
TheMadSword
6686badc93
Increased PrintHint and PrintCenter buffer
2015-05-09 09:22:07 -04:00
TheMadSword
b70873e046
Changed buffer size for games with ChatSayText='yes', tested in CSS&CSGO w/ adding the kv in engine.cs*.txt
2015-05-07 22:55:15 -04:00
TheMadSword
f57dbeb60f
Increased PrintToChat & PrintToChatAll buffer size from 192 to 254; works in CSS/CSGO; dunno for the rest
2015-05-07 09:38:25 -04:00
Nicholas Hastings
64f9aedebc
Add basic support for Black Mesa.
...
(Basically a copy of SDK 2013's support, but against BMS SDK).
2015-05-06 21:12:13 -04:00
Ryan Stecker
03e0c7317d
Notify plugin listeners of SetFailState'd plugins on unload. (bug 6347)
2015-04-12 19:25:07 -05:00
Nicholas Hastings
6c6ed241d3
Fix CoreConfig init to happen after SMGlobalClasses from logic bin are added.
...
This fixes OnSourceModConfigChanged not being called for logic classes when
config is first read, matching behavior for core classes. The function is still called
before each class's OnSourceModStartup func.
2015-04-05 10:06:30 -04:00
Kyle Sanderson
88c4618230
Merge pull request #320 from KyleSanderson/dust
...
Remove Project Files from older outdated build systems.
2015-04-02 10:34:57 -07:00
Kyle Sanderson
7341bd184e
Remove Project Files from older outdated build systems.
2015-04-01 19:54:34 -07:00
Nicholas Hastings
ce56680fff
Merge pull request #315 from alliedmodders/direxists-empty
...
Make DirExists("") throw an error.
2015-04-01 22:30:03 -04:00
Nicholas Hastings
d49c72cf8b
Fix typo in core AMBuilder file triggering exception when triggering exception.
2015-03-31 17:39:04 -04:00
Nicholas Hastings
7b56dd5c8a
Fix build.
2015-03-22 19:23:58 -04:00
Peace-Maker
4b8a581c9a
Fix crash in games that don't support radio style menus
...
Fix regression in ad7d920
GetMenuStyleHandle(MenuStyle_Radio) crashes games, which don't support
the radio menu style. The style is never added to the menu manager, if
it's not supported, so GetMenuStyleHandle tries to call IsSupported on a
nullptr
2015-03-21 18:53:41 -04:00
Nicholas Hastings
28870d2ae5
Make OpenDirectory error for empty path match error in DirExists.
2015-03-10 18:58:00 -07:00
Nicholas Hastings
cc3b86ea80
Throw an error if DirExists called with empty path.
2015-03-10 18:57:28 -07:00
David Anderson
eaea3c927d
Update upstream AMTL as a submodule.
2015-03-08 00:24:03 -08:00
David Anderson
561004c4bf
Move SourcePawn headers out of public/ into sourcepawn/include.
2015-03-07 11:13:32 -08:00