View Single Post
nosoop
Veteran Member
Join Date: Aug 2014
Old 08-15-2018 , 20:47   Re: Custom Minigun Property
Reply With Quote #2

As the event name suggests, localplayer_winddown is only fired on the client side (if it even is; can't seem to get it to show up on my listen server). If you want to observe the events that are fired, set net_showevents to 2 on the server and watch the server console.

Anyways, since it's not fired on the server, SourceMod has no way to detect such an event.

Off the top of my head, you'll likely either have to track changes on the IN_ATTACK2 button with OnPlayerRunCmdPost or SDKHook_PostThinkPost, or directly hook CTFMinigun::WindDown() with DHooks.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 08-17-2018 at 04:38. Reason: OnClientPostThinkPost doesn't exist. That's the name I usually use for the callback to the SDKHook.
nosoop is offline