Trigger round restart?

Need help with triggers.

By Infallible 2 years ago

I am making a map and I want to set up a trigger that when touched restarts the round.

The preferred command is endround, but that is an svcheats command. The alternative is mprestartgame 1, which works but has a delay of 1 second.

I would just like some information on how to end the round using my trigger.

5 posts 483 views

Replies

    • P5: Peddler
      Points: 156,185
    • E6: Authority
      EF: 219
    • C4: Super Moderator
    • A6: Elder
      Account Age: 6 years
    Logan Dougall

    How about the game_end entity? Never played with it myself so you may want to check that it ends the round and not skip to the next map.

    .awesome { Uberstylers:Club; }
    • P3: Peasant
      Points: 8,018
    • E2: Guide
      EF: 28
    • C2: Ripe Member
    • A5: Veteran
      Account Age: 4 years
    Fibbs

    Use a game_end entity.

    Edit:goddommotlost

    • P5: Peddler
      Points: 156,185
    • E6: Authority
      EF: 219
    • C4: Super Moderator
    • A6: Elder
      Account Age: 6 years
    Logan Dougall

    I'm a computer. :( It's my failing in life...

    .awesome { Uberstylers:Club; }
    • P3: Peasant
      Points: 13,380
    • E1: Helper
      EF: 2
    • C1: Member
    • A5: Veteran
      Account Age: 6 years

    Wow quote isn't working, I hope one of you reads this. game_end ends the game rather than the round. I need to end only the round.

    Fix this broken website.
    • P3: Peasant
      Points: 8,018
    • E2: Guide
      EF: 28
    • C2: Ripe Member
    • A5: Veteran
      Account Age: 4 years
    Fibbs

    I think endround can be run by the server with cheats on. Although I wouldn't rely on that as pointservercommand is often blocked by servers for security reasons. TF2 has a gameroundwin entity, but unfortunately CS:S doesn't (at least I don't think so). :l You could always kill everyone (enable a triggerhurt covering the whole map).