View Single Post
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen.
Old 08-15-2013 , 14:23   Re: [TF2] Weapon Steal (2.0*)
Reply With Quote #9

Quote:
Originally Posted by FlaminSarge View Post
After you call TF2Items_GiveWeapon and give the weapon, you can set weaponindex[client] back to -1 so that next time they pick up the ammo pack, it's not given.

Also, if you can figure out a way to get the entity of the item_pickup event, you can drop this system entirely and use m_nItemDef from the tf_ammo_pack entity to determine the weapon index. But that is ONLY if you can find the entity, which I'm not sure you can at the moment.
Okay, thanks. Can't do the changes now. But, sure ! I will do this.
__________________
Want to check my plugins ?
Arkarr is offline