amxmodx/modules/cstrike/cstrike
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
..
msvc12 Cstrike: Add cs_get_item_id() and cs_get_translated_item_alias() natives 2015-11-03 10:45:45 +01:00
AMBuilder Cstrike: Add cs_get_item_id() and cs_get_translated_item_alias() natives 2015-11-03 10:45:45 +01:00
CstrikeDatas.h Cstrike: Add cs_get_weapon_class() stock (weapon id -> class id) 2015-11-03 10:45:47 +01:00
CstrikeHacks.cpp Cstrike: Remove CS_OnGetItemPrice forward (reverted from commit 33a7d74b6da2ca4dcb621e9b306c386ba040571e) 2015-11-03 10:45:50 +01:00
CstrikeHacks.h Cstrike: Remove CS_OnGetItemPrice forward (reverted from commit 33a7d74b6da2ca4dcb621e9b306c386ba040571e) 2015-11-03 10:45:50 +01:00
CstrikeItemsInfos.cpp Cstrike: Add cs_is_valid_itemid() stock 2015-11-03 10:45:49 +01:00
CstrikeItemsInfos.h Cstrike: Add cs_get_item_id() and cs_get_translated_item_alias() natives 2015-11-03 10:45:45 +01:00
CstrikeMain.cpp Cstrike: Remove CS_OnGetItemPrice forward (reverted from commit 33a7d74b6da2ca4dcb621e9b306c386ba040571e) 2015-11-03 10:45:50 +01:00
CstrikeNatives.cpp Cstrike: Add cs_find_ent_by_owner() native 2015-11-03 10:45:48 +01:00
CstrikePlayer.cpp Cstrike: Fix typos and improve things 2015-07-15 16:40:07 +02:00
CstrikePlayer.h Fix AMTL internal paths 2015-10-02 23:22:21 +02:00
CstrikeUserMessages.cpp Cstrike: Add cs_get_item_id() and cs_get_translated_item_alias() natives 2015-11-03 10:45:45 +01:00
CstrikeUserMessages.h Cstrike: Add cs_get_item_id() and cs_get_translated_item_alias() natives 2015-11-03 10:45:45 +01:00
CstrikeUtils.cpp Cstrike: Do some more cleanup 2015-07-14 19:44:03 +02:00
CstrikeUtils.h Cstrike: Add cs_find_ent_by_owner() native 2015-11-03 10:45:48 +01:00
moduleconfig.h Cstrike: Add cs_get_item_id() and cs_get_translated_item_alias() natives 2015-11-03 10:45:45 +01:00
version.rc Move dlls/ to modules/ 2015-03-13 15:18:47 +02:00