Commit Graph
100 Commits
Author SHA1 Message Date
Vincent Herbet 7d084ee0bf Merge pull request #185 from Arkshine/feature/hooking-cvars
Introduce new features for cvars
2015-01-30 14:20:11 +01:00
Arkshine 1488b9747f Cvars: De-frenchify by Nextra 2015-01-29 21:44:53 +01:00
Vincent Herbet 7e1911b13b Merge pull request #187 from Arkshine/fix/nvault-formatting-issue
Fix potential formatting issue with nvault_[p]set
2015-01-29 17:26:49 +01:00
Vincent Herbet 1f304d55c4 Merge pull request #186 from Freeman-AM/product-version
Wrong product version for amxmodx-installer.nsi
2015-01-29 17:20:51 +01:00
Arkshine 9f93ff5168 Fix potential formatting issue with nvault_[p]set 2015-01-29 16:52:47 +01:00
Arkshine a5b5c7e9cd Cvars: Fix code to avoid Nextra be confused 2015-01-29 14:01:58 +01:00
Arkshine f8baef15ca Cvars: Adjust more things
- Moved some functions in CvarManager
- Fixed detour enabled all the time
- Fixed bounds not properly handled
- Refreshed data of regisetered cvars at map change
2015-01-28 23:51:43 +01:00
Arkshine 187b187ef2 Cvars: To not traumatize Nextra 2015-01-28 00:58:07 +01:00
Arkshine ac50f3ff34 Cvars: Check lower/upper bounds in create_cvar as well 2015-01-28 00:47:01 +01:00
Arkshine e4a7e67783 Cvars: Adjust few things
- Hook is not as post, because allowing blocking change is not really that useful and this makes a context more simpler.
- Setting a min bound > max bound and reversely throw an error
- set_pcvar_bounds set cvar value on new min/max bound.
- Remove error "A cvar can't be binded with several variables", it's okay to no error such situation.
2015-01-28 00:26:24 +01:00
Arkshine 1a5e1928ec Cvars: Fix field orders and linux compilation 2015-01-27 16:27:26 +01:00
Arkshine d75b14d4af Cvars: Extend "amxx cvars" command output 2015-01-27 15:07:17 +01:00
Vincent Herbet 0bed55701f Merge pull request #184 from Arkshine/fix/rename-change_level
Rename change_level to engine_changelevel
2015-01-27 00:21:50 +01:00
Arkshine 356a981164 Cvars: Add get/set_pcvar_bool natives 2015-01-26 14:26:48 +01:00
Arkshine 8a241ed0fd Cvars: Add new description param in get_plugins_cvar 2015-01-25 11:38:01 +01:00
Arkshine cb0b9da51f Cvars: Add bind_pcvar_num/float/string 2015-01-24 21:31:00 +01:00
Arkshine 8ebb7be36d Cvars: Add get|set_pcvar_bounds natives 2015-01-24 15:04:49 +01:00
Arkshine a05d0df50e Cvars: Add create_cvar native with more options (description, bounds) 2015-01-23 19:05:34 +01:00
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 0db5963641 Cvars: Remove global forward 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 f973f5beb7 Cvars: Convert CString to ke::AString in CCVar class 2015-01-23 19:05:32 +01:00
Arkshine 6619176a76 Cvars: Move CCVar class to cvars.h 2015-01-23 19:05:31 +01:00
Arkshine faeaf9259e Cvars: Add OnCvarChanged global forward
I really tried to use "cvar_changed" as name, but it bothered me so much to look that weird I could not keep it.
2015-01-23 19:05:31 +01:00
Arkshine 34d91789c4 Cvars: Hook Cvar_DirectSet from engine library 2015-01-23 19:05:30 +01:00
Arkshine cdfd789f56 Rename change_level to engine_changelevel 2015-01-23 16:55:16 +01:00
Vincent Herbet 5ca0e5617d Merge pull request #173 from Arkshine/feature/compiler-concatenation
Add string literal concatenation and stringizing operator
2015-01-22 20:00:32 +01:00
Vincent Herbet c197b58734 Merge pull request #183 from Arkshine/fix/cstrike-remove-stringtolower
Remove use of UTIL_StringToLowwer
2015-01-20 12:04:06 +01:00
Arkshine 8072f90536 Remove use of UTIL_StringToLowwer 2015-01-20 11:53:46 +01:00
Vincent Herbet 252f1919c2 Merge pull request #182 from Arkshine/fix/mysql-crash-amtl
Fix a mysql crash after CString -> ke::AString conversion
2015-01-18 19:27:35 +01:00
Vincent Herbet 2e64e9fd52 Merge pull request #181 from Arkshine/feature/add-new-fcvar
Add FCVAR_NOEXTRAWHITEPACE in amxconst.inc
2015-01-18 18:54:39 +01:00
Arkshine c3e0753455 Fix a mysql crash after CString -> ke::AString conversion 2015-01-18 18:13:39 +01:00
Arkshine 03e426fc28 Add FCVAR_NOEXTRAWHITEPACE in amxconst.inc 2015-01-16 23:21:01 +01:00
Vincent Herbet 7f9d677f89 Merge pull request #178 from Arkshine/feature/update-libmaxminddb-1.0.4
Geoip: Update libmaxminddb to 1.0.4
2015-01-14 12:48:44 +01:00
Arkshine 314f2ec568 Geoip: Fix linux compilation 2015-01-14 12:37:43 +01:00
Arkshine f09f4a4c6c Geoip: Remove previous C99 compatibility changes with v100
Since we're compiling against v120_xp now, C99 is supported, which makes the previous compatibility changes pointless.
This reverts to the state of the original content.
For maintainability reason, it's welcomed.

