Hello my friends. I am here to make an announcement. Throwing keys at a door does NOT make them open. Seriously! I just tried it right now! It has something to do with keyholes, tumblers, locking mechanisms, etc. Anyways, here's some video coverage on this breaking news:
ModDB video
YouTube video
On a serious note, this took me hours of coding to get right. I really hope you guys appreciate this simple addition to gameplay...for now this will be exclusively in my own maps. I take realism very seriously, and I want my mod to feel as real as possible (with the exception of having you actually REALLY seriously getting mauled by a brute. That would suck.) Maybe I'll release the script so you guys can add it to your mods. Maybe. It's a LOT of work and EVERYTHING has to be right or it bugs out. The script is not explicit, a term I use here to refer to the script directly referencing each door/key. It is implicit, meaning I could copy the script to another map and it will work perfectly as long as the entities are named/placed correctly. This fact I am very proud of, as it makes the script VERY clean and easy to use
Yes I know the doors don't have visible keyholes but gimme a break
I'll probably end up doing a re-texture of all the doors with keyholes anyways. Eventually.
I will try to make the keys more visible once they're in the keyhole. Perhaps a small, dim point light to get the player's attention.