Commit Graph
100 Commits
Author SHA1 Message Date
Arkshine c29eabec50 Fix max length inconsistencies + typo 2015-10-05 19:12:30 +02:00
Arkshine 138b9e1510 Remove UTIL_Format() and UTIL_VarArgs() 2015-10-05 19:12:08 +02:00
Arkshine f22dc769f4 Replace some LibraySys usage with AMTL primitives 2015-10-02 23:22:22 +02:00
Arkshine f976861e21 Fix AMBuild and VS projects files 2015-10-02 23:22:22 +02:00
Arkshine 2d910838a2 Fix AMTL internal paths 2015-10-02 23:22:21 +02:00
Arkshine f811bab608 Update AMTL to latest revision 2015-10-02 23:22:20 +02:00
Vincent Herbet 9a4731dd14 Merge pull request #284 from Arkshine/feature/new-pdata-natives
Introduce new natives to read/write on entity's private data based off class/member name using gamedata files
2015-09-19 20:56:31 +02:00
Arkshine 16f65663dc Add new natives to read/write on entity's private data based off class/member name available from gamedata files 2015-09-19 20:07:48 +02:00
Vincent Herbet ac2bcb2d19 Merge pull request #282 from Arkshine/gamedata-type-desc
Modify game config parser to support more offset data and reflect changes
2015-09-07 09:10:28 +02:00
Vincent Herbet eaa330d745 Merge pull request #291 from alliedmodders/fix/native-overflow
Fix crash when dynamic native is executed with the max number of params
2015-09-05 18:24:51 +02:00
Vincent Herbet b63e63cfcd Fix crash when dynamic native is executed with the max number of params
This fixes a buffer overflow with `g_Params`, which has a size of 16 but params index starts to 1. As consequence when 16 params are passed, `g_Params[16]` is indexed and likely overwrites something important which leads to a crash at some point.

It doesn't happen in 1.8.2. Possible reasons why it happens in dev version is this uses newer compiler and compiling optimization are better , resulting crash is triggered now. 

