Garry's Mod

Garry's Mod

TTT - Door Locker
42 Comments
Neolectron 17 Sep @ 9:22pm 
Hello, do you have a github so I can contribute ?
Ostross 18 Sep, 2020 @ 2:24am 
https://steamproxy.net/sharedfiles/filedetails/?id=2115945573&searchtext=door+locker

Here is a version that should be compatible with TTT2.
BongoKittyCat 13 Sep, 2018 @ 2:20pm 
works perf!
Paley 3 Dec, 2017 @ 5:55am 
[ERROR] addons/ttt_-_door_locker_290945941/lua/weapons/weapon_ttt_locker.lua:239: attempt to index global 'self' (a nil value)
1. v - addons/ttt_-_door_locker_290945941/lua/weapons/weapon_ttt_locker.lua:239
2. unknown - lua/includes/modules/hook.lua:84
3. FireBullets - [C]:-1
4. ShootBullet - gamemodes/terrortown/entities/weapons/weapon_tttbase.lua:316
5. unknown - gamemodes/terrortown/entities/weapons/weapon_tttbase.lua:240
Paley 3 Dec, 2017 @ 5:50am 
line 239 dont work when i try to destroy the door (sry for bad english ^^)
dmbai 23 Aug, 2017 @ 1:21am 
It working in sandbox?
CB#2 30 Jul, 2017 @ 5:56pm 
UGH IM LOOKING FOR A MOD TO LOCK DOORS NOT A TIME LIMIT UGGHH.
Sneaky Beaky 27 May, 2017 @ 4:22pm 
and its only locked for 30 secs
Sneaky Beaky 27 May, 2017 @ 4:22pm 
why would it unlock
Đante 8 May, 2017 @ 2:05am 
This addon causes the console to massively spam, even if you don't use it on the map. "Incompatiable Door" It depends on the map as well.
Exho  [author] 12 Apr, 2017 @ 1:45pm 
ok
Aegis Prime 11 Apr, 2017 @ 5:35pm 
i am a male
Exho  [author] 11 Apr, 2017 @ 11:18am 
Thanks my dude
Aegis Prime 10 Apr, 2017 @ 5:58pm 
u cool btw
Exho  [author] 10 Apr, 2017 @ 5:18pm 
I'm a guy, was just a bit thrown off by you asking. No worries
Aegis Prime 10 Apr, 2017 @ 5:11pm 
im just gonna delete my gender related comments ok?
Aegis Prime 10 Apr, 2017 @ 5:10pm 
well if i made a mistake with gender im sorry
Exho  [author] 10 Apr, 2017 @ 5:08pm 
Um, dare I ask why you want to know?
Aegis Prime 10 Apr, 2017 @ 4:22pm 
thnx man
Exho  [author] 10 Apr, 2017 @ 4:22pm 
No sir, just a TTT thing. But you can get the sandbox version here: http://steamproxy.net/sharedfiles/filedetails/?id=290947495
Aegis Prime 10 Apr, 2017 @ 4:06pm 
hey exho does this work in sandbox
?
x-Fumei-x 4 Jan, 2017 @ 3:39am 
nice
Exho  [author] 9 Sep, 2016 @ 2:15pm 
Fixed SomeCallMeNomad's error, it resulted from poor coding

In order to change the time delay you will have to extract the addon and edit the values within the Lua file, they are named and commented so they should be easy to use once you get to them
konfident z polski 8 Aug, 2016 @ 7:04am 
how to change lock delay ??
LTG 21 Jun, 2016 @ 9:03am 
could you please tell me where exactly i could change the locking time from 30seconds to another time period? :)
♥座頭市 TH♥ 19 Apr, 2016 @ 6:45am 
what map
YeroZenn 5 Nov, 2015 @ 5:54pm 
can you do it with seats on the sandbox version so you can lock vehicles










Doom6197 20 Jun, 2015 @ 4:10pm 
I get the same error as SomeCallMeNomad
Nomad 2 Jun, 2015 @ 11:40am 
[ERROR] lua/weapons/weapon_ttt_locker.lua:174: attempt to index a string value with bad key ('Nick' is not part of the string library)
1. error - [C]:-1
2. __index - lua/includes/extensions/string.lua:310
3. unknown - addons/door-locker tool [traitor]/lua/weapons/weapon_ttt_locker.lua:174
Exho  [author] 2 Jun, 2015 @ 6:20am 
Think about it man, telling me there is an error is not helpful. I actually need the error because it contains information about what went wrong and
Nomad 1 Jun, 2015 @ 7:00pm 
When I lock a door, the door locks, but the message saying its locked (Or thats what I assume it is) doesn't show up, and the game gives me an error
Tiger__ 28 Jul, 2014 @ 12:14pm 
door lock work great. door need little more hp. LOL
Exho  [author] 28 Jul, 2014 @ 8:37am 
Ugh, Convars are being a pain.
Gingernuts 27 Jul, 2014 @ 10:25pm 
Getting this error :/

[ERROR] gamemodes/terrortown/entities/weapons/weapon_ttt_locker.lua:179: attempt to index a nil value
1. unknown - gamemodes/terrortown/entities/weapons/weapon_ttt_locker.lua:179
Exho  [author] 26 Jul, 2014 @ 6:04am 
Just Traitor
GrandNoodleLite 26 Jul, 2014 @ 4:50am 
Is this just a traitor weapon or is it a detective weapon as well?
ErraticA09 25 Jul, 2014 @ 7:45pm 
<3
Delta7x 25 Jul, 2014 @ 10:05am 
Honestly, that bit was really no big deal as I can't think of anyone who would use it on one of those doors.

I only mentioned it because I felt it best for you to know that it was possible for that sorta thing to happen. It'd be silly to try and lock a door that can already lock, no harm no foul really.
Exho  [author] 25 Jul, 2014 @ 7:31am 
Fixed the icon path and the Health issue. I do not know of a good way to stop the doors from being opened using buttons as I cannot grab the doors current state with Lua and cant prevent the door from being opened unless I tell the door to lock every second.
RoboFish 25 Jul, 2014 @ 4:26am 
I believe what Delta is saying is that the Locker overrides map functions, but the latter doesn't update it self if it is not the actual door targeted. (Just in case he didn't make it clear)
Exho  [author] 24 Jul, 2014 @ 8:13pm 
I will look into it tomorrow, thanks
Delta7x 24 Jul, 2014 @ 8:07pm 
Deleted my previous comments to compile it into one:

The path to the icon for the T menu seems to have derped, or was not included with the upload as it is untextured in the T menu.

Doors seem to display 0 health regardless of the current health they have.

Also, on doors that lock via button (Jailcell doors on 67thway for example), if you close and lock the door via button, then use the door locker, and press the button to unlock the door the door will act as if it's not locked at all even though it is. (I probably worded that awkwardly, hopefully you get what I mean though)

Overall though, everything on it works as intended besides those three things. I'm excited for this addon to be released, again, very nice work!