INDOOR ambient light

Discussion in 'Game Modifications' started by _Chaz_, Oct 10, 2005.

  1. _Chaz_

    _Chaz_ Guest

    Short and sweet.

    I'm making an almost totally dark for map for CS, many areas are pitch black. The idea is that the player has to use the flashlight, or the nightvision. It's based totally indoors, so there's no skybox. Is there a way to create ambient light? It's irritating to have to place loads of lights, and in addition, the nightvision only works when there is light, so there needs to be an even amount of light throughout the level.
     
  2. crackhead

    crackhead Newbie

    Joined:
    Nov 25, 2004
    Messages:
    2,158
    Likes Received:
    0
    just use lots of dynamic lights so theres really shadowy corners n stuff. then the players can take cover in the shadows and also have to use nightvision as well as their flashlight. i made a really dark map set in a underground cavern thing but it was juts really annoying to play.
     
  3. Raeven0

    Raeven0 Newbie

    Joined:
    Jan 16, 2005
    Messages:
    2,495
    Likes Received:
    0
    Worldspawn (Map --> Map Properties) supports a _minlight key, which controls the minimum light level of almost everything in the map; the value is a real number between 0.0 and 2.0 inclusive, where 0.0 is black and 2.0 is fullbright.
     
  4. _Chaz_

    _Chaz_ Guest

    Brilliant, it works perfectly. Thankyou!
     
  5. Osilo

    Osilo Newbie

    Joined:
    Nov 26, 2004
    Messages:
    121
    Likes Received:
    0
    Is their a way to change the color of the ambient light?
     
  6. UltraProAnti

    UltraProAnti Newbie

    Joined:
    Nov 22, 2004
    Messages:
    509
    Likes Received:
    0
    i thought ambient light was controlled by the light_environment, and a skybox was unnecessary
     
  7. Osilo

    Osilo Newbie

    Joined:
    Nov 26, 2004
    Messages:
    121
    Likes Received:
    0
    you have to have a skybox for light_environment to work, and if a room is isolated from that skybox it won't be affected.
     
  8. Reaktor4

    Reaktor4 Newbie

    Joined:
    Sep 7, 2004
    Messages:
    2,768
    Likes Received:
    0
    Excuse my noobletness but how do you set _minlight?
     
  9. Osilo

    Osilo Newbie

    Joined:
    Nov 26, 2004
    Messages:
    121
    Likes Received:
    0
    I downloaded the Custom FGD in Raeven0's Sig, and then it's in the Map -> Map Properties.
     
  10. Reaktor4

    Reaktor4 Newbie

    Joined:
    Sep 7, 2004
    Messages:
    2,768
    Likes Received:
    0
    Thanks ill check it out.
     

Share This Page