
Originally Posted by
filthy_freak_
Honestly I didn't even know there was a isTouching() function until after I posted this thread. Made the above method so that my sprint does not clash with stock weapon pickups. You can also block bots from picking up weapons/using turrets with a little tweaking.
Wouldn't it be more effective and useful to hook the call/function that is responsible for picking up weapons?
Then with a libcod function you can set if the player is allowed to pickup weapons or not.
Like this
PHP Code:
player enableWeaponPickup();
player disableWeaponPickup();