Randomly activating electricity problems, help?

Discussion in 'Mapping Questions & Discussion' started by Joppari, Dec 23, 2010.

  1. Joppari

    Joppari L1: Registered

    Messages:
    10
    Positive Ratings:
    0
    Hello dear gentlemappers.
    In my map, I have a floor, which will randomly get electrified and hazardous.
    I am using logic_timer and a time between 10-25 seconds, randomly.
    Now I have a few problems.
    How do I put ambient_generic to toggle the sound of electricity when the floor gets electrified?
    Does it work so, that I put the ambient_generic in the same Outputs with the trigger_hurt (electrified floor)

    Also another problem, how do I make a siren to play a warning sound 10 seconds before the floor electrifies.
    Remember, the floor gets electrified randomly, between 10-25 seconds.

    Could someone help me up? :)
     
  2. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,692
    ambient_generics that turn on and off have a few problems, AFAIK: namely, once changed from their spawned state, they will stay that way until map change/are disabled or killed. You can set the ambient_generic's volume to 0 and 10 if you want, though.

    The trigger_hurt can easily be controlled the same way as the ambient_generics, but with enable/disable outputs.

    Having something activate before a random event is, well, impossible. How will the logic_timer activate the siren 10 seconds before it even knows when to go off?
     
  3. Joppari

    Joppari L1: Registered

    Messages:
    10
    Positive Ratings:
    0
    Thanks for your help, but I found a solution :)
    So, what I did was that I made the siren play first when the logic_timer calculates a random time, and put the rest outputs as delay, so everything goes on after 10 seconds, and goes off after 15 seconds.
    It works now