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

(csgo) FL_ATCONTROLS causing noclip behavior


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joshtrav
Senior Member
Join Date: Sep 2009
Old 07-12-2020 , 20:20   (csgo) FL_ATCONTROLS causing noclip behavior
Reply With Quote #1

In the past I always used FL_ATCONTROLS flag to disable a players movement and mouse input. Forcing them to stand still and motionless for a certain period of time.

The behavior still works as it should, however, since the 5/27/2020 update the player is also immune to damage. The behavior is similar to that of m_takedamage 0.

Anyone else have this issue? Found work arounds? The best I have so far is hooking run command and blocking inputs, while setting movetype to none. However, their screen goes all choppy due to the predicative client side.
__________________

joshtrav is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 07-12-2020 , 22:48   Re: (csgo) FL_ATCONTROLS causing noclip behavior
Reply With Quote #2

You can try this

PHP Code:
#pragma newdecls required
#pragma semicolon 1

#include <sourcemod>

public void OnPluginStart()
{
    
RegAdminCmd("sm_frozeme"sm_frozemeADMFLAG_BAN);
}

public 
Action sm_frozeme (int clientint args
{
    
int iFlags GetEntProp(clientProp_Send"m_fFlags") | (<< 5);
    
SetEntProp(clientProp_Send"m_fFlags"iFlags);
    return 
Plugin_Handled;

__________________
cry

Last edited by BHaType; 07-12-2020 at 22:48.
BHaType is offline
Send a message via AIM to BHaType
joshtrav
Senior Member
Join Date: Sep 2009
Old 07-13-2020 , 12:41   Re: (csgo) FL_ATCONTROLS causing noclip behavior
Reply With Quote #3

Yea, 1<<5 doesn't freeze the player in CSGO, using the SetEntProp method that I was using. I actually had the same code you had but using 1<<6, which worked in the past.

Now they just become invulnerable like god mode while not being able to move.
__________________

joshtrav is offline
almil36
Member
Join Date: Mar 2019
Old 12-14-2020 , 10:31   Re: (csgo) FL_ATCONTROLS causing noclip behavior
Reply With Quote #4

Hi joshtrav,

Did you find a fix to your issue? I am having the same right now. (Frozen but invicible)
almil36 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 17:40.


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