Skip to content

Commit 2ff4b89

Browse files
tilgepVauff
andauthored
Allow item buttons to press if locked (#371)
- Some maps use OnUseLocked output which got blocked Co-authored-by: Alex <mctehkitti@gmail.com>
1 parent 262daec commit 2ff4b89

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/entwatch.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,16 +1940,7 @@ void CEWHandler::Hook_Use(InputData_t* pInput)
19401940

19411941
if (!pController || pController->GetPlayerSlot() != pItem->iOwnerSlot)
19421942
RETURN_META(resVal);
1943-
1944-
const char* classname = pEntity->GetClassname();
1945-
1946-
if (!strcmp(classname, "func_button") || !strcmp(classname, "func_rot_button") || !strcmp(classname, "momentary_rot_button") || !strcmp(classname, "func_physical_button"))
1947-
{
1948-
CBaseButton* pButton = (CBaseButton*)pEntity;
1949-
if (pButton->m_bLocked || pButton->m_bDisabled)
1950-
RETURN_META(resVal);
1951-
}
1952-
1943+
19531944
//
19541945
// WE SHOW USE MESSAGE IN FireOutput
19551946
// This is just to prevent unnecessary stuff with buttons like movement

0 commit comments

Comments
 (0)