View Single Post
Author Message
Beatles
Senior Member
Join Date: Feb 2014
Old 09-22-2021 , 18:04   [L4D] ChurchGuy Bug
Reply With Quote #1

Sometimes when on my server we play the chapter: l4d_smalltown03_ranchhouse, for some reason the church door never opens, the man inside is heard speaking, but the horde never ends, the bells keep ringing and so the door never opens, I wrote this to try to open the door in a certain time:

PHP Code:
    int ent = -1;
    
    while ((
ent FindEntityByClassname(ent"prop_door_rotating_checkpoint")) != INVALID_ENT_REFERENCE)
    {
        if (!
IsValidEntity(ent) || !IsValidEdict(ent))
        {
            continue;
        }
        
SetEntProp(entProp_Data"m_hasUnlockSequence"0);
        
AcceptEntityInput(ent"Unlock");
        
AcceptEntityInput(ent"Open");
    } 
But this only opens the door, there is still something preventing me from entering, does anyone know how to fix it? or how to force the event to end?
Beatles is offline