Raised This Month: $ Target: $400
 0% 

pfn_use() is never called


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 10-22-2005 , 06:11  
Reply With Quote #1

Quote:
Originally Posted by XxAvalanchexX
Even that doesn't work, even though there is no real reason why it shouldn't. Unfortunately there is no real way to tell when an entity is used.
pfnUse is a member of the DLL_FUNCTIONS structure. This means that the engine can call pfnUse in the game DLL. But why on earth should the engine decide when an object uses an other one? That logic should be kept in the game dll. As I said several times, I think that this callback comes from older SDK versions where the engine still used to decide when an object is being used. In the latest HLSdk, use is handled in the DispatchUse function in cbase.cpp and in the CBasePlayer:layerUse function in player.cpp. I suspect that DispatchUse is never called (okay, it is called from plugins, but it's never called by the engine); the logic is done in CBasePlayer:layerUse these days.

EDIT: Or maybe they provide it for bots.
__________________
hello, i am pm
PM is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode