making team colored point lighting.

Discussion in 'Mapping Questions & Discussion' started by GiantLeprechaun, Nov 17, 2010.

  1. GiantLeprechaun

    GiantLeprechaun L1: Registered

    Positive Ratings:
    for my KOTH map I want to make it so the point flag glows the appropriate color for whichever team owns the point at the time. Like the koth_laoder.
    Last edited: Nov 17, 2010
  2. zero_rogue

    zero_rogue L1: Registered

    Positive Ratings:
    if i understand you; you want the point to have a light on your KOTH point that changes color biased on who owns it? that would be easy however it will increase the file size of your map somewhat(just an fyi on it).

    1)Create 3 Point_spotlight entities
    2)light each one White, Red, and blue
    3)name each one
    4)Set outputs on the trigger_capture_area so that it disables the white light and enables the color light of the team that capped.

    That should be it. like i said dynamic lights(lights that turn on/off) are expensive. and overlapping ones are exponentially more costly. (your looking at 9x more data than you would have initially have with 1 light.)

    its fine if you do this just at the control point but dont go switching multiple lights throughout the map. ^_^
    • Thanks Thanks x 1
  3. LeSwordfish

    aa LeSwordfish semi-trained quasi-professional

    Positive Ratings:
    also, team-coloured lights can make it hard to distinguish who's on what team.
    • Thanks Thanks x 1
  4. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Positive Ratings:
    Yes, try to avoid coloured lights unless it's a really low saturation. faint blue or faint yellow etc.
    • Thanks Thanks x 1
  5. Pocket

    aa Pocket Naylte ven, naylte yen.

    Positive Ratings:
    Or they only light a small area. Like supposing they're those little emergency lights or something on the walls, but the actual gameplay area is lit with normal white lights.
    • Thanks Thanks x 1
  6. Tapp

    Tapp L10: Glamorous Member

    Positive Ratings:
    If you're going to quadruple the size of the lightmap file, make sure that the lights are in a noticable place. Attach some effects to them (sprites, spotlights, etc) and try optimising your lightmaps to compensate. Finally, you absolutely MUST name any grouped lights the same. So if you name all the red lights the same, then you can have as many as you want, while if you name them differently your first additional lights are going to cost you 32 lightmaps (verrrrrry bad)
    • Thanks Thanks x 1
  7. Terr

    aa Terr Cranky Coder

    Positive Ratings:
    IIRC every switchable light (or same-named set of lights) doubles the number of lightmaps that must be calculated for the entire map, so if you're going to use that type of lighting to "change the theme" you might as well dream big in terms of the area covered by a single switch.

    IMO that sounds like a job for switchable model skins, a world-space glow sprite, and fancy particles, with no actual difference in VRAD lighting.