Reported here https://forums.alliedmods.net/showthread.php?t=271103.
2015-09-05 17:49:37 +02:00
Vincent Herbet 5b3a5a0153 Merge pull request #289 from alliedmodders/fix/typo-autoexeconfig
Fix typo in AutoExecConfig native
2015-09-05 08:49:04 +02:00
Vincent Herbet 57a5004f4e Fix typo
Related to #266. Looks like I've changed the prefix afterward at some point for some reason, but engine is retarded and with `plugin.something.cfg` it will understand extension is `something` instead  of `cfg` ; and will fail to execute as it's an invalid extension (only `cfg` and `rc` are allowed).
2015-09-05 08:42:31 +02:00
Vincent Herbet 190304f601 Merge pull request #288 from Arkshine/sync-amtl
Update AMTL submodule from upstream and reflect changes
2015-08-26 11:19:19 +02:00
Arkshine 0005d1a6b5 Update AMTL submodule from upstream and reflect changes 2015-08-26 11:15:07 +02:00
Vincent Herbet 224239f5a1 Merge pull request #266 from Arkshine/feature/autoexeccfg
Introduce automatic config file for plugins and two forwards
2015-08-26 10:42:59 +02:00
Arkshine 5b8bbddbc1 AutoExecConfig: Adjust few things 2015-08-26 10:38:31 +02:00
Vincent Herbet c5d4eb49d4 Merge pull request #287 from Sylvert0/Fix-cs_set_user_team
Add a CS_NORESET constant for use with cs_set_user_team for skipping the model reset
2015-08-23 19:44:47 +02:00
Arkshine 78b1154b8d AutoExecConfig: Do not traumatize Travis and Nextra 2015-08-14 16:38:29 +02:00
Arkshine 1f3ba35140 AutoExecConfig: Remove config code in admin.sma 2015-08-14 16:38:28 +02:00
Arkshine 1f3c7cf272 AutoExecConfig: Update documentation 2015-08-14 16:38:28 +02:00
Arkshine 9a1dc5d179 AutoExecConfig: Add AutoExecConfig native 2015-08-14 16:38:27 +02:00
Arkshine f22185d646 AutoExecConfig: Enable the configs 2015-08-14 16:38:27 +02:00
Arkshine 517a08e134 AutoExecConfig: Add CoreConfig class + OnAutoConfigsBuffered / OnConfigsExecuted forwards 2015-08-14 16:37:48 +02:00
Vincent Herbet a9b183612b Merge pull request #264 from Arkshine/fix/dropclient
Fix player not being internally disconnected in some situation and add client_disconnected forward
2015-08-14 00:22:57 +02:00
Arkshine ed4faf7c11 Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
Vincent Herbet a9015d1d84 Merge pull request #283 from alliedmodders/fix/newmenu-propnocolor
Fix MPROP_NOCOLORS menu property not working
2015-08-13 12:19:12 +02:00
Vincent Herbet 83a72a6e3a Fix MPROP_NOCOLORS menu property not working 2015-08-13 12:04:31 +02:00
Arkshine 5f0b92f7c3 Fix typos 2015-08-12 10:43:59 +02:00
Arkshine c270243b56 Replace "time" type name by a more generic one "float" 2015-08-10 18:06:06 +02:00
Arkshine a6e587f0f0 Update Opfor offsets 2015-08-10 18:06:04 +02:00
Arkshine a50b1e17d8 Update TFC offsets 2015-08-10 18:06:03 +02:00
Arkshine 9a83db66f5 Update HLDM offsets 2015-08-10 18:06:02 +02:00
Arkshine 2fa53badd9 Update DoD offsets 2015-08-10 18:06:01 +02:00
Arkshine db14b0eae8 Update CS offsets 2015-08-10 18:06:00 +02:00
Arkshine f4f4d966f3 Reflect changes where game config functions are used 2015-08-10 18:05:59 +02:00
Arkshine 7423ac6824 Modify game config parser to support more offset datas (type, size, etc.) 2015-08-10 18:05:59 +02:00
Vincent Herbet 20201290e3 Merge pull request #271 from Arkshine/fix/ns_remove_upgrade
Fix ns_remove_upgrade() native (bug 3394)
2015-08-10 15:28:44 +02:00
Vincent Herbet 4563f56e77 Merge pull request #277 from Arkshine/fix/potential-issues
Fix some potential issues
2015-08-10 15:28:32 +02:00
Vincent Herbet c46e666907 Merge pull request #279 from Arkshine/fix/sortadtarray-string
Fix an SortADTArray() issue where strings are not properly sorted
2015-08-10 15:28:23 +02:00
Vincent Herbet 10eb6b370a Merge pull request #280 from Arkshine/improve-offsets-list
Cleanup/Fix CS gamedata of entities offsets and add support for HLDM, DoD, TFC and OpFor
2015-08-09 19:26:05 +02:00
Arkshine 8f90f30b07 Gamedata: keep "class" comment for unknown type 2015-08-09 16:33:21 +02:00
Arkshine 222b1c651b Gamedata: Add HLDM entities classes 2015-08-09 16:25:18 +02:00
Arkshine e0d80639b3 Gamedata: Remove any static members 2015-08-07 20:41:38 +02:00
Arkshine 0baa7d47b6 Gamedata: Add Opfor entites offsets 2015-08-07 20:36:55 +02:00
Arkshine c80d6e5284 Gamedata: Add TFC entites offsets 2015-08-07 20:20:55 +02:00
Arkshine ad63658f9e Gamedata: Add DoD entities offsets 2015-08-07 20:13:54 +02:00
Arkshine ffb9bc92d6 Gamedata: Fix Master and PackageScript to reflect changes 2015-08-07 20:01:11 +02:00
Arkshine 672c519378 Gamedata: Move more CS classes not linked an entity to /others.games 2015-08-07 18:06:32 +02:00
Arkshine cfd8526961 Gamedata: Move CS hostage-related classes not linked to an entity to /hostages.games 2015-08-07 18:02:54 +02:00
Arkshine 00de99b839 Gamedata: Add missing CS classes associated to an entity 2015-08-07 17:38:18 +02:00
Arkshine fb1189fd31 Gamedata: Add CS class hierarchy as comment for convenience 2015-08-07 17:35:29 +02:00
Arkshine 7dff2749ec Gamedata: Remove CS classes with no members 2015-08-07 17:30:49 +02:00
Arkshine 4d3e31cf6c Fix an SortADTArray() issue where strings are not properly sorted 2015-08-04 17:08:40 +02:00
Arkshine 5987f389c6 Fix some potiental issues 2015-07-31 15:46:16 +02:00
Vincent Herbet 6d7daf787d Merge pull request #276 from Arkshine/fix/ham-command
Fix "ham hooks" command not displaying all current hooks of a plugin
2015-07-31 15:43:29 +02:00
Arkshine 73e84e9963 Fix "ham hooks" command not displaying all current hooks of a plugin 2015-07-31 14:25:19 +02:00
Vincent Herbet 8c0534a055 Fix typo 2015-07-30 19:54:40 +02:00
Vincent Herbet 5c17b1c767 Merge pull request #275 from xPaw/patch-2
Return an error on Err_OldFile instead of falling through to default case
2015-07-30 16:47:23 +02:00
Vincent Herbet 6b1650ae4f Merge pull request #274 from xPaw/patch-1
Fix resource leak when reading hamdata.ini
2015-07-30 13:23:03 +02:00
Vincent Herbet 8c16331b69 Merge pull request #272 from Arkshine/feature/textparser-data-param
Add a data argument in INI/SMC_ParseFile() to pass through to callbacks (bug 6228)
2015-07-30 10:43:44 +02:00
Vincent Herbet fc4455d837 Merge pull request #273 from Arkshine/fix/newmenu-typo
Fix typo in newmenus (bug 6394)
2015-07-30 10:43:36 +02:00
Arkshine 5f83f77b2e Fix typo in newmenus 2015-07-30 00:28:18 +02:00
Arkshine 6d6a1c1ab0 Add a data argument in INI/SMC_ParseFile() to pass through to callbacks (bug 6228) 2015-07-29 22:23:13 +02:00
Arkshine aa5c340029 NS: Fix ns_remove_upgrade() native 2015-07-29 20:49:14 +02:00
Arkshine a35af02494 NS: Refactor some bits 2015-07-29 20:21:09 +02:00
Vincent Herbet decde43371 Merge pull request #270 from Arkshine/fix/ml-parser-with-empty_value
Fix a ML parser crash on key with an associated empty value
2015-07-29 09:45:14 +02:00
Arkshine 2d583aa83a Fix a ML parser crash on key with an associated empty value 2015-07-28 15:41:16 +02:00
Vincent Herbet 57037740fd Merge pull request #269 from Arkshine/update-libmaxminddb
Update libmaxminddb to v1.1.0
2015-07-22 12:57:46 +02:00
Arkshine 8efa1ba067 Update libmaxminddb to v1.1.0 2015-07-22 00:21:44 +02:00
Vincent Herbet 2162059352 Merge pull request #268 from Arkshine/fix/handle-name-conflict
Rename Handle class to avoid name collision in mac
2015-07-21 00:23:13 +02:00
Arkshine 6b3b351c9a Rename Handle class to avoid name collision in mac 2015-07-21 00:18:54 +02:00
Vincent Herbet c6a3290c4f Merge pull request #267 from Arkshine/feature/unregister_event
Add enable/disable_event() native (bug 6360)
2015-07-21 00:00:28 +02:00
Arkshine df5d935194 Add enable/disable_event() native 2015-07-20 23:06:32 +02:00
Vincent Herbet 075ed7b7b4 Merge pull request #265 from Arkshine/fix/set-log-type
Retrieve log type in MetaAttach to allow log to be written earlier
2015-07-18 10:21:09 +02:00
Arkshine 109b3481a7 Retrieve log type in MetaAttach to allow log to be written earlier 2015-07-18 09:55:13 +02:00
Vincent Herbet 83bc3f518b Fix wrong buffer length 2015-07-17 19:12:02 +02:00
Vincent Herbet 717735311b Fix typo 2015-07-17 17:53:52 +02:00
Vincent Herbet e3489be0c0 Merge pull request #260 from Arkshine/feature/more-amtl-conversion
More AMTL conversion - 🔥 CString and CVector
2015-07-16 12:24:06 +02:00
Arkshine 9223989a01 Fix consistency 2015-07-16 08:11:19 +02:00
Vincent Herbet 4ed80b88de Merge pull request #255 from Arkshine/feature/cstrike-gamedata
Update cstrike module - 1
2015-07-15 22:21:08 +02:00
Arkshine 662fa61fc7 Cstrike: Fix typos and improve things 2015-07-15 16:40:07 +02:00
Arkshine dcc2d91b14 Cstrike: cs_get_user_driving - Add the associated constants from HLSDK 2015-07-14 19:44:10 +02:00
Arkshine 86e33d0cb1 Cstrike: cs_set_user_model - Add a param to choose whether modelindex should be updated 2015-07-14 19:44:10 +02:00
Arkshine 5d6f829624 Cstrike: Rename file for consistency 2015-07-14 19:44:09 +02:00
Arkshine 1ed354890b Cstrike: Add CSI_SHIELD for convenience and fix typos 2015-07-14 19:44:08 +02:00
Arkshine 939aad5cb9 Cstrike: cs_set_user_team - Add a param to choose whether TeamInfo message should be sent 2015-07-14 19:44:08 +02:00
Arkshine 8be119aa6a Cstrike: cs_set/reset_user_model/team - Stagger user's info updates across multiple frames (bug 3134) 2015-07-14 19:44:08 +02:00
Arkshine aedde87f42 Cstrike: cs_set_user_zoom - Use a more event-based approach when mode is 0 2015-07-14 19:44:07 +02:00
Arkshine 63a0910f5b Cstrike: cs_get/set_armoury_type - Add a param to get/set the number of weapons inside an armoury 2015-07-14 19:44:06 +02:00
Arkshine 81f9a23d16 Cstrike: cs_get_user_armor - Make optional armortype param 2015-07-14 19:44:06 +02:00
Arkshine 7842d0160b Cstrike: cs_set_weapon_silen - Add a new value for draw_animation to follow game behavior
- Player's model sequence will be properly played
- Disallow firing while animation is playing
2015-07-14 19:44:06 +02:00
Arkshine 87d740b92a Cstrike: Add CZ support for some hostage natives 2015-07-14 19:44:05 +02:00
Arkshine d9a9b7a74e Cstrike: Add support for monster_scientist entity (alias of hostage_entity) 2015-07-14 19:44:05 +02:00
Arkshine 27d6a0cc08 Cstrike: cs_get_hostage_id - Fix error check, an hostage can't be a player 2015-07-14 19:44:04 +02:00
Arkshine b82588f081 Cstrike: cs_set_user_deaths - Add a param to choose whether scoreboard should be updated 2015-07-14 19:44:04 +02:00
Arkshine 71c6ac8c2e Cstrike: cs_set_no_knives - pfnCreateNamedEntity is now hooked only when needed 2015-07-14 19:44:03 +02:00
Arkshine 2de1f9a33b Cstrike: Do some more cleanup 2015-07-14 19:44:03 +02:00
Arkshine f13461caee Cstrike: Cache GET_USER_MSG_ID calls 2015-07-14 19:44:02 +02:00
Arkshine 84c320d539 Cstrike: Do some cleanup for the sake of consistency and readability 2015-07-14 19:44:02 +02:00