David Anderson
bb40b22125
fixed a bug where GetCmdArgString() would crash on 0 parameters
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40639
2007-03-16 20:10:34 +00:00
David Anderson
19cfb041aa
added StrBreak from AMX Mod X, with various improvements
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40637
2007-03-16 20:10:13 +00:00
Borja Ferrer
d5ca9a3872
synced and fixed linux build
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40635
2007-03-16 18:05:47 +00:00
Scott Ehlert
c9f81b9b11
Changed this for the better...
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40634
2007-03-16 18:02:00 +00:00
Scott Ehlert
ccc1dde76d
Fixed minor bug...
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40633
2007-03-16 17:30:36 +00:00
Scott Ehlert
19728377f1
Minor stuff, no need to look
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40632
2007-03-16 17:29:05 +00:00
Scott Ehlert
5fa53bfc68
Dear me, I should have committed this long ago...
...
1) Added natives to create and manipulate global and private forward
2) Added natives to call forwards and functions
3) Added an IChanageableForward::RemoveFunction overload for convenience or something
4) Added test suite plugins for functions and forwards
5) Some random touch-ups to some include files
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40627
2007-03-16 06:54:24 +00:00
David Anderson
0aadfbdfab
added natives for iterating plugins and retrieving plugin info
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40624
2007-03-15 20:10:25 +00:00
David Anderson
dc9f6e405e
fixed two spelling mistakes
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40623
2007-03-15 04:45:33 +00:00
David Anderson
2c70ec1a8c
refactored singleton class names
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40622
2007-03-15 04:45:17 +00:00
David Anderson
043b8f255f
removed const from most apis. it was pointless since there were no actual const pointers.
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40621
2007-03-15 04:34:42 +00:00
David Anderson
0bbb4670fc
my easter egg. if you're wondering, this only took an hour.
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40620
2007-03-15 04:23:46 +00:00
Borja Ferrer
df2d234b06
oh forgot to delete killed timers
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40619
2007-03-14 15:32:28 +00:00
Borja Ferrer
971cb8f7e7
implemented timer natives
...
fixed some design issues in the timer manager
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40618
2007-03-14 11:34:03 +00:00
Scott Ehlert
62aa55b23b
Global forwards created after all plugins have been loaded now properly get filled with IPluginFunction pointers.
...
Added CPluginManager::AddFunctionsToForward() to help do this...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40617
2007-03-14 07:54:54 +00:00
Scott Ehlert
c4a677df79
Made this define consistent with AMXX
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40615
2007-03-14 02:58:12 +00:00
David Anderson
8867fb1ce7
fixed linux build
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40612
2007-03-13 05:55:58 +00:00
David Anderson
21ed05048f
dynamic native providers can now be unloaded safely
...
fixed an api naming typo :(
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40611
2007-03-12 20:40:30 +00:00
David Anderson
8e4a59a4e0
This assertion is no longer correct because of sm_trie_delete()
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40610
2007-03-12 20:11:54 +00:00
David Anderson
b3d3b30855
updated Makefile to have all the .cpp files - we need to keep better track of this
...
various gcc whinings fixed
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40609
2007-03-12 17:42:44 +00:00
David Anderson
7c06d89b00
initial import of dynamic native code for both the JIT and plugins
...
note: dependency resolution is not done yet!
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40607
2007-03-12 07:08:05 +00:00
David Anderson
7ab8e2027b
fixed spacing on headers
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40606
2007-03-12 00:07:54 +00:00
David Anderson
2aa8810021
used a better error number
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40605
2007-03-12 00:06:20 +00:00
Borja Ferrer
f64945b2aa
implemented the bf_read natives
...
message hooks now receive the bf_read handle
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40604
2007-03-11 21:09:05 +00:00
Borja Ferrer
95dcffc972
user messages tested and working
...
fixed some floating point casts
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40603
2007-03-11 19:26:47 +00:00
David Anderson
d8c02c294f
fixed linux build
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40602
2007-03-11 18:37:55 +00:00
David Anderson
c2f106d4c6
added request amb80 (system time)
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40601
2007-03-11 18:30:29 +00:00
Borja Ferrer
d51ea0695f
HAHA estoy usando el internet!!!11!
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40600
2007-03-11 03:25:28 +00:00
Borja Ferrer
f78b3fa086
rewrite of user messages
...
fixed possible iterator corruption
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40599
2007-03-11 03:04:39 +00:00
David Anderson
5b1f1d19c1
part 2 of singleton renaming
...
--HG--
rename : core/CGameConfigs.cpp => core/GameConfigs.cpp
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40598
2007-03-10 21:26:04 +00:00
David Anderson
749ddc8c15
part 1 of singleton renaming
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40597
2007-03-10 21:18:07 +00:00
David Anderson
5228c86e2c
reorganized this a bit
...
--HG--
rename : core/CMsgListenerWrapper.h => core/smn_usermsgs.h
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40596
2007-03-10 21:12:40 +00:00
David Anderson
38c94838b9
IPluginFunction implementation is re-entrant across native calls, as heap allocations are delayed until execution
...
removed ICallable::GetAddressOfPushedParam
removed phys_addr from ICallable::PushArray
fixed a bug where sp_context_t::n_idx was overwritten upon re-entrant calls
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40595
2007-03-10 21:02:40 +00:00
Borja Ferrer
f592744d87
NULL'ed this or something
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40594
2007-03-10 13:36:38 +00:00
Borja Ferrer
5fe8bed256
Added timer system implementation
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40593
2007-03-10 13:16:19 +00:00
David Anderson
bda756f3ff
fixed a really dumb bug - shouldn't compilers be checking this?
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40592
2007-03-10 05:52:51 +00:00
Scott Ehlert
949b83c99b
Reverted change where flags param was removed on PushCellByRef and PushFloatByRef. Instead set the param to a default value of SM_PARAM_COPYBACK. (DS, how dare you!)
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40591
2007-03-07 18:37:41 +00:00
Scott Ehlert
dfed71eb28
Breakage alert :\
...
ThrowNativeErrorEx now returns 0 for convenience
PushCellByRef and PushFloatByRef no longer have a flags parameter because it was almost pointless
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40590
2007-03-07 18:24:09 +00:00
David Anderson
876e3da8e3
fixed the build
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40589
2007-03-07 16:41:12 +00:00
Scott Ehlert
0b25b6d667
Many things:
...
1) General code clean-up in convar manager
2) Fixed bug where convar handles were not being cached for pre-existing convars
3) Fixed bug where a convar's old value and new value were switched in the ConVarChanged hooks
4) Made convar and concmd listings more consistent, I think
5) Alphabetized convar listing
6) Minor clean-up in event manager
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40588
2007-03-06 23:59:25 +00:00
Scott Ehlert
e6a127ac17
Redid case on some error messages
...
Really minor things in EventManager
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40587
2007-03-06 07:38:19 +00:00
Scott Ehlert
c256741488
Renamed CConVarManager to ConVarManager
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40586
2007-03-06 06:49:35 +00:00
Scott Ehlert
70ec3db66c
Commands with the same name as an existing convar can no longer be created
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40585
2007-03-06 06:15:19 +00:00
Scott Ehlert
ac9051ab71
Oh, this isn't needed anymore
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40584
2007-03-06 04:53:14 +00:00
Scott Ehlert
dbb74a612d
Creating/Firing/Canceling events now use CStack to avoid the need to use new when possible
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40583
2007-03-06 04:50:30 +00:00
Scott Ehlert
68f40e96f2
Initial import of event stuff: Natives to hook and fire game events
...
Also made some minor internal changes to convars
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40582
2007-03-04 04:05:03 +00:00
David Anderson
ddfb56c34d
new versioning stuff
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40572
2007-03-03 07:50:01 +00:00
Borja Ferrer
4499f4df75
exposed the message interface
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40571
2007-03-03 00:56:01 +00:00
David Anderson
fd5c410153
aligned header spaces properly
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40568
2007-03-02 19:11:29 +00:00
David Anderson
791cbc985f
added entity functions and stocks for send props
...
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40567
2007-03-02 19:11:04 +00:00