Raised This Month: $ Target: $400
 0% 

Regarding several Ham Functions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-14-2017 , 15:24   Re: Regarding several Ham Functions
Reply With Quote #4

Ham_RemovePlayerItem is called on "player" entities when a client sends "drop" or when the game (in many different cases it looks like) forces a player to drop an item, like when a player dies.

Ham_Item_Drop is called only in a few cases it looks like and it actually destroys the weapon entity. There is CBasePlayerItem:Kill which does the same. I don't really get the logic behind this function, but it shouldn't be used to hook when a weapon is dropped.

Ham_Weapon_RetireWeapon is called when a weapon should be holstered and the next best weapon should be deployed. That happens for example when you throw a flashbang or run out of ammo.

Last edited by klippy; 07-14-2017 at 15:24.
klippy 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:45.


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