Raised This Month: $51 Target: $400
 12% 

[L4D2] How to get item that are about to be picked up.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
fdxx
Member
Join Date: Oct 2020
Location: 0xdeadbeef
Old 07-26-2021 , 21:36   [L4D2] How to get item that are about to be picked up.
Reply With Quote #1

When the survivor approaches an item that can be picked up, the survivor will have a "reach out" action (not actually pick it up). How to get the entity index of this item?

Imagine if you have dozens of pain pills under your feet, you can always pick up one of the pain pills by pressing the E button. How to determine this?

I found a relatively close function: GetClientAimTarget. But it just get the entity index of the crosshair, you don’t need to approach the item, and there is no “reach out” action.
fdxx is offline
 



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 22:21.


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