[CS:GO] [REQ] Block crouch/duck press inside trigger_push
Hey guys, I'm attempting to stop the possibility of "superboosting/crouchboosting" inside trigger_push's (commonly achieved by spamming crouch large sized trigger_push to achieve an unintended, very fast boost.
Could someone possibly write up a small plugin to block the crouch/duck button from being pressed while inside of a trigger_push, possibly with a cvar to enable/disable? I think it is important to preserve the player's current crouched/standing state. For example, if the player enters the trigger_push crouched, they wouldn't be forced back into a standing position for the duration of being inside the trigger_push. Would be much appreciated, thank you! |
Re: [CS:GO] [REQ] Block crouch/duck press inside trigger_push
Quote:
If it's not working then try increasing the distance, it doesn't uncrouch them though. It just sets their speed to nothing. Also, add me on steam please :D PHP Code:
|
Re: [CS:GO] [REQ] Block crouch/duck press inside trigger_push
Tested with the default distance, then 5, then 200 (just for good measure). Afterwards, realized this was getting spammed in the error logs:
Code:
L 12/21/2016 - 01:30:10: [SM] Exception reported: Invalid index -1 (count: 0) |
Re: [CS:GO] [REQ] Block crouch/duck press inside trigger_push
You can try this, although i'm not 100% sure it would work on CS:GO.
PHP Code:
|
Re: [CS:GO] [REQ] Block crouch/duck press inside trigger_push
Quote:
Works wonderfully, thank you kind sir! |
Re: [CS:GO] [REQ] Block crouch/duck press inside trigger_push
After having the plugin in my server for a day, I've been getting varying reports about strange crouch behavior - I experienced some of it myself, for example when midair, pressing crouch a few times causes me to "float" (if that makes sense). I could probably whip up a video if you'd like.
|
Re: [CS:GO] [REQ] Block crouch/duck press inside trigger_push
Try either of the 2, just replace the part of the code.
Code:
public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon, int &subtype, int &cmdnum, int &tickcount, int &seed, int mouse[2]) Code:
public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon, int &subtype, int &cmdnum, int &tickcount, int &seed, int mouse[2]) Second one should disable crouching completely but might have some client predictions. If neither works, a video might be helpful me understand the issue. |
All times are GMT -4. The time now is 22:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.