Raised This Month: $ Target: $400
 0% 

[CS:GO] Key presses, setting / detecting


Post New Thread Reply   
 
Thread Tools Display Modes
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 07-03-2018 , 22:27   Re: [CS:GO] Key presses, setting / detecting
Reply With Quote #11

Quote:
Originally Posted by eyal282 View Post
[...]
I had to do it that way since:
PHP Code:
int iButtons GetClientButtons(client);

// Block the forward key here
SetEntProp(clientProp_Data"m_nButtons"iButtons & ~IN_FORWARD); 
SetEntProp(clientProp_Data"m_nButtons"iButtons IN_BACK);
// This is equivalent to (iButtons & IN_FORWARD | IN_BACK) which doesn't make any sense as it will just immobilize the player in place.
// Also, it might not be possible and the compiler will just throw an error. 

Last edited by cravenge; 07-03-2018 at 22:29.
cravenge is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:34.


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