How can I disable lighting?

Discussion in 'Mapping Questions & Discussion' started by MoonFox, Sep 7, 2015.

  1. MoonFox

    MoonFox L10: Glamorous Member

    Messages:
    737
    Positive Ratings:
    72
    For my current map project, I am putting lights underneath the capture point, that I want the light to switch when it is captured, Blue for blu capture, red for red. But I don't want both to shine at the same time (which is my problem)
     
  2. radarhead

    aa radarhead Level 20 "Mapper"

    Messages:
    1,014
    Positive Ratings:
    562
    Use light_dynamic. These can be enabled and disabled with inputs.
     
    • Thanks Thanks x 1
  3. MoonFox

    MoonFox L10: Glamorous Member

    Messages:
    737
    Positive Ratings:
    72
    thanks clam... but I want them to be spot lights...
     
  4. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    958
    Positive Ratings:
    947
    No need for light_dynamic. Any light entity becomes dynamic once you give it a targetname.
     
    • Thanks Thanks x 1
  5. Vincent

    aa Vincent 🔨 Grandmaster Lizard Wizard Jedi 🔨

    Messages:
    914
    Positive Ratings:
    680
    Just name the light_spot and set a few toggle / TurnOn / TurnOff outputs. Careful about filesize, blah blah blah.
     
  6. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,035
    Positive Ratings:
    4,497
  7. MoonFox

    MoonFox L10: Glamorous Member

    Messages:
    737
    Positive Ratings:
    72
    its funny, i time my compile times... its sped up.... but still, what should I target it to? the capture point, or the point?
     
  8. Turnip

    aa Turnip The 80s Vegetable

    Messages:
    1,432
    Positive Ratings:
    804
    Just add outputs to the cap so it disables 1 and enables the ither and vise versa.
     
  9. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,377
    Isn't there a way to add spotlights that use deferred light? Like, they work like the old Half-Life 2 flashlight or something? I know there are entities in other Source games (flares, those camera bots) that cast cheap deferred light. That might be ideal in this situation.
     
  10. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    You want to avoid illuminating a play space red or blue, because the colours of player models will become hard to distinguish.

    Give point_spotlight a try. It's not a light, it's a halo/corona/tyndall effect that simulates a spotlight but doesn't generate any actual light, so it won't affect lightmap sizes.

    Give each coloured set a name (e.g. light_red and light_blue), then you can send outputs to them from the control point entity when it changes owner.

    FYI point_spotlight has a maximum width of 72 or something like that so if the effect isn't wide enough, then try reducing its length.
     
  11. MoonFox

    MoonFox L10: Glamorous Member

    Messages:
    737
    Positive Ratings:
    72
    and thanks for the help everyone, but I still cant get it to work, oh and a side note update: I fixed that cart bug I had. apparently the intial track setting was unlinked, and the cart origin was off.