+ Reply to Thread
Results 1 to 5 of 5

Thread: Health Detector?

  1. #1
    cpf
    cpf is offline
    Wire Sofaking cpf is on a distinguished road cpf's Avatar
    Join Date
    Nov 2007
    Location
    Uh...Alberta!
    Posts
    492

    Default

    Hi

    Its useful to know how much health something has (well, *I* can think of a few uses), but theres no official Wire Health Detector
    Its trivial to add it to the ranger, with the downside of having no checkbox to disable it, but whats the chance of having it incorporated in the official SVN?

    Note: Just because someone might find it useful, I included the modded lua file, just put it in the Steam\steamapps\<username>\garrysmod\garrysmod\add ons\wire\lua\entities\gmod_wire_ranger folder
    Attached Files
    WireSim.com
    Why does everybody say CPF? it's cpf :P
    Hey, look! It's a tutorial on using LuaInterface!

  2. #2
    Lurker ShaRose will become famous soon enough ShaRose's Avatar
    Join Date
    Mar 2007
    Location
    Burin, Newfoundland, Canada
    Posts
    537

    Default

    Shot in the dark here, put the adv. pod outputs that. But i&#39;m sure someone&#39;ll stick that up. (is only on for surfing)

  3. #3
    Inactive _Kilburn is on a distinguished road _Kilburn's Avatar
    Join Date
    Jul 2007
    Location
    France
    Posts
    277

    Default

    I&#39;m thinking about a kind of ranger that calls Lua functions from the entity it is pointed at, with given parameters, and outputs the values returned by the function.

    ie:

    "Ignite(A,B)" will give you an entity that accepts 2 inputs (A and B), where A is the ignite duration, and B is the ignite radius. And you have an igniter.

    "Health()" will give you an entity that outputs the health of the entity it is pointed at.

    "SetColor(A,B,C,D)" will give you a colorer.

    It should also be able to access objects returned by these functions.

    "GetPhysicsObject():GetMass()" will give you a mass measurement entity.

    Also, maybe a special support for vectors that splits returned vectors and angles into 3 outputs.

    Is this a good idea or not ?
    [CENTER]
    [URL="http://www.wizards.com/magic/playmagic/whatcolorareyou.asp"][/URL][/CENTER]

  4. #4
    Lurker ShaRose will become famous soon enough ShaRose's Avatar
    Join Date
    Mar 2007
    Location
    Burin, Newfoundland, Canada
    Posts
    537

    Exclamation

    "Ignite(A," will give you an entity that accepts 2 inputs (A and , where A is the ignite duration, and B is the ignite radius. And you have an igniter.[/b]
    Too mingy, and already suggested.

    "Health()" will give you an entity that outputs the health of the entity it is pointed at.[/b]
    What would you really do with it? But I supose that could be added.

    "SetColor(A,B,C,D)" will give you a colorer.[/b]
    We already have it, and we&#39;ve had it for a while. [color=#000000;background:#000000]Look for &#39;colourer&#39;[/color]

    "GetPhysicsObject():GetMass()" will give you a mass measurement entity.[/b]
    Wire wieght.

    Also, maybe a special support for vectors that splits returned vectors and angles into 3 outputs.[/b]
    E-Gate vector support. CODE AHOY!

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>N@Vector seperator
    I@Vector
    O@X Y Z
    X = vecx(Vector)
    Y = vecy(Vector)
    Z = vecz(Vector)</div>

  5. #5
    Inactive _Kilburn is on a distinguished road _Kilburn's Avatar
    Join Date
    Jul 2007
    Location
    France
    Posts
    277

    Default

    I know all that. I just mean.... some universal beamcaster that can send and get any info from an entity using simple Lua function calls. Enter the Lua code in game, and it will execute it with the given parameters, and output the results.
    I&#39;m not doing suggestions, I&#39;m talking about what I am working on right now.

    Colorer, igniter and stuff were simple examples. Also, I don&#39;t see why an Igniter would be too mingy.... IT&#39;S ALREADY IN WIRE SVN OMG.

    And...
    "Health()" will give you an entity that outputs the health of the entity it is pointed at.[/b]
    Have you even read the whole subject ? I&#39;m answering to the author of this thread, who made a cheap ranger that outputs the health of an entity, and couldn&#39;t even modify the stool so you can toggle this feature off.

    And wire weight is an entity with a variable mass. Nothing to do with a beam that can read the mass of a physics prop.

    And I know everything about Expression Gate vector support. Don&#39;t try to teach me Wire... you don&#39;t get at all what I am talking about, do you ?
    [CENTER]
    [URL="http://www.wizards.com/magic/playmagic/whatcolorareyou.asp"][/URL][/CENTER]

+ Reply to Thread

Similar Threads

  1. Wire Money Detector for RP
    By philxyz in forum Wiremod Addons
    Replies: 60
    Last Post: 02-05-2010, 02:22 AM
  2. Money detector in Offical svn
    By Donkie in forum Ideas & Suggestions
    Replies: 6
    Last Post: 05-05-2009, 01:26 PM
  3. Mass Detector lag
    By andy1976uk in forum Bug Reports Archive
    Replies: 8
    Last Post: 02-12-2008, 12:06 PM
  4. RT Camera Motion detector
    By timas in forum Ideas & Suggestions
    Replies: 4
    Last Post: 01-19-2008, 09:16 AM
  5. More detector tools
    By andy1976uk in forum Ideas & Suggestions
    Replies: 4
    Last Post: 07-17-2007, 01:42 PM

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