Get shooting
Is there any event, which is called when player shoots from his weapon or an equal code?
I do not mean CurArray, I mean when someone shoots from weapon. |
Re: Get shooting
Ham_Weapon_PrimaryAttack ?
|
Re: Get shooting
FM_CmdStart, IN_ATTACK
|
Re: Get shooting
Quote:
|
Re: Get shooting
Quote:
|
Re: Get shooting
PHP Code:
PHP Code:
Edit: Looks like it's not even called. PHP Code:
|
Re: Get shooting
use console_print(id, "message");
|
Re: Get shooting
You have to register the ham with the weapon entity ("weapon_*"), not the player.
|
Re: Get shooting
And if I want all weapons?
|
Re: Get shooting
Code:
Wasn't sure as to how get_weaponname() formats the return string. Let me know if it doesn't include weapon_, in which case you'd just have to uncomment that line with formatex(). |
| All times are GMT -4. The time now is 05:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.