• Keypad (STool)
    444 replies, posted
I made it possible to enter the code using the numpad on your keyboard, while looking at the wire keypad. The advantages are that you cant be spied on by people examining your aim vector and you also don't have to aim at the buttons :) (although I think Robbis did a great job with them) keypad enter = ok keypad plus = abort to install this patch, extract the .lua files to addons/keypad/lua/entities/sent_keypad_wire @ robbis: I included .diff files so you can see what i changed. I actually changed a lot more than was needed to add that feature. the code was a mess, I cleaned it up before starting to work on it :) if you don't like my changes, just copy the PlayerBindPress hook from the end of cl_init.lua, that is all that is needed for the feature. I only modified the wire keypad, but adapting the same change for the regular keypad should be straightforward. [url=http://www.garrysmod.org/downloads/?a=view&id=73099][img]http://www.garrysmod.org/img/?t=dll&id=73099[/img][/url]
Tomy, 2 things; one; nice idea, I'm gonna try that next time I load up GMod. two; I got the first download. I feel so special!
[url=http://www.garrysmod.org/downloads/?a=view&id=74938][img]http://www.garrysmod.org/img/?t=dll&id=74938[/img][/url] My modified version of the keypad. List of modifications: (1.4 -> most recent) - Allowed to use the numpad keys to enter a password. Enter=OK, Plus=Abort - Got rid of all unnecessary networked variables. - Cleaned up the code a lot - Changed the "denied" sound to something more available. - Delayed the "access denied" text a bit to match the buzz of the new "denied" sound. - Anti-aliased the font of "Access granted". I kept "Access denied" aliased, cause it looks more "error-like" :) - Removed the "sent_keypad_wire" entity. Wire keypad is now "sent_keypad" as well. - Added Duplicator support
Tomy, since you understand LUA (because I don't know crap about it) do you know what I'd have to do so I can set properties for a keypad in Hammer?
I don't know hammer :D but try the lua_run entity
More changes (1.4-TL2.1->1.4-TL3): - Fixed the keypad only showing when pointing at it in 2.1 (oops, misread code) - Delayed the "access denied" text a bit to match the buzz of the new "denied" sound. - Anti-aliased the font of "Access granted". I kept "Access denied" aliased, cause it looks more "error-like" :) - re-introduced the "sent_keypad_wire" entity, which now simply includes the code from sent_keypad. This will restore forward- and backward-compatibility of dupes with old keypad versions. For the download link and a full list of changes from Keypad 1.4 to the most recent version, [url=http://www.facepunch.com/showthread.php?p=16072325#post16072325]read above[/url].
Breaks after being saved in adv dupe. Password is wrong after re-paste.
EggNogin: I know. It behaves just like Keypad 1.4 in that regard. I didn't fix it, because it might have been intended behaviour (so your password isn't in the dupe). What do you think, should this be fixed?
[QUOTE=TomyLobo;16109813]EggNogin: I know. It behaves just like Keypad 1.4 in that regard. I didn't fix it, because it might have been intended behaviour (so your password isn't in the dupe). What do you think, should this be fixed?[/QUOTE] yes. yes it should
it means anyone with your dupe can find out your password.
no, just the password for that dupe. (if the server has prop protection, they can't dupe my stuff. if I release a dupe, I usually have the password at 1234.)
------------------ Options ------------------ [X] Allow duping/keep password Allow us to at least set a password after duplicating.
right-click the keypad to update it. didn't try it, but it should work.
Small bug in the client-side code of the keypad entity: If you press a numpad key while there is nothing in front of you for 16384 units (look at the sky on a large map), the numpad stuff ceases to work until you reconnect to the server. I didn't notice it until now because I seldom use numpad atm ^^ To fix (needs to be done on the server): open keypad/lua/entities/sent_keypad/cl_init.lua, line 148 or something. Add "if not ValidEntity(ent) then return end" after "local ent = trace.Entity" Will release a new version fixing this tomorrow, including duping and all
New version: Changes (1.4-TL3->1.4-TL4): - Fixed the numpad input method breaking when pressing numpad keys while looking at the sky. - re-removed the "sent_keypad_wire" entity. Wire keypad is now "sent_keypad" as well - Added Duplicator support For the download link and a full list of changes from Keypad 1.4 to the most recent version, [url=http://www.facepunch.com/showthread.php?p=16072325#post16072325]read above[/url].
[QUOTE=TomyLobo;16161754] - Added Duplicator support[/QUOTE] YESSS THANK you
i think it sucks
so, what would you improve?
[QUOTE=TomyLobo;16390523]so, what would you improve?[/QUOTE] ur mum lol narrrrrr just kiddin no i think its cool nice addon
[QUOTE=flippy661;16400317]ur mum lol narrrrrr just kiddin no i think its cool nice addon[/QUOTE] good job bumping it asshat
I committed this to the wiremodextras svn (uwsvn) when I noticed that an old version was already in it.
I fixed 2 bugs: the one that prevented keypad from working more than 4 times. and duplicator pasting the keypad without any outputs fix is committed to wiremodextras svn (uwsvn). stand-alone fix comes later
Uploaded a stand-alone bugfix for the bugs mentioned in my previous post. For the download link and a full list of changes from Keypad 1.4 to the most recent version, [url=http://www.facepunch.com/showthread.php?p=16072325#post16072325]read above[/url].
Yay, it's part of the Wire Extras pack now! You should update the readme in the UWSVN to show the current Keypad author. Something like "Originally by Robbis_1, now TomyLobo."
HERE - when i spawn a Keypad i want to enter the code i cant i dont know how + on the beginig it says ACCES GRANTED. how can i make it to non so i can enter the code????????? PLEASES PLEASSE HELPPPPPPPPPPPPPPPPPPPPP
[QUOTE=Killer_GMOD;13381801]Where do I put the files??[/QUOTE] BUG BY 1.4 or what ever it is!!!!!!!!!!!! when i spawn my keypad it fals down and it automaticly says : Acces Granted. i canot write in the password and ive got so much ideas what can i do.... il make a roam: if the password is write you can exit if not: you stay there forever : D: both it wont work eveeeeeeeeeeeeeeeeer if someone doesnt help meeeeeeeeeeeeeeeee
wow, you're annoying. you made two posts without really describing your problem and your spelling is horrible Try again, but this time: - spell properly - give step-by-step instructions on how to reproduce the bug - don't repeat letters - don't say "help"
Greatist addon ive gotten. (i have more then 2gb of addons) :) [editline]09:07PM[/editline] [QUOTE=Micko9;16518515]BUG BY 1.4 or what ever it is!!!!!!!!!!!! when i spawn my keypad it fals down and it automaticly says : Acces Granted. i canot write in the password and ive got so much ideas what can i do.... il make a roam: if the password is write you can exit if not: you stay there forever : D: both it wont work eveeeeeeeeeeeeeeeeer if someone doesnt help meeeeeeeeeeeeeeeee[/QUOTE] Speak clearer please and i might be able to help you
[QUOTE=Spycake;17762510]Greatist addon ive gotten. (i have more then 2gb of addons) :) [editline]09:07PM[/editline] Speak clearer please and i might be able to help you[/QUOTE] Psst, I know this is popular, but look at the posting dates. Gravedigging isn't the best thing to do around here. The last post side from yours was in August.
awesome secured base coming downloading
Sorry, you need to Log In to post a reply to this thread.