Targets (different from last thread about targets)

Discussion in 'Mapping Questions & Discussion' started by Spamdini, Apr 12, 2008.

  1. Spamdini

    Spamdini L2: Junior Member

    Messages:
    61
    Positive Ratings:
    1
    ok guys so i have referred to these threads...

    http://forums.tf2maps.net/showthread.php?t=1350&highlight=target

    http://forums.tf2maps.net/showthread.php?t=1384&highlight=target

    and while they do have useful information, its not quite what im looking for.

    basically, the situation i want to have is a room with a target it in and a light above the target. the light (which i think will be represented by a env_sprite (world glow thing) will be red by default, when i shoot the target, the light will turn green, then after 3 seconds itll turn red again. also noteworthy is that i want to be able to do this over and over, ie shoot target light turns green, back to red, now i can shoot it again and itll turn green again, etc, etc, etc...

    ive tried playing with some things to no avail and i dont understand the template ent used in the other threads.

    thanks in advance.
     
  2. WarMecha

    WarMecha L2: Junior Member

    Messages:
    64
    Positive Ratings:
    12
    Any reason why you can just have multiple lights and disable/enable, or if you cant disable env_sprite (cant remember off the top of my head) kill and respawn?
     
  3. Pseudo

    Pseudo L6: Sharp Member

    Messages:
    319
    Positive Ratings:
    149
    Use func_button. Check the "Damage Activates" flag. You can change how long it takes for the button to reset itself. You can also make it so that the button (the target) doesn't move when it is pressed (shot).
    Your outputs would be:
    OnPressed sprite Color 0 255 0
    OnOut sprite Color 255 0 0
     
  4. Spamdini

    Spamdini L2: Junior Member

    Messages:
    61
    Positive Ratings:
    1
    ill give that a shot thanks. if i were to later want everything to move what would be the best way to go about it do u think...?
     
  5. Spamdini

    Spamdini L2: Junior Member

    Messages:
    61
    Positive Ratings:
    1
    fantastic, so the button idea works great. now i was wondering another thing. i have a style of target aesthetic in mind, so how would u do this with the parameters allowed in a func_button. i want each target to essentially be a green panel size is irrelevant (which changes to red) that glows. like a glowing light panel. i dont want it to be transparent if possible. ive tested a couple of things with the different render methods like solid and glow but these things some times boil down to single values i just dont know about. any ideas?
     
  6. bob+M|M+

    bob+M|M+ L6: Sharp Member

    Messages:
    348
    Positive Ratings:
    185
    I've never used env_sprite, but if you use normal light way, you could output the func_button to two different lights, turning the green one off and the red one on at the same time, then vise-versa when button resets. if you don't want the light to spread you could block it with blocklight texture.