Commit Graph
97 Commits
Author SHA1 Message Date
Valentin Grünbacher a68df8de7f Engine: Fix bcompat and consistency for CHECK_ENTITY 2015-07-13 15:38:37 +02:00
Valentin Grünbacher 7059f5b3b9 Engine: Detour LightStyle to catch all calls, restores set_lights() functionality 2015-06-11 20:49:00 +02:00
Valentin Grünbacher 8b6d85eb78 Engine: Add a bunch of missing CHECK_ENTITY() and CHECK_ENTITY_SIMPLE() 2015-05-11 16:15:44 +02:00
Valentin Grünbacher dc73473394 Engine: Fix CHECK_ENTITY() logic error (0 is not a player) 2015-05-11 16:15:44 +02:00
Valentin Grünbacher 7bf47f90d9 Engine: Use UTF-8 functions where KeyValueData is touched 2015-05-11 16:15:43 +02:00
Valentin Grünbacher c24fbda302 Engine: Add error path to DispatchKeyValue() based on g_inKeyValue
This was unsafe as g_pkvd is pointed to a stack variable that is only valid while inside of pfn_keyvalue()
2015-05-11 16:15:43 +02:00
Valentin Grünbacher 702f784e44 Engine: Fix get_info_keybuffer() not being able to retrieve local keybuffer 2015-05-11 16:15:43 +02:00
Valentin Grünbacher 679714c8be Engine: Add error path for remove_entity() and unsafe entity ids 2015-05-11 16:15:43 +02:00
Valentin Grünbacher ff0ca9ba67 Engine: Remove inconsistent error path from entity_get_int() 2015-05-11 16:15:42 +02:00
Valentin Grünbacher ee0bcc39f1 Engine: Clarify difference between the engine module trace handle and the "real" global trace 2015-05-11 16:15:42 +02:00
Valentin Grünbacher ebdd015aae Restore traceresult() functionality by writing to g_tr in trace functions 2015-05-11 16:15:42 +02:00
Valentin Grünbacher 3c1022af99 Engine: Add a destination parameter to trace_hull() to make it more useful 2015-05-11 16:15:42 +02:00
Valentin Grünbacher add4867d21 Engine: Add safe get_global_edict2() and entity_get_edict2() 2015-05-10 23:56:06 +02:00
Valentin Grünbacher d69fddf8b4 Engine/Core: Move precache_event() to core 2015-05-10 23:45:01 +02:00
Valentin Grünbacher 218fb9c794 Engine: Add unregister_[touch|think|impulse]() 2015-05-10 23:40:22 +02:00
Valentin Grünbacher c531ad756d Engine: Dynamically hook StartFrame for set_lights() 2015-05-10 23:21:12 +02:00
Valentin Grünbacher fbcbbd8421 hlsdk_const: Add MoveToOrigin move type constants 2015-05-10 14:37:40 +02:00
Valentin Grünbacher 00f9b62ffb cstrike: Add create_entity() note from engine, rewording 2015-05-10 14:37:39 +02:00
Valentin Grünbacher 59d8d2807f engine_const: Add sections and comments 2015-05-10 14:37:36 +02:00
Valentin Grünbacher d9f792b712 engine: Add documentation, group similar natives 2015-05-10 14:37:16 +02:00
Valentin Grünbacher abf7f1a41b Expose get_amxstring_null and get_amxvector_null to modules 2015-05-06 12:01:15 +02:00
Valentin Grünbacher fdb180e062 Add NULL_VECTOR 2015-05-06 11:28:54 +02:00
Valentin Grünbacher 79189c86ab Add basic kvd doc to fakemeta.inc and fix ham_const.inc lies 2015-05-05 11:16:26 +02:00
Valentin Grünbacher 8172519389 Improve handling of KeyValueData in FM and make it compatible with Ham
- KVD_Wrapper compatibility with Ham by making |&kvdw == &kvdw.kvd|
- Replaces g_kvd_hook with a generic g_kvd_ext to support raw KVD from Ham
- Adds create_kvd() and free_kvd() so plugins have something to feed Ham with
2015-04-21 00:18:21 +02:00
Valentin Grünbacher a35bc43cab datapack.inc: Fix copy-pasted error description 2015-04-06 13:33:55 +02:00
Valentin Grünbacher 081b683e03 Update datapack test plugin 2015-03-30 04:14:55 +02:00
Valentin Grünbacher 2166c32047 Make datapack natives error consistently, stop using IsPackReadable 2015-03-30 04:14:55 +02:00
Valentin Grünbacher 1d57677426 Add CanRead[Cell|Float|String|Memory] to CDataPack 2015-03-30 04:14:54 +02:00
Valentin Grünbacher 9abe6cd8f6 Add IsPackEnded native (IsPackReadable replacement) 2015-03-30 04:14:54 +02:00
Valentin Grünbacher 9d4c02f7ca Nuke IsPackReadable
This native exposes/requires knowledge about implementation details of the
internal DataPack structure. Plugins can not properly deal with this, and
abusing this functionality results in a chance of future breakage.
2015-03-30 03:48:52 +02:00
Valentin Grünbacher 4fbf4ee03d Merge datapack updates from SoureMod 2015-03-15 22:38:49 +01:00
Valentin Grünbacher bc9710e8f2 inc-doc2 nits/finishing touches 2015-03-09 19:41:21 +01:00
Valentin Grünbacher 902cecb0c3 amxconst: Minor improvements on client_print natives 2015-03-09 19:41:20 +01:00
Valentin Grünbacher 950f3f97c1 datapack: Tabs->spaces, consistency, nuke IsPackReadable 2015-03-09 19:41:19 +01:00
Valentin Grünbacher 828d9971a4 cvars: Style touchups, add missing stuff, update notes about named access 2015-03-09 19:41:18 +01:00
Valentin Grünbacher 50fea6be75 cstrike/csx/csstats: Added documentation, consistency updates, typo fixes 2015-03-09 19:41:18 +01:00
Valentin Grünbacher a1c5c20d7e amxmodx: Consistency updates, typo fixes, missing return/error added 2015-03-09 19:41:17 +01:00
Valentin Grünbacher ae86152282 cellarray/celltrie/cellstack: Documentation fixes and consistency updates 2015-03-09 19:41:16 +01:00
Valentin Grünbacher 9eb0eaf6a6 core: Add documentation 2015-03-09 19:41:15 +01:00
Valentin Grünbacher 5f278eee7b amxmisc: Documentation updates and additions 2015-03-09 19:41:15 +01:00
Valentin Grünbacher 78f577686a Fix ArrayDestroy/DestroyStack erroring on null handle 2015-02-17 23:24:17 +01:00
Valentin Grünbacher 41d7554efd Fix recursion issues with show_menu and newmenus 2014-10-11 00:35:05 +02:00
Valentin Grünbacher b096f94ca4 amxconst: Purge tabs 2014-08-07 23:13:03 +02:00
Valentin Grünbacher a63042d961 amxmodx/cellarray: Assorted consistency updates and typo fixes 2014-08-07 23:02:39 +02:00
Valentin Grünbacher 8b42767b19 amxmodx: Precaching documentation is the bane of my existence 2014-08-07 22:01:21 +02:00
Valentin Grünbacher 20a173d8a3 amxmodx: Improve precache comments 2014-08-07 21:49:56 +02:00
Valentin Grünbacher 08315a4329 message_const: Move TE_USERTRACER example into the comment block 2014-08-07 21:42:18 +02:00
Valentin Grünbacher 4231c5a6ae amxmodx: Sixth and final batch of documentation updates 2014-08-07 21:26:37 +02:00
Valentin Grünbacher bbffcbf739 cellarray: Update lying ArrayCreate doc 2014-08-07 21:17:45 +02:00
Valentin Grünbacher 88b69ea8a1 amxmodx: Update change_level doc for consistency 2014-08-07 01:46:11 +02:00
Valentin Grünbacher 1fb91dc02e Merge branch 'master' of ssh://github.com/alliedmodders/amxmodx into inc-doc
Conflicts:
	plugins/include/amxmodx.inc
	plugins/include/message_const.inc
	plugins/include/sockets.inc
