help with lasers

Discussion in 'Mapping Questions & Discussion' started by Jsd, May 20, 2017.

  1. Jsd

    Jsd L3: Member

    Messages:
    102
    Positive Ratings:
    15
    how do you make lasers shot a litlle after a koth control point is captured?
     
  2. PenolAkushari

    PenolAkushari Never Played MvM

    Messages:
    52
    Positive Ratings:
    24
    You saw that in the koth_trainsawlaser, right?
    I didn't tried that out myself, though I might speculate that it was some laser particle and series of triggers that hurt people being activated for some time after point was captured.

    Pardon for crude response, though if you didn't understand what I meant, then someone else might explain that, or maybe I'll actually try saying it more clear.

    EDIT:

    I just love doing crutches for no reason while doing no research on the subject, don't I?
     
    Last edited: May 20, 2017
  3. Micnax

    aa Micnax I maek map

    Messages:
    2,061
    Positive Ratings:
    1,396
    env_laser is your answer! You can have it fire at single or multiple func_brush targets. This is how Crash did it in trainsawlaser.
     
  4. Jsd

    Jsd L3: Member

    Messages:
    102
    Positive Ratings:
    15
    But how do I make it fire after the point is captured?
     
  5. henke37

    aa henke37

    Messages:
    1,919
    Positive Ratings:
    449
    Looks like there is a "TurnOn" input. That might be useful.
     
  6. Jsd

    Jsd L3: Member

    Messages:
    102
    Positive Ratings:
    15
    I'll play around with that when im at my computer
     
  7. Jsd

    Jsd L3: Member

    Messages:
    102
    Positive Ratings:
    15
    huh I cant figure how to do it
     
  8. Diva Dan

    aa Diva Dan hello!

    Messages:
    853
    Positive Ratings:
    1,458
    A control point (the entity that looks like the hologram) sends an output whenever a team captures it. Something like onCapture. Make it so when it's captured, it sends an output to the env_laser to turnOn. I'll get on my PC and do some more research
     
  9. Vel0city

    aa Vel0city func_fish

    Messages:
    1,931
    Positive Ratings:
    1,540
    OnCapTeam 1/2 (RED or BLU)-> Turn On, presumably.
     
  10. Jsd

    Jsd L3: Member

    Messages:
    102
    Positive Ratings:
    15
    it dosent let me have OnCapteam in the outputs
     
  11. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    949
    Positive Ratings:
    937
    It is important to select the right entity. The controlpoint (the hologram) and the capture area (the trigger brush) both can have outputs, but I always forget which one to use. One of them should have outputs already, for example to change the skin of the controlpoint base model.
    Make sure to also give your env_laser a name and a target (with a name). From there on it's just
    [OnSomeEvent] -> [laser] -> TurnOn -> [any desired delay, probably 0.0]

    Also check out the env_beam entity. It is very similar to the laser but still has some different properties.
     
  12. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    949
    Positive Ratings:
    937
    Doublepost time.
    I checked the entities and both, the trigger_capture_area and the team_control_point have outputs for OnCapTeam1 and OnCapTeam2. So you must be doing something very wrong if you can't find these outputs. Did you make sure to click "add" to, well, add an output?
    Considering you probably want it to fire regardless of which team captured the point, use OnEndCap.
     
  13. Jsd

    Jsd L3: Member

    Messages:
    102
    Positive Ratings:
    15
    i think i figured it out will say if
     
  14. Jsd

    Jsd L3: Member

    Messages:
    102
    Positive Ratings:
    15
    nope
     
  15. Jsd

    Jsd L3: Member

    Messages:
    102
    Positive Ratings:
    15
    but how do i make it fire?
     
  16. Dr. Orange

    Dr. Orange L6: Sharp Member

    Messages:
    368
    Positive Ratings:
    278
  17. RodionJenga

    RodionJenga L5: Dapper Member

    Messages:
    234
    Positive Ratings:
    239
    Make sure your env_laser is named. Then, go to your team_control_point and go to the outputs tab. Click the "Add..." button.

    My output named: OnCap Team1 (OnOwnerChangedTo Team1 also works)
    Targets entities named: WhateverYouNamedYourEnvLaser
    Via this input: TurnOn
    After a delay in second of: However long after cap you want the laser to go off

    Hit enter and then add another output for Team2, then another two to turn the lasers off (TurnOff) a few seconds after your delay.
     
  18. Jsd

    Jsd L3: Member

    Messages:
    102
    Positive Ratings:
    15
    but there is no opsion for TurnOn it just becomes red text
     
  19. Lampenpam

    aa Lampenpam

    Messages:
    1,019
    Positive Ratings:
    337
    Thats because the target is invalid. What did you use as target entity? It has to be the name of the env_laser. So name the laser "lazzor" (or whatever you want) and then put the name "lazzor" at targeted entity. Then when you configure the output, it will suggest all possible intputs for the targeted entity. Select the one you want, in this case "turn on"
     
Tags: