filthy_freak_ (30th June 2015)
Remove post
Last edited by filthy_freak_; 30th June 2015 at 14:27. Reason: Nevermind
I'm using a function one level higher.
My function (gentity):
Your function (client):PHP Code:
sub_8105CAC(signed int s, int a2, int a3)
Edit: i committed my version. https://github.com/M-itch/libcod/com...6f7f20d91a895fPHP Code:
result = sub_80DF39E(s, *(_DWORD *)(a2 + 344), a3);
Are you sure you have set
correctly?PHP Code:
hook_disable_pickup = new cHook(0x080DF39E, (int)disable_pickup);
hook_disable_pickup->hook();
EDIT: Going by your previous post, seems like you didn't.
By the way, the use of sub_80DF39E over sub_8105CAC is intentional. Using sub_80DF39E will only disable weapon pickup whereas sub_8105CAC will disable everything with a Use (f) dialogue. Hence why the custom function is called disablePickup and not disableUse.
Last edited by filthy_freak_; 30th June 2015 at 14:41.
My version works exactly the same.
Can you try this:
After you picked up a weapon and disabled the pickup.
You should be hearing the ammo pickup sound and the weapon will disappear and reappear when you go over the weapon again.
(+ not max ammo)
There are 3 pointers to the function Touch_Item_Auto and i only replace the last one (3).
1: This one is responsible for the 'Press [Use] to swap for ...' message.
2: No idea. I don't know how to trigger it. It might have something to do with picking up health.
3: Picks up the item.