2014-08-07 01:44:04 +02:00
Valentin Grünbacher c1ed795196 sockets: Convert file to UTF-8 2014-08-07 00:51:17 +02:00
Valentin Grünbacher 9a0a52b7b2 amxmodx: Fix typos, touch up some descriptions, remove/merge lonely comments 2014-08-07 00:46:16 +02:00
Valentin Grünbacher 37e22dc22f amxmodx: Fifth batch of documentation updates 2014-08-07 00:19:24 +02:00
Valentin Grünbacher 3a232f1576 message_const: Add placeholder titles for TE_* messages missing a description 2014-08-05 20:18:16 +02:00
Valentin Grünbacher 9885c926e9 message_const: Fix up all headings and move notes into the new headings 2014-08-05 20:09:57 +02:00
Valentin Grünbacher 2659e63483 amxconst: Add some more structure 2014-08-05 18:59:08 +02:00
Valentin Grünbacher d9b20d7896 amxconst: Move SND_* constants where they belong 2014-08-05 18:48:37 +02:00
Valentin Grünbacher 566596f7b4 cellarray: Touch up documentation to make the parser happy and make it consistent 2014-08-05 16:05:19 +02:00
Valentin Grünbacher d60c94cbb1 amxmodx: Fourth batch of documentation updates 2014-08-05 01:39:16 +02:00
Valentin Grünbacher 9e9e3a9abd hlsdk_const: Fix up section heading to make docgen happy, purge tabs 2014-08-04 23:54:07 +02:00
Valentin Grünbacher 63cf35b904 hlsdk_const: Fix up headings for proper display in api reference 2014-08-04 19:55:45 +02:00
Valentin Grünbacher bc3808cb3f ham_const: Fix up headings for proper display in api reference 2014-08-04 19:39:40 +02:00
Valentin Grünbacher b5aef1856d amxmodx: Third batch of documentation updates 2014-08-04 19:24:36 +02:00
Valentin Grünbacher f134ff9fdf amxmodx: Second batch of documentation updates 2014-08-04 16:29:01 +02:00
Valentin Grünbacher c9316542be amxconst: Grant @xPaw his beloved tabs 2014-08-04 02:32:12 +02:00
Valentin Grünbacher 8ba288cfb1 amxmodx: First batch of documentation updates 2014-08-04 00:48:37 +02:00
Valentin Grünbacher 9544364116 amxconst: Purge tabs 2014-08-04 00:35:52 +02:00
Valentin Grünbacher 79f15d5621 amxconst: Fix up the headings some more and move long descriptions to @note 2014-08-04 00:30:49 +02:00
Valentin Grünbacher 5aef27a3ab amxconst: Add proper headings for all constant types 2014-08-03 16:33:08 +02:00
Valentin Grünbacher dc3e68c507 Newmenus: Fix typo in error message 2014-05-27 10:38:25 +02:00
Valentin Grünbacher a6ffae72f5 Newmenus: Add get_menu_by_id and use it everywhere 2014-05-27 10:33:53 +02:00
Valentin Grünbacher c91d67912b Newmenus: Update MENU_TIMEOUT doc 2014-05-27 10:32:28 +02:00
Valentin Grünbacher 50fbf29b3b Newmenus: Fix unsigned underflow on "end" variable 2014-05-22 00:07:37 +02:00
Valentin Grünbacher ff18b03250 Newmenus: Add MEXIT_FORCE for proper exit button on non-paginated menus 2014-05-21 22:18:48 +02:00
Valentin Grünbacher 3b87c428dc Newmenus: Add necessary API changes for newmenu timeouts 2014-05-21 19:17:04 +02:00
Valentin Grünbacher c8b7a09028 Newmenus: get_user_menu should also handle newmenu timeouts properly 2014-05-21 19:01:27 +02:00
Valentin Grünbacher fa5336cade Newmenus: Use Menu::Close everywhere 2014-05-21 18:58:51 +02:00
Valentin Grünbacher 34337fb959 Newmenus: Add Menu::Close to remove a bunch of redundant code 2014-05-21 18:51:55 +02:00
Valentin Grünbacher 6a4c55de7d Newmenus: Fire MENU_TIMEOUT on menuselect client command 2014-05-21 18:47:20 +02:00
Valentin Grünbacher 2e8ce87c23 Newmenus: Add MENU_TIMEOUT status code and pass it where necessary 2014-05-21 18:45:40 +02:00
Valentin Grünbacher cd7cb8c1a8 Newmenus: Execute menu callback when old-style menu overwrites new menu
show_menu simply resets CPlayer::newmenu. The menu callback is never fired and the plugin never informed that the menu has been closed. This can result in leaking menu handles. Using "menuselect 10" on the client is not an appropriate solution because it is possible to construct newmenus that contain 10 valid items.
2014-05-21 18:17:09 +02:00
Valentin Grünbacher 25f507c5e3 StatsX: Add is_user_alive check to eventSpawn 2014-05-04 17:04:01 +02:00
Valentin Grünbacher 2fb232ee68 StatsX: Use replace_string and set task timer to 0.1 (AMXX minimum) 2014-05-04 17:03:59 +02:00
Valentin Grünbacher 90c4eed92e StatsX: More charsmax in place of hardcoded buffer lengths 2014-05-04 17:03:58 +02:00
Valentin Grünbacher bf4ba091e4 StatsX: cmdReport has to use LANG_SERVER 2014-05-04 17:03:57 +02:00
Valentin Grünbacher c19b9d9d5d StatsX: Switch spawn detection from ResetHUD to Ham_Spawn 2014-05-04 17:03:56 +02:00
Valentin Grünbacher 5143cada8e StatsX: Don't format roundend hudstats if we don't show them 2014-05-04 17:03:55 +02:00
Valentin Grünbacher f630a8afc8 StatsX: Format team score (g_sScore) on demand 2014-05-04 17:03:54 +02:00
Valentin Grünbacher ccd0adb84d StatsX: Actually use cached player id in end_game_stats 2014-05-04 17:03:53 +02:00
Valentin Grünbacher 4afefa25d1 StatsX: Format roundend stats for each player individually 2014-05-04 17:03:52 +02:00
Valentin Grünbacher 4de2bf21a3 StatsX: Remove implicit usages of global buffers for formatting 2014-05-04 17:03:51 +02:00
Valentin Grünbacher 136309ae6f StatsX: Move hudstats formatting to own function 2014-05-04 17:03:50 +02:00
Valentin Grünbacher 12d2e49adf StatsX: Rip out LANG_SERVER where possible (still pass 0 as id) 2014-05-04 17:03:48 +02:00
Valentin Grünbacher 85bb592eeb StatsX: Switch cvar access to pcvars 2014-05-04 17:03:47 +02:00
Valentin Grünbacher 164285b221 StatsX: Switch from using defines to charsmax 2014-05-04 17:03:46 +02:00
Valentin Grünbacher 297ced77b9 StatsX: Switch format to formatex 2014-05-04 17:03:45 +02:00