release hook in mods that do not allow inputs while chatting

This commit is contained in:
c0d3d3v 2022-05-21 18:52:14 +02:00
parent 2cb47583b8
commit 71669e3427
No known key found for this signature in database
GPG key ID: 068AF680530DFF31

View file

@ -519,6 +519,8 @@ void CCharacter::OnDirectInput(CNetObj_PlayerInput *pNewInput)
{
// reset input
ResetInput();
// mods that do not allow inputs to be held while chatting also do not allow to hold hook
m_Input.m_Hook = 0;
return;
}
@ -542,7 +544,7 @@ void CCharacter::OnDirectInput(CNetObj_PlayerInput *pNewInput)
void CCharacter::ResetInput()
{
m_Input.m_Direction = 0;
//m_Input.m_Hook = 0;
// m_Input.m_Hook = 0;
// simulate releasing the fire button
if((m_Input.m_Fire & 1) != 0)
m_Input.m_Fire++;