Raised This Month: $32 Target: $400
 8% 

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: hmmmmm
Forum: Snippets and Tutorials 08-16-2018, 02:49
Replies: 18
Views: 27,279
Posted By hmmmmm
Re: [SNIPPET] Detecting button presses (and releases)

if( GetEntProp( client, Prop_Data, "m_afButtonPressed" ) & IN_USE )
if( GetEntProp( client, Prop_Data, "m_afButtonReleased" ) & IN_ATTACK )

This works on CS:GO, not sure about other games.
Forum: Snippets and Tutorials 03-09-2018, 17:55
Replies: 18
Views: 27,279
Posted By hmmmmm
Re: [SNIPPET] Detecting button presses (and releases)

I've found a bit of a sexier way of doing this, just have to get m_afButtonReleased and m_afButtonPressed data props
These variables store the buttons released/pressed that frame, or 0 if nothing...
Showing results 1 to 2 of 2

 
Forum Jump

All times are GMT -4. The time now is 02:44.


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