Commit Graph

860 Commits

Author SHA1 Message Date
David Anderson
84a08ba000 fixed bug amb571 (FakeClientCommand having weird side effects)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401341
2007-08-15 17:14:48 +00:00
David Anderson
4016c52a38 - removed some debug stuff
- committed msvc8 detection to sm_platform.h
- updated comments to FormatTime()

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401340
2007-08-15 16:21:28 +00:00
David Anderson
54a8126648 fixed amb800 - FormatTime() being microsofty
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401339
2007-08-15 16:17:54 +00:00
Scott Ehlert
a1009aed38 Updated license headers on virtually all files with extremely minor changes in the name of some sort of strange consistency.
All plugin and include file headers also have been changed to say about GPL3 instead of GPL2.

(This day shall henceforth be known as the Eighty Column Massacre of '07)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401336
2007-08-15 06:19:30 +00:00
David Anderson
e2e6ec777b added SQL_CheckConfig() so sql admin plugins can default back
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401330
2007-08-14 01:00:42 +00:00
David Anderson
6053dff454 fixed a bug where sm_dump_handles reported some freed handles incorrectly
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401327
2007-08-13 19:41:15 +00:00
David Anderson
b8900e9cfe added data parameter to SQL_TConnect()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401323
2007-08-13 16:49:53 +00:00
David Anderson
aad8efc0a7 and apparently msvc didn't like those line endings
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401317
2007-08-11 21:24:30 +00:00
David Anderson
e980160d12 added windows support for crc32
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401316
2007-08-11 21:24:00 +00:00
David Anderson
4b75dffe41 added CRC32 checking capability to gamedata files
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401313
2007-08-11 21:19:35 +00:00
David Anderson
761100b856 fixed header not having double-include barrier
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401312
2007-08-11 19:58:06 +00:00
David Anderson
45b1bbdcd4 fixed a bug where admin access levels were read incorrectly
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401311
2007-08-11 18:03:55 +00:00
Scott Ehlert
ac03126022 Added replicate and notify parameters to ResetConVar() - these were already available for SetConVarX()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401307
2007-08-10 09:16:58 +00:00
David Anderson
a53d103507 fixed per-group command overrides not working
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401306
2007-08-10 05:59:03 +00:00
David Anderson
2ff8d1776e fixed some state parsing errors
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401305
2007-08-10 05:08:14 +00:00
David Anderson
2a8d9a7aee flag letter assignment is now handled by core
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401304
2007-08-10 04:53:30 +00:00
David Anderson
70cfc9395d MenuAction_Cancel now passes a vote cancellation reason
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401302
2007-08-09 23:45:33 +00:00
David Anderson
eedb308bab added amb739, SQL_ReadDriver()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401300
2007-08-09 20:06:42 +00:00
David Anderson
e6fa620ae2 added amb764, vote delay setting
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401297
2007-08-09 19:05:34 +00:00
David Anderson
3cd3a0a8d6 added amb766 - GetMenuTitle()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401296
2007-08-09 18:25:00 +00:00
David Anderson
5db2f8e495 fixed amb768
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401294
2007-08-09 06:16:07 +00:00
David Anderson
6da3335588 - added amb733 - running admin auth CheckSetAdmin
- fixed amb737 - reservedslots uses the new auth api
- fixed various FormatString() usage bugs in functions such as KickClient() and ServeRCommand()
- added API so sql admins will be fit into the whole system

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401279
2007-08-08 16:22:51 +00:00
David Anderson
ee7d75fcb9 added a menu parameter to the vote callback
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401277
2007-08-08 02:44:36 +00:00
David Anderson
8352ea6413 fixed linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401276
2007-08-08 02:30:03 +00:00
David Anderson
6d60bd8de2 - massive overhaul of the voting subsystem
- NOTE: menu API compatibility was COMPLETELY broken for C++!
- cleaned up various aspects of the menu API
- implemented new extended vote results callback
- extended the debug reporter a tiny bit

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401275
2007-08-08 02:27:10 +00:00
Phong Dang
2acb412f61 Fixed spelling typo for HintTextMsg.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401270
2007-08-06 00:22:38 +00:00
David Anderson
ccaa7c95f2 fixed crash in the text parser (amb718)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401266
2007-08-03 11:44:51 +00:00
David Anderson
70f22ab3ab implemented amb705 (you can now disable sounds per-menu)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401265
2007-08-03 11:40:21 +00:00
David Anderson
e37a7bcbbe fixed amb728 (menu sounds are now precached)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401264
2007-08-03 11:14:56 +00:00
David Anderson
01c0942ad2 fixed amb708 - render algorithm didn't draw descending pagination right
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401263
2007-08-03 11:08:12 +00:00
Scott Ehlert
005f49947a Implemented amb506 - plugin file name can now be used with "sm plugins unload"
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401258
2007-08-02 17:41:59 +00:00
David Anderson
5a979b9090 fixed a regression bug from the message system changes
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401257
2007-08-02 17:33:10 +00:00
Borja Ferrer
5a612d22e5 added new block_message flag in the message system
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401256
2007-08-02 00:47:47 +00:00
David Anderson
b22f9d705e added sound option for normal "exit"
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401249
2007-08-01 17:51:38 +00:00
David Anderson
0f410208de sanity check
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401244
2007-08-01 06:30:38 +00:00
David Anderson
2bd5170e33 stupid gcc... what is it with you and newlines (fixes linux build)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401238
2007-08-01 02:18:19 +00:00
David Anderson
38ddbb37b9 updated more header files (mostly internal now)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401237
2007-08-01 02:12:47 +00:00
Borja Ferrer
b0a96e69c1 added amb567, new OnAllPluginsLoaded forward
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401227
2007-07-31 22:34:52 +00:00
David Anderson
b0e107bdfb added amb704 (menu sound support)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401226
2007-07-31 18:56:55 +00:00
Borja Ferrer
4a6a016790 added amb441, vguimenu and hinttext natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401224
2007-07-30 23:16:58 +00:00
David Anderson
2f3c518eb1 fixed a bug where extensions were forwarded their unload call AFTER being dropped as an identity
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401208
2007-07-29 01:05:58 +00:00
David Anderson
76c34cc268 fixed a bug where the database manager removed itself from the plugins listener
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401207
2007-07-29 01:05:11 +00:00
Phong Dang
f2630470c4 Fixed AskPluginLoad would still allowed plugin to load even if it returned false.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401206
2007-07-29 00:26:18 +00:00
Phong Dang
eb0de8dad9 Fixed infinite loop when using SetArraySize() or 2nd parameter of CreateArray().
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401204
2007-07-28 20:01:30 +00:00
David Anderson
9d7db20b96 fixed a bug where HandleSecurity was not initialized properly for the datapack natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401199
2007-07-27 21:00:50 +00:00
David Anderson
1154b20fc9 added a new function to ILibrarySys
added define in SDK for LIBRARYSYS

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401198
2007-07-27 18:24:09 +00:00
David Anderson
fa07c9d8a2 exposed DataPack Handle type
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401197
2007-07-27 15:45:15 +00:00
David Anderson
d8b18c91a0 fixed a small crash bug when unloading
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401171
2007-07-25 04:32:54 +00:00
David Anderson
1027d151e5 - added MenuAction_DisplayItem callback for plugins
- fixed various bugs in MenuAction_Display
- added an "access" parameter for IMenuManager.  better to do this now than later, even though it's not used yet
- hard bumped menu api to change the OnMenuDisplayItem callback.  sorry!

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401169
2007-07-25 01:18:11 +00:00
David Anderson
39f7d51747 added amb403 (sm_reloadadmins)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401168
2007-07-24 22:20:58 +00:00
David Anderson
48d71cae26 finished a(nother) rewrite of how players authenticate. name-based authentication has been added and passwords work fully now.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401167
2007-07-24 20:11:47 +00:00
David Anderson
9ef04b07e7 added password support
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401166
2007-07-24 17:05:46 +00:00
David Anderson
9c44d29b23 fixed a small bug in GetArrayCell/PushArrayCell that caused cell/char to be swapped
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401165
2007-07-24 15:07:38 +00:00
David Anderson
c3cd2ac4a3 added amb670 (exposed IDBThreadOperation to extensions)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401163
2007-07-24 02:24:37 +00:00
David Anderson
8fa974961c initial import of adt array natives for amb576
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401162
2007-07-24 01:18:28 +00:00
David Anderson
30b475ef35 fixed bug amb659 (unloading parent extensions)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401156
2007-07-23 20:20:45 +00:00
Scott Ehlert
8b758a079a No comment worth mentioning for this one :x
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401155
2007-07-23 19:38:02 +00:00
Scott Ehlert
416752a0cc Fixed another issue with crashing on exit in relation to convars
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401154
2007-07-23 19:34:26 +00:00
David Anderson
172b3e8ab8 new jit api versioning scheme for amb398
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401153
2007-07-23 19:12:54 +00:00
Scott Ehlert
b4ba442d3c Oh, forgot this - added some missing code for SourceMM 1.5 version of rev 1151
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401152
2007-07-23 18:56:20 +00:00
Scott Ehlert
b372d50f3c Fixed amb660 - crash on exit when handles were created for convars that belonged to Metamod:Source plugins (or SM extensions that were loaded as MM:S plugins)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401151
2007-07-23 18:30:02 +00:00
David Anderson
54c3e17a14 fixed amb664 - BOM markings were not properly ignored
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401149
2007-07-23 17:25:18 +00:00
David Anderson
ee6f4cb1fa fixed amb658 - timer_flag_no_mapchange conflicted with simulated ticking
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401148
2007-07-22 16:01:01 +00:00
David Anderson
1a65cc5934 oh no, missing license header
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401147
2007-07-22 02:01:18 +00:00
Scott Ehlert
d7512156e8 Fixed amb667 - Forward called twice when returning Plugin_Stop in ET_Hook
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401146
2007-07-21 21:48:26 +00:00
Scott Ehlert
5de1cc57ce Fixed amb663 - crash when say or say_team command had no arguments
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401145
2007-07-20 07:31:09 +00:00
David Anderson
59f47dfd17 fixed another translator cache issue
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401140
2007-07-19 03:22:10 +00:00
David Anderson
c4a913231a fixed various memory relocation corruption bugs in the translator
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401139
2007-07-19 02:08:42 +00:00
David Anderson
3fdc205544 - changed TextMsg to return a bool
- fixed a bug where you couldn't send messages from post hooks
- added protection in functions which expect StartMessage to succeed

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401138
2007-07-19 00:34:44 +00:00
David Anderson
0069612c95 fixed a serious corruption bug in fastlink causing menus to corrupt memory after a while
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401137
2007-07-18 06:20:00 +00:00
Scott Ehlert
387ac70d1e Fixed linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401131
2007-07-16 04:22:16 +00:00
David Anderson
4ce48512b1 - added callbacks for libraries becoming available
- fixed MarkNTVOptional requring native to exist
- fixed a bug where it looks like plugins could not be paused

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401130
2007-07-16 02:06:02 +00:00
David Anderson
399fb8a8e8 fixed a bug where __pl_*_SetNTVOptional could not be called
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401129
2007-07-15 22:34:30 +00:00
David Anderson
a80d38f799 - reloading now refreshes weak native binds
- fixed a crash bug when unloading a plugin being pointed to by weak ntvrefs in another plugin

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401128
2007-07-15 21:29:49 +00:00
David Anderson
430e63d6cd fixed crash bug when unloading a plugin with a weak ntvref
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401127
2007-07-15 20:27:11 +00:00
David Anderson
d218f638b1 added api to walk cmd list
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401125
2007-07-15 18:51:25 +00:00
Scott Ehlert
1b4b16af47 Fixed loonix build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401119
2007-07-15 03:07:58 +00:00
Borja Ferrer
fe8ebeae89 added amb292, optional natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401118
2007-07-15 01:04:34 +00:00
David Anderson
68901b71d2 added craaaaazy debugger so we can get full minidumps
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401117
2007-07-14 17:36:11 +00:00
David Anderson
1f919c1f09 fixed linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401116
2007-07-14 04:15:08 +00:00
David Anderson
12696fc289 fixed amb477, textparser_smc crash
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401115
2007-07-14 02:06:42 +00:00
David Anderson
c33c27391f added amb622, TIMER_FLAG_NO_MAPCHANGE
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401114
2007-07-14 01:55:15 +00:00
David Anderson
9c531423fb added request amb588 - language info embellishment
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401111
2007-07-14 01:04:15 +00:00
David Anderson
e8d5bf9521 added request amb579 - ShowActivityEx()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401110
2007-07-14 00:47:30 +00:00
David Anderson
f2194aa2d9 fixed amb582 - private triggers getting fired twice
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401109
2007-07-14 00:35:08 +00:00
David Anderson
d4f2d30332 tquery now fails on nonts drivers
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401107
2007-07-13 20:27:21 +00:00
David Anderson
c7c7fed3d5 fixed a bug where failed TConnects would have no error message
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401106
2007-07-13 19:57:01 +00:00
David Anderson
560ff04a4d fixed linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401105
2007-07-13 19:47:10 +00:00
David Anderson
8a3b34bcdc added missing headers for priority queue
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401104
2007-07-13 19:43:02 +00:00
David Anderson
cbb2546453 initial import of threaded sql functionality
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401102
2007-07-13 19:20:12 +00:00
David Anderson
41aa77314d fixed a bug where threader wasn't exposed
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401100
2007-07-13 17:26:32 +00:00
David Anderson
215a5b49bc fixed linux build for pthreads
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401097
2007-07-12 16:59:08 +00:00
David Anderson
529933739d - added callback functionality to IThreadWorker
- added exposure of IThreader to sample sdk

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401096
2007-07-12 16:57:26 +00:00
Borja Ferrer
8a8e6ef594 added experimental optional natives (part 1)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401095
2007-07-12 02:57:43 +00:00
Scott Ehlert
5b8ffc08eb Fixed minor issue with sm_trie_add where memory was being read beyond the allocated boundaries
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401094
2007-07-10 08:21:24 +00:00
David Anderson
411f7693c3 - removed threader from version tracker
- replaced mutexes with critical sections for windows

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401093
2007-07-09 23:42:30 +00:00
David Anderson
b94de1dfae synced linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401091
2007-07-09 16:14:16 +00:00
David Anderson
b13e48ae0b added threader to core (not used yet)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401090
2007-07-09 16:10:23 +00:00
Scott Ehlert
984df35414 Fixed amb581 - reentrancy problems with Call_Finish()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401088
2007-07-09 06:03:04 +00:00
David Anderson
0756c18bea wrong name for setcmdreplysource
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401083
2007-07-08 20:08:15 +00:00
David Anderson
de2db4670f fixed windows build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401080
2007-07-08 19:02:27 +00:00
David Anderson
3f4158aa7e added support for escape characters in SMC files
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401079
2007-07-08 18:43:13 +00:00
David Anderson
9a2fbe5f9f added requests amb565 and amb445
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401078
2007-07-08 18:00:35 +00:00
David Anderson
6dd0ff6b07 added amb577
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401077
2007-07-08 17:43:40 +00:00
David Anderson
f3566e6f4c cleanup of vector import
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401076
2007-07-08 17:34:44 +00:00
David Anderson
c1190fe89d added vector stuff
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401075
2007-07-08 17:33:10 +00:00
Scott Ehlert
da8399c870 Gameconfs now support descriptions to identify games with '!' at the beginning of the string
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401070
2007-07-08 09:34:20 +00:00
David Anderson
9400850d03 removed a message that could have been spammed on mods with only one platform binary
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401067
2007-07-08 04:38:07 +00:00
David Anderson
e87d5a0a6a fixed a small bug where trie replace didn't always work
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401066
2007-07-08 04:36:14 +00:00
David Anderson
a2617e5644 gameconfs can now inherit properly with a new trie replace function
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401063
2007-07-08 03:17:29 +00:00
David Anderson
5743211846 removed errors on faulty gameconf sig finds - this sort of made partial inheritance awkward because an error could be thrown even if the signature was found later
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401060
2007-07-07 23:24:36 +00:00
David Anderson
904aceb435 fixed bug amb569
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401056
2007-07-07 18:24:02 +00:00
David Anderson
081620b1d3 added amb543
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401055
2007-07-07 18:17:49 +00:00
Scott Ehlert
cce60de20f Fixed bug where multiple "#default" sections in game config file would be ignored if the first section does not work for the running game/mod
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401049
2007-07-07 04:06:47 +00:00
Borja Ferrer
8bf7cb08f2 added a time stamp argument to FormatTime
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401047
2007-07-05 14:47:36 +00:00
Borja Ferrer
b80d04ba01 added amb449
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401043
2007-07-04 11:09:48 +00:00
David Anderson
d5dbffc6ab added amb505
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401042
2007-07-03 20:46:17 +00:00
David Anderson
17ac4f9331 fixed amb522
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401041
2007-07-03 20:22:39 +00:00
David Anderson
cb77ef5b7d fixed amb455
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401040
2007-07-03 20:16:40 +00:00
David Anderson
816bdc8102 added request amb515
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401039
2007-07-03 19:03:14 +00:00
David Anderson
8da18eefac updated linux makefile
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401035
2007-06-30 16:50:13 +00:00
David Anderson
b649d60cb0 - added IADTFactory for sdktools
- updated sample extension and sdktools sdks

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401034
2007-06-30 16:43:11 +00:00
David Anderson
c19c607b14 fixed amb472
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401031
2007-06-27 01:55:18 +00:00
David Anderson
1915dd049e fixed a bug where improper event removals could cause a crash
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401028
2007-06-26 22:28:37 +00:00
David Anderson
37622cece6 fixed exec'ing from cfg literally
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401027
2007-06-26 20:10:36 +00:00
Scott Ehlert
3c809ae9b0 Made some things const in convar_sm.h
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401026
2007-06-26 19:29:24 +00:00
David Anderson
a3f7248990 cvar exclusion hack -- amb468
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401025
2007-06-26 18:34:06 +00:00
David Anderson
271a8b5b56 - sourcemod can now unload properly without crashing
- extensions now unload, dependencies are resolved

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401024
2007-06-26 17:08:07 +00:00
David Anderson
5e7b7589be PrintToChat/PrintToCenter natives will now break out of displaying if FormatString throws an error
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401023
2007-06-25 23:14:24 +00:00
David Anderson
ca3d74be45 .txt is now assumed for LoadTranslations() when no extension exists
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401020
2007-06-24 21:38:02 +00:00
David Anderson
28d24a7f97 - renamed translation files from .cfg -> .txt
- renamed trans core file to core.phrases.txt
- renamed trans common file to common.phrases.txt
- added some backwards compat so this doesn't break everyone's plugins

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401019
2007-06-24 21:14:06 +00:00
David Anderson
c5b593a275 added a bcompat hack to deal with upcoming .cfg -> .txt changes in core
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401018
2007-06-24 21:04:20 +00:00
David Anderson
2f3e46f8f8 added SetGlobalTarget() calls to anything that uses Format()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401017
2007-06-24 19:40:25 +00:00
David Anderson
493ee21c6d fixed bug amb400
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401014
2007-06-24 01:45:33 +00:00
David Anderson
368432baf5 added MenuAction_DrawItem for changing how an item gets drawn
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401012
2007-06-22 22:37:22 +00:00
David Anderson
38f95fc63d - added request amb426
- "Back" is now "Previous" and "Back" is used for ExitBack
- menu api got bumped again, but will be compat

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401011
2007-06-22 21:04:13 +00:00
David Anderson
efea4ebbcb fixed amb424
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401010
2007-06-22 18:44:27 +00:00
David Anderson
97c5ff6b65 fixed a bug where the "keyOnly" parameter to KvGotoNextKey was read backwards
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401008
2007-06-22 17:24:48 +00:00
Scott Ehlert
aef5ba1d09 Implemented amb423 - Added IsClientObserver() native
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401007
2007-06-22 15:37:12 +00:00
David Anderson
3e88c91ad2 added ability to use NULL_STRING in KeyValues natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401006
2007-06-22 14:59:26 +00:00
Scott Ehlert
db83c8e2d9 Fixed a million bugs in reserved slots plugin - should be perfect now (I hope)
Finalized KickClient native

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401004
2007-06-22 03:43:00 +00:00
David Anderson
58eedf6226 bumped menu api again - added feature to get menu end reason
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401003
2007-06-21 23:06:37 +00:00
Scott Ehlert
b93aea922f Changed "Player" to "Client" in error messages about clients (attempt at some sort of error message consistency)
P.S. Happy 1000 Revisions, SourceMod!

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401000
2007-06-20 11:30:29 +00:00
Scott Ehlert
243d31b7a6 Added KickClient() native. This is so that the "Kicked from console" string doesn't appear in the disconnect reason.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40998
2007-06-20 11:06:58 +00:00
Scott Ehlert
6762b6c29f This was a long time coming, but - renamed "sm convars" to "sm cvars"
This is sort of a consistency fix due to the "sm_cvar" command in basecommands.sp

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40996
2007-06-20 08:54:26 +00:00
David Anderson
254fc2557a - removed OnServerCfg in favor of OnConfigsExecuted
- added AutoExecConfig() which automates safe config execution

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40984
2007-06-18 07:04:22 +00:00
David Anderson
33b2d04e2d fixed a bug where menu handler used wrong variable for param2 bitmask in MenuVoteEnd
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40983
2007-06-18 03:39:15 +00:00
David Anderson
e16d731d81 fixed a bug where linux did not read dladdr() return value right for gameconfs
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40979
2007-06-17 19:23:43 +00:00
David Anderson
ffc624fe54 fixed bug amb401
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40978
2007-06-17 18:48:46 +00:00
David Anderson
c5898044c1 Fixed a bug where the GameConfig file cache was not cleared once a file was fully closed
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40977
2007-06-17 18:26:34 +00:00
David Anderson
68d2f741cf added extensive menu action logging
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40976
2007-06-17 18:06:03 +00:00
David Anderson
5b7d82570f fixed a state bug in the gameconf parser that would break parsing after a signature section was done
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40975
2007-06-17 07:32:31 +00:00
David Anderson
1e1992482f finally exposed IGameHelpers interface
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40971
2007-06-17 04:04:17 +00:00
David Anderson
9bd438d3bb fixed a bug where only one signature per file would be parsed
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40970
2007-06-17 02:50:04 +00:00
David Anderson
35c13983df fixed a bug when no one votes for a menu
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40968
2007-06-16 22:10:22 +00:00
David Anderson
8335aab394 fixed bug amb399
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40967
2007-06-16 22:04:46 +00:00
David Anderson
8437e8ee04 added request amb404
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40966
2007-06-16 21:56:12 +00:00
David Anderson
fe0d41198b fixed bug amb402
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40965
2007-06-16 21:42:05 +00:00
David Anderson
29f36e2e3f fixed linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40957
2007-06-16 15:15:30 +00:00
David Anderson
c133002c14 added handle reading to GameConfigManager
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40955
2007-06-16 08:35:26 +00:00
David Anderson
b706a6990c - moved gamedata out of "configs"
- added signature scanning to gameconfs
- renamed "*" to "#default" in gameconfs
- added new inheritance feature to gameconfs

--HG--
rename : configs/gamedata/core.games.txt => gamedata/core.games.txt
rename : configs/gamedata/sdktools.games.txt => gamedata/sdktools.games.txt
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40953
2007-06-16 05:42:16 +00:00
David Anderson
74a2a1498c ShareSys::AddDependency now functions
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40947
2007-06-16 01:34:05 +00:00
Scott Ehlert
173037a0e9 Added -Wno-unitialized to makefile; this is usually the cause of pointless build failures
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40946
2007-06-15 21:40:09 +00:00
David Anderson
6acaaac769 added a hacky way to get NULL references
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40944
2007-06-15 20:23:40 +00:00
Scott Ehlert
28ae0b0d65 Added two new optional paramaters to SetConVar* natives for purpose of replicating convar value to client and/or notifying of convar change
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40942
2007-06-15 06:26:19 +00:00
David Anderson
4b613ac5d5 fixed bug amb386
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40941
2007-06-15 03:16:08 +00:00
David Anderson
07d6a7d7ee fixed bug amb395
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40939
2007-06-15 01:58:13 +00:00
David Anderson
86ec0aee32 added database file to linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40938
2007-06-15 01:29:28 +00:00
David Anderson
eee7c78342 fixed ipaddr lookup not working for admins
fixed a bug where steam-based auth could override ip auth

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40937
2007-06-08 16:14:22 +00:00
David Anderson
2e3c61c849 SourceMod now does authentication in core; admin-auth gets removed. this has an added bonus that OnClientAuthorized reliably has whether an admin is validated
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40936
2007-06-08 07:54:45 +00:00
David Anderson
0ceec15c5a - ShowActivity() now handles command usage confirmation
- added sm_ban
- fixed up various issues and bugs in basecommands.sp

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40930
2007-06-08 03:38:57 +00:00
David Anderson
a5d17bbf6b - sm_show_activity is now protected
- added sm_who
- added GetCmdReplySource() for sm_who

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40929
2007-06-08 01:58:26 +00:00
David Anderson
2463cf50bf mispelled "phrase"
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40925
2007-06-07 22:26:38 +00:00
David Anderson
be6335c91a Fixed bugs amb352 and amb274
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40922
2007-06-07 18:50:52 +00:00
David Anderson
63c5d05747 added profiler (windows only for now) and a benchmark script
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40920
2007-06-07 07:29:55 +00:00
David Anderson
092c4e88e9 - initial import of the first admin plugin (woot! it has one command!)
- added ShowActivity() native
- added lang.inc to sourcemod.inc

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40916
2007-06-07 06:17:57 +00:00
David Anderson
a2dff5f7d0 - fixed a bug where translation parameters were simply not read right
- fixed some oddness about how SourceMod determines that a phrase does not exist

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40915
2007-06-07 06:16:38 +00:00
Scott Ehlert
ebf3afb35f Added SVN Id keyword to plugin headers
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40914
2007-06-07 06:08:16 +00:00
David Anderson
d79c0223c1 fixed a bug where GetAdminFlag could return false if a user had root
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40913
2007-06-07 05:53:50 +00:00
David Anderson
9f9b92ec43 fixed a bug where the console was not a valid loggable player from %L
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40912
2007-06-07 05:53:32 +00:00
David Anderson
c94e1f7a97 added %L format specifier for logging player info
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40911
2007-06-07 04:47:03 +00:00
David Anderson
30eb92174f fixed the Windows build! (it's not too often we say that, eh)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40910
2007-06-07 04:08:34 +00:00
David Anderson
00e9d047c7 added sm_dump_handles command for tracking down Handle leaks... more to come someday
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40906
2007-06-07 02:36:54 +00:00
Scott Ehlert
897135194b Moved FakeClientCommand from clients.inc to console.inc since it was also moved internally
Fixed internal buffer sizes in PrintToChat() and PrintCenterText()

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40905
2007-06-07 02:26:06 +00:00
David Anderson
f6a1db7633 added say_team hooks
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40903
2007-06-06 22:37:36 +00:00
David Anderson
7ab88f2020 added config options for chat triggers
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40902
2007-06-06 22:31:54 +00:00
David Anderson
1eb1072687 the "No Access" phrase now replies correctly from chat triggers
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40901
2007-06-06 22:26:40 +00:00
David Anderson
c094ea1b22 added linux support to chat triggers
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40900
2007-06-06 22:18:53 +00:00
David Anderson
c843825e71 - added experimental (so far) support for SourceMod chat triggers
- added ReplyToCommand() for replying to triggers nicely

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40899
2007-06-06 22:16:15 +00:00
Scott Ehlert
bd15f93d7d Implemented amb370 - added PrintToChatAll stock
Also added PrintCenterTextAll stock

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40898
2007-06-06 20:51:17 +00:00
Scott Ehlert
96527c93dc Changed a few natives/stocks that should have used IsClientInGame() rather than IsClientConnected()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40897
2007-06-06 20:42:46 +00:00
Scott Ehlert
3a182c20b1 Plugin_Stop now works for event hooks
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40896
2007-06-06 20:03:35 +00:00
Scott Ehlert
db97cf2cc8 Fixed Linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40895
2007-06-06 18:38:23 +00:00
David Anderson
5193fe5a4e - fixed a serious bug where %T arguments were read backwards (they now match the wiki documentation of phrase and then client)
- fixed a bug where the argument count for %T was not checked properly

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40894
2007-06-06 17:34:35 +00:00
David Anderson
8303b79ef7 fixed a crash bug in translation file loading where big files would reset the string cache and not update pointers
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40893
2007-06-06 17:34:16 +00:00
David Anderson
1b6b0f6c5e added GetSysTickCount for benchmarking
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40892
2007-06-06 16:40:30 +00:00
David Anderson
13493fd7d5 exposed new voting features to plugins (MenuAction_VoteCancel, IsVoteInProgress)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40891
2007-06-06 06:33:57 +00:00
David Anderson
6f4784e3d1 - vote menus now get cancelled properly (and get a new callback with it)
- added api for seeing if a menu is in a VoteDisplay
- fixed another item count bug
- removed some cruft from the vote handler header

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40890
2007-06-06 06:27:47 +00:00
David Anderson
749f2a2ce7 fixed inheritance not being used in the base menu style when removing clients from the watch list
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40889
2007-06-06 06:04:16 +00:00
David Anderson
92e8b40b99 fixed a bug where votes could potentially select a completely invalid item
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40888
2007-06-06 06:02:43 +00:00
David Anderson
465a3962cb yet again
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40887
2007-06-05 18:27:31 +00:00
David Anderson
2a801d8c09 reverted bad change
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40886
2007-06-05 18:24:30 +00:00
David Anderson
a290cf6c1b fixed linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40885
2007-06-05 17:21:47 +00:00
David Anderson
2ee18824e9 added vote functionality
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40884
2007-06-05 16:44:19 +00:00
David Anderson
aea69f5fe8 added experimental voting API
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40883
2007-06-05 16:27:45 +00:00
David Anderson
a3687d9258 databases now get separate handles for persistent connections
removed GetHandle from IDatabase
simplified IDatabase::Close

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40881
2007-06-01 21:26:52 +00:00
Scott Ehlert
3ed301e9af Fixed builds *sigh*
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40880
2007-06-01 07:21:07 +00:00
Scott Ehlert
6c17b9f37b - Added natives: PrintToChat() and PrintCenterText()
- Bit of reorganization with moving some natives from sourcemod.inc to halflife.inc

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40879
2007-06-01 06:33:54 +00:00
David Anderson
eb54cbb4f5 fixed various bugs in the sql natives and manager
added a basic test plugin

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40875
2007-06-01 04:22:53 +00:00
David Anderson
e334e5f7e7 -initial import of database natives + config
-initial import of completed database layer
-CreateIdentity now requires a non-optional second pointer.  This breaks backwards compatibility for CreateIdentity(), however, this is not a function extension authors are supposed to be calling

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40874
2007-06-01 02:30:29 +00:00
Scott Ehlert
d461239e74 Fixed amb362 - convars could sometimes appear more than once in convar list
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40873
2007-05-31 21:35:33 +00:00
Scott Ehlert
d48e1f358e Disabled RTTI in all MSVC project files - this has the side effect of reducing the size of some Windows binaries
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40871
2007-05-30 04:54:35 +00:00
David Anderson
11470d81ca added new (somewhat experimental) mysql extension and finalized the API
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40868
2007-05-30 03:25:18 +00:00
Scott Ehlert
1dffe2e648 Fixed linux build *sigh*
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40867
2007-05-29 22:05:52 +00:00
Scott Ehlert
8bd6bf1b57 Implemented amb20 - 'sm plugins info' now shows when plugin will be reloaded
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40866
2007-05-29 20:18:53 +00:00
David Anderson
f48263b9d2 posted new IDBDriver API - no natives are implemented yet, MySQL extension coming very shortly
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40864
2007-05-29 08:32:12 +00:00
David Anderson
be634bb027 - the handle system now lets you create HandleSecurity structs easier, but source compatibility is broken (using the old syntax wasn't really good C++ anyway!)
- fixed VM including PluginSys for some reason

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40863
2007-05-29 08:30:13 +00:00
Scott Ehlert
c1c293ccc4 Fixed amb324 - Client index of host was sometimes passed as 0 on listen server
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40862
2007-05-28 07:25:12 +00:00
David Anderson
ca3c8eb6b7 fixed a bug in the index-based linked list template which caused head or tail removals (but not both) to result in a corrupt link chain
additionally, fixed a bug where the list size was not maintained properly

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40860
2007-05-24 02:25:18 +00:00
Borja Ferrer
942c3acd8e spelling mistake
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40857
2007-05-23 20:24:28 +00:00
David Anderson
196a665d51 implemented request amb302 (onservercfg and onmapstart are now called if a plugin is late loaded)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40854
2007-05-23 17:54:45 +00:00
David Anderson
60386df00f fixed a bug where disconnected clients did not have their menus cancelled for radio style menus
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40852
2007-05-23 16:56:24 +00:00
David Anderson
82c578f32d added request amb320
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40846
2007-05-23 02:26:43 +00:00
David Anderson
caab299d3e Added request amb231 (OnPluginStart errors cause load failures)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40844
2007-05-23 01:59:58 +00:00
David Anderson
936337e54d added request amb293 - SetFailState
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40843
2007-05-23 01:44:00 +00:00
Borja Ferrer
f4390609b3 re-added old float rounding native
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40842
2007-05-22 23:45:53 +00:00
David Anderson
4db651b4de fixed linux build
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40841
2007-05-22 23:00:12 +00:00
David Anderson
5a50d8ca0a added string splitting, exploding, and imploding
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40840
2007-05-22 22:58:51 +00:00
David Anderson
0ef8935839 added ReplaceString and ReplaceStringEx (phew!)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40839
2007-05-22 20:50:48 +00:00
Borja Ferrer
e60940834b added floating point optimizations to the JIT
standarised a bit more x86_macros.h
some asm optimizations to bintools extension

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40837
2007-05-22 15:15:51 +00:00
Scott Ehlert
307181de8d Added TrimString() native
Renamed StrBreak to BreakString

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40836
2007-05-22 03:42:04 +00:00
Scott Ehlert
a5e3c79402 Wow, how did this go unnoticed:
Fixed ILibrarySys::GetFileExtension() and loading plugins without the "smx" extension.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40835
2007-05-22 03:39:18 +00:00
David Anderson
48cf71877b fixed a bug where the menu watch processor removed the wrong index from its list
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40831
2007-05-21 05:00:38 +00:00
David Anderson
314e7097f8 added request amb285
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40828
2007-05-21 01:54:17 +00:00
David Anderson
459a9d41ba added request amb278
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40827
2007-05-21 01:28:38 +00:00
David Anderson
1049600e99 disallowed pagination of 1
fixed pagination setting bugs in valve style

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40826
2007-05-21 01:18:55 +00:00
David Anderson
daceab19cd added key selection setting
fixed amb309

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40825
2007-05-21 01:11:37 +00:00
David Anderson
2cad3c3424 fixed capitalization on uint64 keyvalues natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40822
2007-05-19 21:36:14 +00:00
David Anderson
6328445043 vm errors from dynamic natives will now be explained more clearly to the calling plugin
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40811
2007-05-16 21:53:47 +00:00
David Anderson
f3b3ca6b22 jit errors will now get passed upwards
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40809
2007-05-16 18:30:43 +00:00
Scott Ehlert
727e15b5a3 Yikes, fixed HookEventEx()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40808
2007-05-16 05:04:28 +00:00
Scott Ehlert
4ed2d6e515 Implemented amb296 - Added HookEventEx() which does not generate a runtime error if the event does not exist and returns false instead.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40807
2007-05-16 04:09:31 +00:00
David Anderson
c9bc46e770 core will now ignore missing natives starting with '@'
the compiler will now resolve aliased natives to single references and export '@' natives for each redundant entry

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40804
2007-05-15 04:59:24 +00:00
David Anderson
82e07a9bf0 fixed a visual spacer being added to radio menus when no control options existed
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40803
2007-05-15 02:23:12 +00:00
David Anderson
a03caa9120 fixed makefile for radio menus being excluded
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40801
2007-05-14 22:10:18 +00:00
Scott Ehlert
515be43896 Implemented amb286 - .smx extension no longer required with "sm plugins load"
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40800
2007-05-14 21:29:17 +00:00
Scott Ehlert
663906c60e Fixed amb289 - Crash on SourceMod shutdown when hooking events as post in Linux.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40798
2007-05-14 06:45:27 +00:00
David Anderson
2af178229d fixed linux build for menu natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40797
2007-05-14 04:48:03 +00:00
David Anderson
49369d07bc redid API yet again - IMenuHandler is now bound to an IBaseMenu instance
implemented MOST natives
removed broadcasting/voting handlers for the time being
fixed a crash bug in basecontext when i didn't obey the api
moved radio displays to a caching stack

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40796
2007-05-14 04:46:06 +00:00
David Anderson
d1dea716a6 Added a re-entrancy check to Handles so the destructor won't fire twice in certain cases
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40795
2007-05-13 22:36:22 +00:00