Can I use Ham_Weapon_PrimaryAttack to hook
1. Can I use Ham_Weapon_PrimaryAttack to hook primary attack event instead of using prethink?
2. Does it work for C4?(press +attack but not planting) |
Re: Can I use Ham_Weapon_PrimaryAttack to hook
1. Yes...another method: playbackevent (FM) using primary weapons events, but is more code...(see VEN's tutorial)
2. I think you can use CmdStart, but i'm not sure if that is what you're looking for. sorry for no examples |
Re: Can I use Ham_Weapon_PrimaryAttack to hook
1. You could, but this is called from weapons, not for players, and so you have to register the forward for every weapons type, then you have to filter too know if a shot will be done when the forward is called.
2. Should work. If you stay with prethink thing, you should really use FM_CmdStart instead. |
| All times are GMT -4. The time now is 09:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.