+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: Wire Lever

  1. #1
    cpf
    cpf is offline
    Wire Sofaking cpf's Avatar
    Join Date
    Nov 2007
    Location
    Uh...Alberta!
    Posts
    478

    Default

    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.

  2. #2
    Wire Amateur SlashH4X's Avatar
    Join Date
    Dec 2007
    Location
    Sherwood Park AB, Canada
    Posts
    72

    Default

    THANK YOU :wub: :wub:

  3. #3
    Wire Amateur CapsAdmin's Avatar
    Join Date
    Mar 2007
    Posts
    79

    Default

    Good idea!

    How about making more of those? Perhaps a wheel that you can turn (0 - 100) or something.

  4. #4
    andy1976uk
    Guest andy1976uk's Avatar

    Default

    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:

  5. #5
    Wire Sofaking miron's Avatar
    Join Date
    Apr 2007
    Location
    California
    Posts
    402

    Default

    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 Originally Posted by Flux
    Isnt masturbating a hobby?

  6. #6
    andy1976uk
    Guest andy1976uk's Avatar

    Default


    Maybe steal some code from the graphics tablet, if you need it.
    Still very cool.[/b]
    Steal it all, greenarrow's brought it upon himself by disappearing on us and leaving the modular panels half-done :lol:

  7. #7
    cpf
    cpf is offline
    Wire Sofaking cpf's Avatar
    Join Date
    Nov 2007
    Location
    Uh...Alberta!
    Posts
    478

    Default

    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...)

  8. #8
    Wirererer high6's Avatar
    Join Date
    Apr 2007
    Posts
    244

    Default

    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 add it somewhere else because this would spam expressions that use ~on etc.

    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. #9
    cpf
    cpf is offline
    Wire Sofaking cpf's Avatar
    Join Date
    Nov 2007
    Location
    Uh...Alberta!
    Posts
    478

    Default

    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

  10. #10
    Wirererer high6's Avatar
    Join Date
    Apr 2007
    Posts
    244

    Default

    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]
    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)


    ps base_gmodentity is in sandbox gamemodes entites folder.

+ Reply to Thread
Page 1 of 3 123 LastLast

LinkBacks (?)

  1. 02-20-2010, 01:00 PM
  2. 01-27-2010, 09:12 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots