Originally Posted by
filthy_freak_
I don't have the knowledge to do this yet. I'm still earning about C++ and libcod.
This is the information that i found so far.
PHP Code:
Touch_Item_Auto = 8105C80 (1.3), 81037F0 (1.0)
It calls:
PHP Code:
Touch_Item(item_weapon, player, message = 0 / 1)
Item_weapon and player are probably gentities.
So the function gentityaddress_to_num in gsc_player.cpp will probably give you a number between 0 and 63.
The function is called from:
PHP Code:
8187F64 (1.3), 8167AE4 (1.0)
8187F8C (1.3), 8167B0C (1.0)
8187FB4 (1.3), 8167B34 (1.0)
These addresses are pointers to a function like closer or download.
Now you can try and replace these pointers with your own function and return to the original function.
Before return to the function you can add a message to see which of the addresses you need.
These commits might help:
Replacing a function: https://github.com/M-itch/libcod/com...9ef0a8cb70d2c1
Client number: https://github.com/M-itch/libcod/com...1e2387aadc42ff