Keys in locks. Dungeon Master 2 style.
Posted: Fri Apr 04, 2014 3:49 am
Playing around in the .lua files, I finally manage to create some "alcoves" to make keys and locks to act the same way they do in Dungeon Master 2, in other words they stay inside the lock and is retrievable. (I searched around the forums and asked, but could not find anything solid on this so I dunno if this had been made before, but whatever, here it is.)
These are for all the keys currently in Grimrock Vanilla.
Short Video (slightly outdated). https://www.youtube.com/watch?v=9P9MMZUBrNI
Pics:
Edit: Added all into one single file that is simply more accessible and easier to use.
How to use:
* Copy and paste text from the "objects.lua" into your mod's custom "objects.lua" file.
* Extract the model files into your "Models" folder in your custom dungeon assets.
* Find your new locks under "Props" in the editor.
* Place on a wall and link the lock_alcove to whatever you want.
* Prison locks are only used for the prison wall set as those walls are much "deeper" and normal locks will leave a big gap between them an the wall if placed in that wall set.
Can use and edit any way you want!
All models and .lua edits for download here: https://www.dropbox.com/s/nj9lafcobnxyh ... 0locks.rar
Credits:
* AdrTru for helping me with the Models.
* Isaac for providing lots of help and info.
To make a key click sound when inserting a key, link the alcove to a script entity containing the following:
These are for all the keys currently in Grimrock Vanilla.
Short Video (slightly outdated). https://www.youtube.com/watch?v=9P9MMZUBrNI
Pics:
SpoilerShow


How to use:
* Copy and paste text from the "objects.lua" into your mod's custom "objects.lua" file.
* Extract the model files into your "Models" folder in your custom dungeon assets.
* Find your new locks under "Props" in the editor.
* Place on a wall and link the lock_alcove to whatever you want.
* Prison locks are only used for the prison wall set as those walls are much "deeper" and normal locks will leave a big gap between them an the wall if placed in that wall set.
Can use and edit any way you want!
All models and .lua edits for download here: https://www.dropbox.com/s/nj9lafcobnxyh ... 0locks.rar
Credits:
* AdrTru for helping me with the Models.
* Isaac for providing lots of help and info.
To make a key click sound when inserting a key, link the alcove to a script entity containing the following:
Code: Select all
function playKeyClick()
playSound("key_lock")
end