Round Start Trigger

Racer1Racer1 Join Date: 2002-11-22 Member: 9615Members
I've been trying to figure out how to make an event happen at the beginning of each round. I assumed that by now, ns would have a trigger for this as it is a very common event; but I can't seem to find it. Does anyone have a way of doing this even if the round ends but the map does NOT change and a new round starts (which would require the event to be triggered again)?

P.S. If this isn't in NS, is there a reason?

Comments

  • CageyCagey Ex-Unknown Worlds Programmer Join Date: 2002-11-15 Member: 8829Members, Retired Developer, NS1 Playtester, Constellation
    The trigger name is "gamestartedstatus"

    It actually fires at both round start and round end.
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    edited December 2003
    I had the same problem for a door which uses a light cone effect after welding the button.

    This is the way I solved it:

    1 trigger_random, read somewhere that this entity fires every round start if one sets its values like this-->

    start on
    maxfiretime: 1
    wait: -1
    balancedtarget: mapreset
    mapreset:1 (this one has to be created with the add button in none smartedit)
    minfiretime:1

    In combination with one or more multimanager(s) with mapreset as targetname
    to reset any scripted sequence values. This one fires only on a round start as
    far as I tested it (works fine on a local map test, it should work on a server test).

    My question is if this is also a valid natural-selection way?

    [edit] typo ^_^ [/edit]
  • Racer1Racer1 Join Date: 2002-11-22 Member: 9615Members
    <!--QuoteBegin--XP-Cagey+Dec 11 2003, 11:49 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (XP-Cagey @ Dec 11 2003, 11:49 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->The trigger name is "gamestartedstatus"

    It actually fires at both round start and round end.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    I tried this out by creating a trigger_relay and naming it gamestartedstatus
    I then triggered an event with it and, after the 3 tones at the beginning of the round, the event triggered - YAY!
    When the round ended, the event did NOT trigger - are you sure that it fires at round end? (it didn't for me in 2.0)

    But it did trigger again on the same map when the next round started, so it looks like this is a usable solution in any case.
    Thanks.
  • CageyCagey Ex-Unknown Worlds Programmer Join Date: 2002-11-15 Member: 8829Members, Retired Developer, NS1 Playtester, Constellation
    <!--QuoteBegin--Racer^+Dec 12 2003, 05:39 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Racer^ @ Dec 12 2003, 05:39 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin--XP-Cagey+Dec 11 2003, 11:49 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (XP-Cagey @ Dec 11 2003, 11:49 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->The trigger name is "gamestartedstatus"

    It actually fires at both round start and round end.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    I tried this out by creating a trigger_relay and naming it gamestartedstatus
    I then triggered an event with it and, after the 3 tones at the beginning of the round, the event triggered - YAY!
    When the round ended, the event did NOT trigger - are you sure that it fires at round end? (it didn't for me in 2.0)

    But it did trigger again on the same map when the next round started, so it looks like this is a usable solution in any case.
    Thanks. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    The trigger relay probably isn't causing an effect on round end because it's set to toggle, so it's doing the following:

    round starts, trigger_relay sends ON signal to your event -- event triggers
    round ends, trigger_relay sends OFF signal to your event -- nothing happens
    round starts, trigger_relay sends ON signal to you event -- event triggers

    et cetra.

    If you use a multi_manager, it should fire the effect on round start and end every time.
Sign In or Register to comment.