Get weapon drop on death
I want to check when weapon is dropped on death event without FM_SetModel forward.
I tried with Ham_Item_Drop and doesn't seem to call this event when weapon is dropped on death event. I need best method to check weapons dropped on death event, can be with Orpheu or Rage is not a problem. |
Re: Get weapon drop on death
Its in the HLSDK.
dlls/player.cpp CBasePlayer:: PackDeadPlayerItems( void ) |
Re: Get weapon drop on death
What do you want to do exactly ?
C4 is dropped during CBasePlayer :: Killed. Defuser is dropped (in fact new defuser is given but player can't receive it so it's falling on ground) during CBasePlayer :: Killed. Weapon(s) are packed during CBasePlayer :: PreThink that is on the frame after CBasePlayer :: Killed. So depending on what you exactly want to do, you need to choose the proper method. |
Re: Get weapon drop on death
Quote:
FM_SetModel is call every time, need a better method to hook specific weapon after player death and remove then on the floor/earth. |
Re: Get weapon drop on death
Quote:
|
Re: Get weapon drop on death
Something like this could work, not sure it is better than only hook SetModel though.
SetModel is not called so often. PHP Code:
|
Re: Get weapon drop on death
Thank you for the code Connor!
Quote:
|
Re: Get weapon drop on death
You think wrong, and you should stop to say that unless you know what you're taking about. SetModel is not called often at all (it's not like a prethink function eh!) and using only that would be more efficient than the plugin above which does way more extra operations even if it's well coded. People should stop to seek complicated way for a zero benefit which is most of time the reverse. Here the case, and it's completely bullshits for the wanted purpose.
|
| All times are GMT -4. The time now is 08:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.