Does this help
PHP Code:
else if(Operation == UNLOCK)
{
if (HasEntProp(Entity, Prop_Data, "m_hasUnlockSequence")
{
SetEntProp(Entity, Prop_Data, "m_hasUnlockSequence", UNLOCK);
AcceptEntityInput(Entity, "Unlock");
AcceptEntityInput(Entity, "ForceClosed");
AcceptEntityInput(Entity, "Open");
}
}
or maybe idGoal checks should be something similar to
PHP Code:
idGoal > MaxClients && idGoal <= 2048 && IsValidEntity(idGoal)
Then test for errors and feature completion.