THANK YOU :wub: :wub:
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!
![]()
Last edited by cpf; 03-23-2008 at 03:23 PM.
WireSim - The coolest project I ever abandoned
Wiremod 1-click installer
Hey, look! It's a tutorial on using LuaInterface! It's outdated on a dead programming forum! Even better! I know!
Good idea!
How about making more of those? Perhaps a wheel that you can turn (0 - 100) or something.![]()
Oh wow, kewl, someone made it! :dance: *downloading*
Edit: Holy crap, it animates too!:wub:
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" :lol:
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.
Originally Posted by Flux
Steal it all, greenarrow's brought it upon himself by disappearing on us and leaving the modular panels half-done :lol:Maybe steal some code from the graphics tablet, if you need it.
Still very cool.[/b]
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 - The coolest project I ever abandoned
Wiremod 1-click installer
Hey, look! It's a tutorial on using LuaInterface! It's outdated on a dead programming forum! Even better! I know!
I would like to add this to svn, is that ok with you cpf?
A few suggestions,
remove
And add it somewhere else because this would spam expressions that use ~on etc.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.
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 - The coolest project I ever abandoned
Wiremod 1-click installer
Hey, look! It's a tutorial on using LuaInterface! It's outdated on a dead programming forum! Even better! I know!
With the outline I believe by default the base ent is base_gmodentity which if you look at it's cl_init.lua you can see the draw functions that make the outline. (Overwrite the functions in your sents cl_init.lua)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[/b]
ps base_gmodentity is in sandbox gamemodes entites folder.
Bookmarks