Thread
:
L4D2, How to Get Reserve Ammo Without m_hOwnerEntity?
View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
09-29-2017 , 04:57 Re: L4D2, How to Get Reserve Ammo Without m_hOwnerEntity?
#
4
Quote:
Originally Posted by
NgBUCKWANGS
if I equip the weapon, I have no problem getting the reserve. but just looking at a weapon on the floor get's tricky as hell. short of equipping it I'm trying to mess with some netprops to sort of simulate
having it equipped but without moving it
. I tried changing the m_hOwnerEntity (and others) of the weapon but it's unreliable. I tried just grabbing a random survivor, getting the ammo type of the weapon and then just going for the m_iAmmo and no luck.
There's got to be a way to grab the reserve (without equipping/moving the weapon) reliably and I'm stumped.
Actually, are you sure the entities for the weapons on the floor are the same entities when a player is carrying them? I don't have L4D datamap and netprop dumps to check.
__________________
Not currently working on SourceMod plugin development.
Powerlord
View Public Profile
Find More Posts by Powerlord