L4D2, How to Get Reserve Ammo Without m_hOwnerEntity?
Hello,
I have a gripe with how I'm getting reserve ammo to any primary weapon. I currently have PHP Code:
equipping the weapon onto a player just to get the reserve and then removing it but it feels hackish and if I remember correctly the player could potentially end up with 2 weapons in their primary slot. I was thinking about creating one fake client and hiding them off the map but again, it feels so damn hackish. I'm thinking there has to be a way to look at any weapon and without anyone holding it, get the reserve ammo? I'm thinking maybe SetEntProp on the m_hOwnerEntity to the client requesting the reserve? If you know a better approach, can you please share? Thanks! |
Re: L4D2, How to Get Reserve Ammo Without m_hOwnerEntity?
Supposedly the reserve ammo is held by the player, not the weapon.
|
Re: L4D2, How to Get Reserve Ammo Without m_hOwnerEntity?
Quote:
There's got to be a way to grab the reserve (without equipping/moving the weapon) reliably and I'm stumped. |
Re: L4D2, How to Get Reserve Ammo Without m_hOwnerEntity?
Quote:
|
Re: L4D2, How to Get Reserve Ammo Without m_hOwnerEntity?
Quote:
For those googling and curious, you'd get dumps of most stuff (e.g., datamaps, netprops) with PHP Code:
I mean, even if it's the client that has that information, why can't I as a client get it without moving the weapon? If I make any progress on this, I'll report back. Thanks fellas :) |
Re: L4D2, How to Get Reserve Ammo Without m_hOwnerEntity?
Quote:
|
Re: L4D2, How to Get Reserve Ammo Without m_hOwnerEntity?
Quote:
|
Re: L4D2, How to Get Reserve Ammo Without m_hOwnerEntity?
Quote:
|
Re: L4D2, How to Get Reserve Ammo Without m_hOwnerEntity?
I know that it may be too late, but perhaps this will be of some use:
PHP Code:
credits to panxiaohai |
Re: L4D2, How to Get Reserve Ammo Without m_hOwnerEntity?
|
All times are GMT -4. The time now is 19:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.