Arkshine
15ad1d2247
Cvars: Moving cvars stuffs in its own files
...
cvars.cpp renamed to CvarManager.cpp
all cvars natives moved to a new cvars.cpp file
Pawn include is updated as wall.
2015-01-23 19:05:34 +01:00
Arkshine
768fa2c3bc
Cvars: Add hook_cvar_change, [enable|disable]_cvar_hook natives
2015-01-23 19:05:33 +01:00
Arkshine
cdc7d550eb
Cvars: Rearrange a bit some code
...
Changed class CCVar -> struct CvarInfo
Added CvarManager class and moved some code there
Code of registering a cvar is rewritten
Cvars datas are stored in a hashtable for fast lookup
For natives compatibility, an inline list is kept (though CList -> ke::InlineList)
Replace some CVAR_GET/SEt_ by FindVar
2015-01-23 19:05:32 +01:00
Arkshine
cdfd789f56
Rename change_level to engine_changelevel
2015-01-23 16:55:16 +01:00
Arkshine
7c96c30be8
Replace old SVN_* defines by the new ones
2014-12-08 01:42:42 +01:00
Arkshine
4ffd847b7a
Fix typo in get_user_name() where hostname was returned as blank string
2014-11-13 19:01:26 +01:00
Valentin Grünbacher
41d7554efd
Fix recursion issues with show_menu and newmenus
2014-10-11 00:35:05 +02:00
Arkshine
bf23890a34
Reverse condition for clarity and to make Nextra happy!
2014-08-19 18:25:00 +02:00
Arkshine
68aec7eec0
Use new flags in get_players/find_player instead to avoid breakage.
2014-08-19 15:39:06 +02:00
Arkshine
76811b7b84
Allow get_players() as well.
2014-08-19 10:08:25 +02:00
Arkshine
33c0a676fd
Allow find_player() and engclient_print() (in console) to be used on connecting players (bug 6229).
2014-08-17 23:31:46 +02:00
Arkshine
69c46aff80
Replace all snprintf with UTIL_Format.
2014-08-07 01:42:58 +02:00
Vincent Herbet
c72d130fde
Merge pull request #104 from Arkshine/add-change_level
...
Add change_level() native.
2014-08-07 01:24:36 +02:00
Arkshine
10d5c8e9ad
Add change_level() native.
2014-08-05 09:49:32 +02:00
Scott Ehlert
1bb54f839e
Update license headers for AMXX core.
2014-08-04 13:18:19 -05:00
Vincent Herbet
d2595b8b92
Merge pull request #31 from xPaw/burn-baby-burn
...
Remove compatibility stuff from the core
2014-07-27 12:07:58 +02:00
Arkshine
8cef1af95d
Move check out the loop.
2014-07-19 19:54:57 +02:00
Arkshine
2c4e99fe8d
Add some generic constants to amxconst.inc file.
2014-07-19 19:46:40 +02:00
xPaw
2e6dc308a8
🔥 Remove backwards compatible CreateMultiForwardEx
2014-06-05 23:33:45 +03:00
xPaw
2696f0af0e
🔥 Remove compatibility stuff from the core
2014-06-05 23:00:47 +03:00
Vincent Herbet
1b514d6f23
Merge pull request #23 from Arkshine/fix-unicode-issuee
...
Fix an unicode issue with amx_SetStringOld.
2014-05-27 15:48:19 +02:00
Arkshine
f5a5d8f8e7
Undo last change and change cell cast to unsigned char.
2014-05-27 15:15:56 +02:00
Vincent Herbet
83c2b3ef62
Merge pull request #22 from Arkshine/fix-unicode-issuee
...
Fix an unicode issue with amx_SetStringOld.
2014-05-27 14:38:27 +02:00
Arkshine
90c4fc1db1
Fix an unicode issue with amx_SetStringOld.
2014-05-27 13:49:59 +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
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
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
Arkshine
55456eaf17
Fix format_time (returned length doesn't include null terminator, related to a86ca1491)
2014-05-03 15:41:05 +02:00
Arkshine
9c191949d8
Add amxclient_cmd native (bug 5887, r=Nextra)
2014-05-02 09:16:16 +02:00
Arkshine
a86ca1491f
Add new string natives/stocks, make some UTF-8 safe (bug 6110, r=ds)
2014-04-30 09:33:03 +02:00
Arkshine
5468e9745c
Add set/show_dhudmessage (bug 5979, r=ds)
2014-04-11 21:54:24 +02:00
David Anderson
1f15fdd6cb
Update versioning for AMBuild and git.
...
Former-commit-id: ea473061ef1f3b52716decfb4dafcfd66167730d
2014-02-08 20:37:33 -08:00
Vincent Herbet
af0a1200ab
Add client_print_color native (CS only) (bug 5823, r=Nextra)
...
Former-commit-id: 9e37c60bc543676cbd659621a129bd953fc71473
2013-08-24 01:03:13 +02:00
DynamicBits
7f0c820566
Fix missing new line on client console message which is not truncated server-side if its length exceeds buffer size (bug 3140, r=arkshine)
...
Former-commit-id: 6373b0238ddda08ce1d7f9c137650120522d08ef
2013-08-24 00:58:23 +02:00
Vincent Herbet
7e11cb5cc1
Add has_map_ent_class native (bug 5814, r=Nextra)
...
Former-commit-id: bfa749105feb49cf9f9b3878dededa33ae7d699c
2013-08-07 16:40:37 +02:00
Nextra
e4d74f199f
Fix re-entrancy issue when a [generated] message is sent during register_event forward (bug 3664, r=joropito)
...
Former-commit-id: 163098892c0f0315ece9d89667782fd0ad53f3ca
2013-07-27 20:49:19 +02:00
Vincent Herbet
0dd14eed43
Add ability to text formatting to set_fail_state (bug 5800, r=me)
...
Former-commit-id: 2af8a27164f9332e4a6178691fe11b41d2bef7d1
2013-07-27 20:33:17 +02:00
Vincent HERBET
17a8e7f56e
Fix user_slap/amx_slap unexpected behavior using large negative damage (bug 4975, r=joropito)
...
Former-commit-id: 1e4d0e216eef3d556c68eeca7362562c663e2dd1
2013-06-25 11:45:00 +02:00
Vincent HERBET
5cb07b900a
Fix unexpected behaviors when a game menu is overlapped with custom one (bug 3199, r=me)
...
Former-commit-id: 96390761d3b26dd5e6329fa0e836de935b4263c4
2013-06-16 22:33:48 +02:00
Scott Ehlert
40c1fee55a
Added support for Mac OS X and building with clang (bug 5601, r=dvander).
2013-02-13 01:14:37 -06:00
Steve Dudenhoeffer
683f453b6f
Fixed building a 32bit binary on a 64bit machine
...
Added a super cool new native
2008-04-13 22:54:47 +00:00
David Anderson
a749aad1b4
- inserted a nasty backwards compatibility shim specifically for war3ft 3.0-rc. this may be extended globally if i can find a way to generalize it without breaking menu_create().
...
- updated comment about player_menu_info() as it was wrong.
2007-09-02 18:35:53 +00:00
Steve Dudenhoeffer
b09bf4c532
Work around for amb228 - amxmod_compat caused set_user_hitzones to stop functioning.
...
Any plugins being emulated by amxmod_compat that still use the traceline forward will still cause the issue, but if no plugins use that forward it won't interfere.
(also, plugin_flags() can now specify a plid)
2007-08-03 06:48:08 +00:00
Steve Dudenhoeffer
9ce9b142e7
Implemented amb397 - amx_add{client}menuitem now accepts filenames as well as registered plugin names
...
(is_plugin_loaded() now has an optional second parameter to search for filenames)
2007-07-25 18:54:32 +00:00
Steve Dudenhoeffer
16c17cff63
Undid portions of revision 3261: get_{pcvar,cvar}_num discrepancies, the added overhead just wasn't worth how stupidly rare the occurrences were.
2007-06-25 03:23:19 +00:00
Steve Dudenhoeffer
a45d98efea
Fix for amb421: get_user_weapons omitting a weapon in Day of Defeat.
2007-06-22 17:10:21 +00:00
Scott Ehlert
5309189602
Implemented amb245 - precache_sound() now returns whatever the engine function returns instead of just returning 1
2007-05-04 01:38:30 +00:00
Steve Dudenhoeffer
76158b031d
Forgot to actually register LookupLangKey :o
2007-04-20 03:02:41 +00:00