Created 4 years ago2020-06-11 11:19:07 UTC by Petko
#define SF_BUTTON_ONLYDIRECT 16 // LRC
int CBaseButton::ObjectCaps()
{
return (CBaseToggle::ObjectCaps() & ~FCAP_ACROSS_TRANSITION) |
(pev->takedamage ? 0 : FCAP_IMPULSE_USE) |
(pev->spawnflags & SF_BUTTON_ONLYDIRECT ? FCAP_ONLYDIRECT_USE : 0);
}
if (IsLockedByMaster()) return;
I did not remove ANY lines from the original code