For reference, the only change now is the moving of PACKAGE_VERSION define to be available for linux too (since we don't use configure.ac)
2015-01-14 12:35:04 +01:00
Vincent Herbet 6703841c35 Merge pull request #179 from Arkshine/fix/update-vs-projects
Update VS projects
2015-01-14 10:50:08 +01:00
Arkshine dd9975cd67 Rename msvc10 directories to msvc12 2015-01-14 10:31:33 +01:00
Arkshine 97369c5d6c Upgrade VS projetcs to use v120_xp toolset and fix missing include paths 2015-01-14 10:25:46 +01:00
Vincent Herbet 328c3d7b8b Merge pull request #177 from Arkshine/fix/clang-3.5-compiler-warning
Compiler: Fix tautological warning with clang-3.5
2015-01-12 00:52:29 +01:00
Arkshine 16874378f1 Geoip: Update libmaxminddb to 1.0.4 2015-01-12 00:00:31 +01:00
Arkshine a0cfa59e56 Compiler: Fix tautological warning with clang-3.5 2015-01-11 23:09:53 +01:00
Arkshine b4399f42da Geoip: Move C99 headers in its own directory 2015-01-11 16:08:52 +01:00
Vincent Herbet dfbc74dc5f Merge pull request #176 from Arkshine/fix/keep-geop_country-bcompat
Keep geoip_country backward compatible after #99
2015-01-10 14:55:49 +01:00
Arkshine 539823f565 Keep geoip_country backward compatible after #99 2015-01-10 14:07:51 +01:00
Vincent Herbet 4a3fcdb937 Merge pull request #171 from Arkshine/fix/geoip-invalid-memory
Geoip: Fix possible crash
2015-01-08 10:37:36 +01:00
Vincent Herbet 0bc20edb5b Merge pull request #174 from Arkshine/fix/mac-compilation
Attempt to fix OSX compilation
2015-01-07 19:22:23 +01:00
Arkshine bab760897b Attempt to fix OSX compilation 2015-01-07 19:23:23 +01:00
Vincent Herbet 7f71cfaee7 Merge pull request #165 from Arkshine/feature/add-version-lib-and-missing-rc
Update versioning system and add missing module RC file (bug 6222)
2015-01-07 18:59:51 +01:00
Arkshine 2ffd4cb9fa Fix with parsing literal strings ending with character '\\'
From Pawn rev32: https://code.google.com/p/pawnscript/source/detail?r=32
E.g.: #define EGG "Gaben^^" (control character + something)

This fixes also compilation under linux.
2015-01-07 00:35:20 +01:00
Arkshine de2796508f Add string literal concatenation and stringizing operator 2015-01-06 23:39:46 +01:00
Vincent Herbet aa8170ecfd Merge pull request #172 from Arkshine/fix/osx-compilation
Fix OSX compilation
2015-01-06 23:26:22 +01:00
Arkshine 4fc2b4ed64 Fix OSX compilation 2015-01-06 23:27:51 +01:00
Vincent Herbet 604200e905 Merge pull request #162 from Arkshine/feature/update-amtl-c++11
Add C++11 support
2015-01-06 22:38:19 +01:00
Arkshine a543db5dc6 Geoip: Fix possible crash 2015-01-06 22:36:14 +01:00
Vincent Herbet 9552049524 Merge pull request #170 from Freeman-AM/cstrike-initvalue
meta_api.cpp: modify csstats_rank value to match amxx.cfg default value
2015-01-05 18:03:00 +01:00
Vincent Herbet b883486308 Merge pull request #168 from Ni3znajomy/master
Updated dictionary plmenu.txt
2014-12-28 21:19:05 +01:00
Vincent Herbet 59b7379db4 Merge pull request #167 from Freeman-AM/typo-errors
Users.ini: fix 2 typo errors
2014-12-23 19:31:53 +01:00
Vincent Herbet 15528c9583 Merge pull request #166 from rsKliPPy/set_task
Set task
2014-12-17 14:33:28 +01:00
Vincent Herbet 1df58d6231 Merge pull request #164 from Arkshine/fix/regression-member-tag-of-enum
FIx regression with member tag of enum not being checked on assigment
2014-12-13 11:23:10 +01:00
Arkshine c068eed19d Simplify code. 2014-12-13 11:15:06 +01:00
Arkshine ab4294f3ca Fix linux compilation 2014-12-10 15:41:52 +01:00
Arkshine f4a3d07b0e Fix missing binary suffix 2014-12-10 15:05:47 +01:00
Arkshine 4b11a54345 Make sure overriden tag is done with _: 2014-12-09 22:59:57 +01:00
Arkshine 78940b46a4 Untabify code 2014-12-09 22:29:43 +01:00
Arkshine 45bf43d76e FIx regression with member tag of an enum not being checked on assigment 2014-12-09 22:26:59 +01:00
Vincent Herbet 6ba614d425 Merge pull request #163 from Arkshine/fix/sizeof-issue-with-trailing-comma-in-array
Fix trailing commas in array literals changing the result of sizeof()
2014-12-09 00:06:32 +01:00
Arkshine 5e622aa69f Remove static on 'disable' variable 2014-12-08 23:55:30 +01:00
Arkshine a50f104fd3 Fix trailing commas in array literals changing the result of sizeof() 2014-12-08 20:45:33 +01:00
Arkshine 8443a836aa Add the actual version.rc file for all modules 2014-12-08 01:44:51 +01:00
Arkshine f5e23903a2 Add version.rc in AMBuilder for all modules 2014-12-08 01:44:27 +01:00
Arkshine 291a33ce65 Update moduleconfig.h for all modules 2014-12-08 01:43:33 +01:00
Arkshine 7c96c30be8 Replace old SVN_* defines by the new ones 2014-12-08 01:42:42 +01:00
Arkshine 3594c11238 Update versioning 2014-12-08 01:39:10 +01:00
Arkshine 1977bf4d29 C++11: Update AMBuildScript 2014-12-06 14:33:22 +01:00
Arkshine 1146bcad2c C++11: Fix some code 2014-12-06 14:02:55 +01:00
Arkshine 1199863e47 C++11: Update StringHashMap 2014-12-06 14:01:17 +01:00
Arkshine 590e6b1258 C++11: Sync AMTL libraries from upstream 2014-12-06 14:00:15 +01:00
Vincent Herbet 2bba5ce69a Merge pull request #161 from 9iky6/patch-12
Fix spectators not being killed if silent switch is on
2014-12-05 17:23:37 +01:00
Vincent Herbet 8951f80748 Merge pull request #159 from Arkshine/fix-get_user_name
Fix typo in get_user_name() where hostname was returned as blank string
2014-11-13 21:20:40 +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
Vincent Herbet 0dd638d0fd Merge pull request #158 from Arkshine/fix-sizeof-fix
Improve more sizeof return on array without specifiying the dimensions
2014-11-11 21:09:44 +01:00
Arkshine 1a97b2cbe1 Improve more sizeof return on array without specifiying the dimension 2014-11-11 12:34:16 +01:00
Vincent Herbet 9b662bb0ca Merge pull request #157 from Chuvi-w/master
Revert "Done" text due to AMXX-Studio compatibility.
2014-11-10 19:33:14 +01:00
Vincent Herbet 666aaf013a Merge pull request #156 from 9iky6/patch-11
Fix stock regex_match_simple
2014-11-07 14:57:12 +01:00
Vincent Herbet d5086f6a54 Merge pull request #154 from ClaudiuHKS/master
Add MySQL Reconnect Feature
2014-10-28 10:15:30 +01:00
Vincent Herbet 6e60b596d7 Merge pull request #152 from Arkshine/improve-find_ent_by_owner
Allow find_ent_by_owner native to work in client_disconnect forward
2014-10-26 13:06:55 +01:00
Vincent Herbet 929d6255fc Merge pull request #153 from Arkshine/fix-ham-specialbot
Fix specialbot not working with [Enable/Disable]HamForward natives
2014-10-26 13:06:38 +01:00
Arkshine b451fbd1c8 Fix specialbot not working with [Enable/Disable]HamForward natives 2014-10-25 20:44:17 +02:00
Vincent Herbet 419bdecc20 Merge pull request #149 from Arkshine/improve-get_map_objectives
Improve get_map_objectives native
2014-10-25 12:10:32 +02:00
Vincent Herbet 5f824d64da Merge pull request #150 from Arkshine/add-reset_menu
Allow show_menu native to send empty text + add reset_menu stock (bug 6244)
2014-10-25 12:00:08 +02:00
Vincent Herbet 79479e40c6 Merge pull request #151 from Arkshine/add-msg_init-support
Add MSG_INIT support in message_begin native (bug 6254)
2014-10-25 11:45:02 +02:00
Arkshine cfcd6e9ac9 Allow find_ent_by_owner native to work in client_disconnect forward 2014-10-25 11:08:31 +02:00
Arkshine 1bd022305f Add MSG_INIT support in messsage_begin native (bug 6254) 2014-10-24 21:04:42 +02:00
Arkshine d0ab27092c Allow show_menu native to send empty text and add reset_menu stock (bug 6244) 2014-10-24 20:36:38 +02:00
Arkshine 850ae540a9 Improve get_map_objectives native. 2014-10-24 12:58:24 +02:00
Vincent Herbet b2aa84ddbd Merge pull request #147 from Arkshine/fix-linux-warning
Fix linux warning in previous commit
2014-10-24 11:43:04 +02:00
Arkshine 9cf4564057 Fix linux warning in previous commit 2014-10-24 11:25:52 +02:00
Vincent Herbet d8fc093fd8 Merge pull request #143 from ClaudiuHKS/master
Colored Menus and GeoIP Bug Fix
2014-10-18 20:18:29 +02:00