Commit Graph

269 Commits

Author SHA1 Message Date
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
David Anderson
66b244011e added ThrowError() a la amxmodx's abort()
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40566
2007-03-02 19:10:44 +00:00
Scott Ehlert
9de900d3eb Made this const for great justice
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40565
2007-03-02 09:15:54 +00:00
David Anderson
de588c77b9 added state change function
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40564
2007-03-02 08:34:13 +00:00
David Anderson
ec62fb6892 added initial private offset functions
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40563
2007-03-02 08:00:45 +00:00
David Anderson
bbb373297f fixed some bugs with edicts and players
added classname retrieval functions

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40562
2007-03-02 01:56:56 +00:00
David Anderson
a0ae2a5b16 added a few new entity natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40561
2007-03-02 01:21:43 +00:00
David Anderson
16eab8a091 internal reorganization
renamed edict to entity where appropriate

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40560
2007-03-02 00:52:55 +00:00
Borja Ferrer
3b207f2cc9 implemented GetUserMessageName native
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40559
2007-03-01 23:44:27 +00:00
Borja Ferrer
7ebe3f33cd initial implementation of message hooks
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40558
2007-03-01 22:49:08 +00:00
David Anderson
f7df18f6fd fixed crash when gamedata is missing
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40557
2007-03-01 16:35:06 +00:00
David Anderson
124f9ba049 slight reorganization for future expansion
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40555
2007-03-01 04:18:23 +00:00
David Anderson
d893af2ea4 added keys to game config files
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40554
2007-03-01 03:58:18 +00:00
David Anderson
8d29b2c02e initial import of game compatibility backend
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40553
2007-03-01 01:02:47 +00:00
David Anderson
3fec219433 fixed bug where Plugin_Handled didn't block commands
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40552
2007-02-27 23:51:38 +00:00
Scott Ehlert
5cccd9a242 Added hex format specifier (%X and %x)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40550
2007-02-27 21:30:04 +00:00
David Anderson
09887584f4 added functions for target immunity testing
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40546
2007-02-27 03:32:14 +00:00
David Anderson
52de18813c fixed stupid export
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40545
2007-02-26 09:21:08 +00:00
David Anderson
38532ccdad removed redundant float native
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40543
2007-02-26 08:50:25 +00:00
David Anderson
78eb5b7747 removed Handle:myself from OnPluginStart
added GetMyHandle to get handle now, but there's no use...

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40542
2007-02-26 08:32:20 +00:00
David Anderson
5cb299014a added sorting natives (phew)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40541
2007-02-26 08:21:09 +00:00
David Anderson
1cc70a46eb added a crapload of random natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40538
2007-02-26 05:26:54 +00:00
David Anderson
95e92b25aa added a gameframe hook
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40537
2007-02-26 04:36:15 +00:00
David Anderson
bb69a9f0d2 added random number natives
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40536
2007-02-26 04:24:06 +00:00
David Anderson
0b8874e5ec fixed a series of crash bugs related to CreateForward() with a NULL typeset
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40535
2007-02-26 02:51:14 +00:00
David Anderson
e4fdaede32 added per-handle security (untested)
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40534
2007-02-26 02:47:03 +00:00
David Anderson
8567d140d2 re-added this back, it was a good idea after all
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40533
2007-02-22 02:20:15 +00:00
David Anderson
81a6bc3288 removed unnecessary code
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40532
2007-02-22 02:09:46 +00:00
David Anderson
8553f12d59 Corrected an API design flaw with pausing. Contexts can now be flagged as paused, and IsRunnable() is moved from IBaseContext to IPluginFunction. While this allows for per-function pausing, it is not intended that way.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40531
2007-02-22 02:05:50 +00:00
David Anderson
3de592d387 added replicated version cvar
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40530
2007-02-21 22:09:05 +00:00
David Anderson
dc06ac6501 added server command functions
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40528
2007-02-21 22:05:25 +00:00
David Anderson
ae5dfd0966 added helper a core translation helper to the translator
regadmincmd is now officially done and tested, as are overrides
printtoplayers now prints to the server on id==0 as a convenience
fixed a crash bug in the admin system
fixed up console.inc a bit

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40526
2007-02-17 19:03:18 +00:00
David Anderson
3be7988cd1 fixed printtoconsole crashing on fake clients
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40525
2007-02-17 17:35:09 +00:00