Vincent Herbet
20959d1444
Merge pull request #322 from Ni3znajomy/feature/client-connecting
...
New client_connectex forward & extend client_authorized
2015-12-24 14:41:06 +01:00
Karol Szuster
62a5c54a18
Add client_connectex & extend client_authorized forward
2015-12-22 16:36:51 +01:00
Vincent Herbet
8bb8aaa0db
Merge pull request #318 from Arkshine/fix-cvar-bounds-and-hook
...
Enable hook detour on cvar with bounds regardless current value
2015-12-11 14:45:59 +01:00
Arkshine
cc9f679a85
Enable hook detour on cvar with bounds regardless current value
2015-12-11 10:33:54 +01:00
Vincent Herbet
7cdc72f936
Merge pull request #317 from WPMGPRoSToTeMa/hamposthookretval
...
Hamsandwich: fix HAM_OVERRIDE in post hooks (bug 6443)
2015-12-10 19:25:14 +01:00
WPMGPRoSToTeMa
5c8c925e8a
Hamsandwich: fix HAM_OVERRIDE in post hooks (bug 6443)
2015-12-09 21:38:08 +03:00
Vincent Herbet
8ec6136a7c
Merge pull request #315 from Arkshine/cstrike-sanity-check
...
Make sure client is alive before checking buying commands
2015-12-08 01:06:16 +01:00
Arkshine
5b0191f691
Make sure client is alive before checking buying commands
2015-12-07 19:20:48 +01:00
Vincent Herbet
0df3715894
Merge pull request #316 from Arkshine/fix/missing-master.games.txt
...
Fix missing master.games.txt reference in PackageScript
2015-12-05 18:49:58 +01:00
Arkshine
6190582f16
Fix missing master.games.txt reference in PackageScript
2015-12-05 18:43:33 +01:00
Vincent Herbet
4cea082303
Merge pull request #314 from Th3-822/fix-strncmp-case-sensitivity
...
Fix strncmp case sensitivity
2015-12-03 00:55:20 +01:00
Th3-822
578a2f9852
Fix strncmp case sensitivity
...
strncmp was using case insensitive call when ignorecase == false
2015-12-02 19:08:10 -04:30
Vincent Herbet
47f66a3d13
Merge pull request #310 from Arkshine/update-latest-amtl-refptr
...
Update to the latest AMTL - Rename Ref to RefPtr.
2015-11-23 20:17:27 +01:00
Arkshine
02ac6fa2d7
Update to the latest AMTL - Rename Ref to RefPtr.
2015-11-23 14:45:07 +01:00
Vincent Herbet
2971bb65fd
Merge pull request #309 from Arkshine/refactor-gamerules-retrieval
...
Refactor gamerules address retrieval
2015-11-23 00:58:37 +01:00
Vincent Herbet
91f02b145b
Merge pull request #308 from Arkshine/fix/cstrike-meta-return
...
Fix missing meta return in ServerActivate
2015-11-23 00:47:21 +01:00
Arkshine
42a09f8593
Fix missing meta return in ServerActivate
2015-11-23 00:35:44 +01:00
Arkshine
87b1833f73
Refactor gamerules address retrieval
2015-11-23 00:29:43 +01:00
Vincent Herbet
664c85106f
Merge pull request #278 from Arkshine/feature/cstrike-update-2
...
Update cstrike module - 2
2015-11-21 00:19:01 +01:00
Arkshine
a445e806ea
Cstrike: Refactor - Simplify forwards logic, fix and improve few things
...
- The logic around CS_OnBuy forward has been simplified. Since there is no way to have a consistent way to hook/block for all items, the new logic is to have as less as possible code, especially in blocking mode where we want to avoid to do extra stuffs (e.g blocking sound, event, etc).
* All guns + shield -> CanBuyThis()
* Nvgs and Fefuser only -> CanPlayerBuy()
* The others items -> GiveNamedItem() + AddAccount()
* Ammos -> -> BuyGunAmmo() + GiveNamedItem() + AddAccount()
- Fixed missing buyzone check when alias from console are used (CS_OnBUy* were incorrectly fired).
- Fixed an infinite loop when buying of ammos are blocked. Sorted by hooking BuyGunAmmo().
- Fixed blocking mode for some items. Some game behaviors were not blocked (e.g. weapon drop).
- Fixed forwards being triggered even though errors were found. Detours are now a destroyed and associated variables resetted when necessary. Toggling forwards state is now based on detours state.
- Moved things in its own functions (game functions to execute, class members retrieval)
- Renamed CommandAliases -> ItemInfos (more generic)
2015-11-21 00:13:06 +01:00
Vincent Herbet
1ad01f4989
Merge pull request #307 from Arkshine/fix/comma-compiler
...
Fix shifted warning messages from pawn compiler due to missing comma in array
2015-11-12 21:05:37 +01:00
Arkshine
6d9fe60608
Fix shifted warning messages from compiler due to missing comma in array
2015-11-12 20:13:54 +01:00
Vincent Herbet
4abeac1231
Merge pull request #306 from IgnacioFDM/patch-1
...
Allow wordspawn in edict/entvars->index type conversion (bug 6429)
2015-11-06 12:52:42 +01:00
IgnacioDM
72d3f21816
Allow wordspawn in edict/entvars->index type conversion and EHANDLE edict get/set
2015-11-06 07:44:14 -03:00
Arkshine
d08e1357dd
Cstrike: Fix defuser/nvgs not being called with CS_OnBuy and fix wrong shield CSI constants
2015-11-03 10:45:51 +01:00
Arkshine
eb0222455a
Cstrike: Fix spaces/tabulations/typo
2015-11-03 10:45:51 +01:00
Arkshine
b6910667a8
Cstrike: Remove parsing error and update native error message
2015-11-03 10:45:50 +01:00
Arkshine
e87976bc09
Cstrike: Remove CS_OnGetItemPrice forward (reverted from commit 33a7d74b6da2ca4dcb621e9b306c386ba040571e)
...
This is actually not possible to have a proper system to allow this.
This is two majors problems:
- The item price text can't be changed, whatever old and VGUI menu (it's either harcoded in config file or in client binary)
- Once you open VGUI menu, to know if user has enough money to select an item, client relies on the current HUD money value, this means, since we can't directly changed price, before opening the menu, money needs to be somehow faked and restored once closed. It's awful.
Overall it can't work properly, and at the end current forward doesn't make sense.
If an author wanted to have its own prices, the only only way would to force players to use old menu, then overwriting the whole buy menu, so you would be able to display what you want exactly.
2015-11-03 10:45:50 +01:00
Arkshine
ffe8b7761e
Cstrike: Move CSW_* constants from amxconst.inc to cstrike_const.inc
2015-11-03 10:45:49 +01:00
Arkshine
2c5cc4289e
Cstrike: Add cs_is_valid_itemid() stock
2015-11-03 10:45:49 +01:00
Arkshine
75853dae60
Cstrike: Add cs_find_ent_by_owner() native
2015-11-03 10:45:48 +01:00
Arkshine
23b0450938
Cstrike: Add cs_get_weapon_class() stock (weapon id -> class id)
...
Note: this has been modified a bit later in cs_is_valid_itemid() commit.
2015-11-03 10:45:47 +01:00
Arkshine
600a15a57b
Cstrike: Add cs_get_weapon_info() native
2015-11-03 10:45:47 +01:00
Arkshine
60cdbeb219
Cstrike: Add CS_OnGetItemPrice forward to get/alter an item price on purchase
2015-11-03 10:45:46 +01:00
Arkshine
cf2f753660
Cstrike: Fix CS_OnBuy called only on the first buying of primary/secondary ammos and not when game loops to give until max amount
...
When game gives ammos, it loops until the max amount is reached, but it sill calls GiveNamedItem and AddAcount, so forward should be called for each of these ones.
Code logic is simplified and more understandable.
2015-11-03 10:45:46 +01:00
Arkshine
e6a2434887
Cstrike: Add cs_get_item_id() and cs_get_translated_item_alias() natives
2015-11-03 10:45:45 +01:00
Arkshine
c6628f22ee
Cstrike: Add more known constants from game
2015-11-03 10:45:44 +01:00
Arkshine
d3e5957215
Cstrike: Add cstrike_const.inc and move existing constants there
2015-11-03 10:45:44 +01:00
Vincent Herbet
eb9405bd97
Merge pull request #298 from Arkshine/feature/gamerules-natives
...
Introduce get/set_gamerules_*() natives to read/write on the gamerules object
2015-11-03 10:42:35 +01:00
Arkshine
49184c86a3
Refactor 5 - Rename original file/var for gamerules
2015-11-02 20:10:40 +01:00
Arkshine
4333255571
Refactor 4 - Move entities natives to its own file and reflect changes
2015-11-02 20:10:39 +01:00
Arkshine
1032fbdbd0
Refactor 3 - Simplify macros and move them to shared file as well
2015-11-02 20:10:39 +01:00
Arkshine
dc6f171f20
Refactor 2 - Duplicate get_member_* for each set of natives for consistency
2015-11-02 20:10:38 +01:00
Arkshine
c07b269c94
Refactor 1 - Move shared code to its own file and reflect changes
2015-11-02 20:10:38 +01:00
Arkshine
02c1b20ed7
Rename get_ent_data_size/info/basetype to be more generic
2015-11-02 20:10:37 +01:00
Arkshine
68f99bc2d5
Add get/Set_gamerules_* natives
2015-11-02 20:10:37 +01:00
Arkshine
df507a675b
Reflect changes on get/set_data* natives
2015-11-02 20:10:36 +01:00
Arkshine
d9c7e72d4b
Update macros to support gamerules configs
2015-11-02 20:10:36 +01:00
Arkshine
234b537ad9
Factorize gamerules data code
2015-11-02 20:10:35 +01:00
Arkshine
483ef98af3
Load gamerules address and offsets
2015-11-02 20:10:34 +01:00