![]() |
| |||||||
| Wiremod Addons Have you created a wiremod addon? Post it here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) | ||||||||
| Wire Sofaking ![]()
| Hi First [released] SENT! Yay! [e.g. please comment] Well, this is in response to someone (I forget) saying that a lever would be cool, so here it is! Use toggles it You'll need HL2EP2 for the model though... (or just download it) Here's what it looks like: ![]() Note: Spawn from the entities tab Edit: The model is here!
__________________ WireSim.com Why does everybody say CPF? it's cpf :P Hey, look! It's a tutorial on using LuaInterface! Last edited by cpf; 03-23-2008 at 02:23 PM. | ||||||||
| | |
| | #4 (permalink) |
| Guest
Posts: n/a
| Oh wow, kewl, someone made it! :dance: *downloading* Edit: Holy crap, it animates too! Only thing I'd suggest is that wheel / multiple-settings idea that Caps mentioned and perhaps a selection of models. That one is kewl, but some smaller ones in addition to that would be great. ![]() PS anyone like me with a few hundred quintillion entities who's wondering where it is, and is freaking out because they don't see anything called "Lever", well, it's called "Wired Lever" |
|
| | #5 (permalink) | |
| Wirererer ![]() | Amazing work. Excellent. I will not use buttons nearly as often anymore. But is there a way to make it variable, to where you are looking? Like if you're looking exactly in the middle, it outputs 0.5? Maybe steal some code from the graphics tablet, if you need it. Still very cool. EDIT: Just had a thought, how about if you make it more like a constant value? I was thinking something like where it's got 5 values, and it sticks at 0%, 25%, 50%, 75%, 100%. Maybe have it as a checkbox, so you can have it without snapping or with snapping. This is for if you make it a stool, with a menu. I don't know how that idea would work as a sent.
__________________ Quote:
| |
| | |
| | #7 (permalink) | ||||||||
| Wire Sofaking ![]()
| Sorry, but the animation is open or closed, I cant think of a way to make it stick in the center, though i'll look into how the HL2 levers worked, and how I could emulate that with LUA (with the ballsockets and all...). The wheel would be cool, though i'm not sure how to do it (since it comes in 2 parts I think, just like the HL2 lever...)
__________________ WireSim.com Why does everybody say CPF? it's cpf :P Hey, look! It's a tutorial on using LuaInterface! | ||||||||
| | |
| | #8 (permalink) |
| Wirererer ![]() Join Date: Apr 2007
Posts: 243
![]() | I would like to add this to svn, is that ok with you cpf? A few suggestions, remove Code: function ENT:Think() **** ****if not (WireAddon == nil) then Wire_TriggerOutput(self.Entity, "A", on) end end and make your global variables local by doing ENT.var and self.var Also maybe remove the white/black highlight because I personally don't like it. |
| | |
| | #9 (permalink) | ||||||||
| Wire Sofaking ![]()
| I'm fine with SVNing it, I cpuldnt get local variables to work, and I don't know how to remove that outline... Any tips? :P
__________________ WireSim.com Why does everybody say CPF? it's cpf :P Hey, look! It's a tutorial on using LuaInterface! | ||||||||
| | |
| | #10 (permalink) | |
| Wirererer ![]() Join Date: Apr 2007
Posts: 243
![]() | Quote:
ps base_gmodentity is in sandbox gamemodes entites folder. | |
| | |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |