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

[L4D2] Player Pills & Adrenaline slot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
muukis
Veteran Member
Join Date: Apr 2009
Old 12-10-2009 , 06:29   [L4D2] Player Pills & Adrenaline slot
Reply With Quote #1

Is there a way to get the entity id of an object the player is holding in Pills or Adrenaline slot (the same slot I believe... I don't own the game so I don't know)?

I'm doing L4D2 support for L4D Player Stats. The L4D1 had an event that got fired when someone gave pills to another, but in L4D2 there is an award that is given instead of firing the event. The problem is that the award event does not carry the information of the entity id of the Pills given. I need to dig them up from the players... somehow.
muukis is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 12-10-2009 , 06:38   Re: [L4D2] Player Pills & Adrenaline slot
Reply With Quote #2

peels = GetPlayerWeaponSlot(client, 4);
AtomicStryker is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 12-10-2009 , 06:47   Re: [L4D2] Player Pills & Adrenaline slot
Reply With Quote #3

Great! Thanks!
muukis 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 06:04.


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