How can I activate an entity every time a round starts?

van_rusvan_rus Join Date: 2006-11-02 Member: 58238Members
I have a rather complicated trigger sistem and it has to be reset.

Another question is how do entities change their state when the game restarts?
The door_rotating has the "delay before close" set to -1.
I open it, then enable sv_cheats to start the game. The door becomes closed again but doesn`t open anymore.
If there is a manual about it, I`d appreciate the link.

Comments

  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    edited November 2006
    1. This should have been posted in the Mapping Help and Troubleshooting forum at the top, there are already a few topics about this very subject to. But enough about that <img src="style_emoticons/<#EMO_DIR#>/tounge.gif" style="vertical-align:middle" emoid=":p" border="0" alt="tounge.gif" />

    2. No need to create a new thread there. I'll enlighten a few things for ya here...

    3. Just imagin there is no three...



    <b>gamestartedstatus</b>

    A trigger builtin to NS. Any entity with this targetname (gamestartedstatus) will be triggered once the start pings are finished at the beginning of a round

    <b>To reset an entity heres what I do.</b>

    trigger_random (with these settings it will fire at the end of each round, when NS resets things):
    shortest fire time: 0
    longest fire time: 0
    delay before reset: -1
    target for tournement play: mapreset

    multimanager (targeted by the trigger_random):
    name: mapreset
    To add targets turn smart edit off and add your targets here with the add button, I beleive it can target a maximum of 16 individual entities. For delay I normally fillin 1. dunno 0 scares me <img src="style_emoticons/<#EMO_DIR#>/biggrin-fix.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin-fix.gif" />



    small sidenote:
    To turn things off use a trigger_relay and set it's trigger status to off

    To turn things on use a trigger_relay and set it's trigger status to on
  • van_rusvan_rus Join Date: 2006-11-02 Member: 58238Members
    <!--quoteo(post=1572585:date=Nov 2 2006, 07:48 PM:name=Kouji_San)--><div class='quotetop'>QUOTE(Kouji_San @ Nov 2 2006, 07:48 PM) [snapback]1572585[/snapback]</div><div class='quotemain'><!--quotec-->
    ...
    <!--QuoteEnd--></div><!--QuoteEEnd-->
    Sorry, didn`t see the subforum.

    I think I understand how the trigger_random trick works, but why do you use it instead of gamestartedstatus?
    What`s the difference?
    btw does it work if the server doesn`t have tournament mode?

    thanks for the help!
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    gamestartedstatus is triggered at the start of a round (after the initial 3 pings)

    The trigger random in this setup is triggered once NS itself resets everything, which is about 5 seconds after a round ends and everyone is back in the readyroom.

    I don't think tournement mode is a problem, but now you got me thinking twice <img src="style_emoticons/<#EMO_DIR#>/biggrin-fix.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin-fix.gif" />
  • van_rusvan_rus Join Date: 2006-11-02 Member: 58238Members
    <!--quoteo(post=1572641:date=Nov 2 2006, 09:08 PM:name=Kouji_San)--><div class='quotetop'>QUOTE(Kouji_San @ Nov 2 2006, 09:08 PM) [snapback]1572641[/snapback]</div><div class='quotemain'><!--quotec-->
    gamestartedstatus is triggered at the start of a round (after the initial 3 pings)

    The trigger random in this setup is triggered once NS itself resets everything, which is about 5 seconds after a round ends and everyone is back in the readyroom.

    I don't think tournement mode is a problem, but now you got me thinking twice <img src="style_emoticons/<#EMO_DIR#>/biggrin-fix.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin-fix.gif" />
    <!--QuoteEnd--></div><!--QuoteEEnd-->
    Thank you, now I`ll try to use this. <img src="style_emoticons/<#EMO_DIR#>/smile-fix.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile-fix.gif" />
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    edited November 2006
    I just tested it during the last walkarround before release of me map. The trigger random triggers during both casual as tournement with these settings <img src="style_emoticons/<#EMO_DIR#>/smile-fix.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile-fix.gif" />
  • GiGaBiTeGiGaBiTe Join Date: 2003-10-07 Member: 21489Members
    gamestartedsequence / gameendedsequence also works. On trigger_randoms, I usually do gameendedsequence for the "delay before reset" else strange things happen.
  • GiGaBiTeGiGaBiTe Join Date: 2003-10-07 Member: 21489Members
    edited November 2006
    grr, browser bugged out.
Sign In or Register to comment.