Ending a game on map (koth_Barn)

Advice please: I'm confused how to trigger the end of a map

By captain-pot-noodle 4 years ago

Hello all I've created a king of the hill map for TF2 KOTH_Barn on beta 2 at the moment (Beta 3 nearly ready) Its available here: http://www.fpsbanana.com/maps/53758

Anyway My question is:

Do I need to place a game_end entity to trigger after a certain number of rounds

or do I need to set it not to end and then the servers can set the limit?

Thanks in advance p0t n00dle :-)

e: corrected wording

2 Comments 449 Views
  • You must be a member

Replies

    • P2: Drudge
      Points: 2,266
    • E1: Helper
      EF: 1
    • C1: Member
    • A5: Veteran
      Account Age: 4 years

    Edit: I just realized this is not what you asked, but it's an arguable thing. Some would say to let the server or admins control when the game changes maps, but at the same time, if the server has no time limits or there are no admins on, the map will play forever. If you need help, I've provided a quick tutorial below. ---end edit---

    Ok, I'm gonna be a bit quick, but the entities and things I'm going to explain to you should work. I have tinkered around in some of these areas before.

    If you are wanting to create a set number of rounds, you are going to need to create a mathcounter entity and a gameend entity. Set your Math_counter's fields as follows

    --Math_Counter name: [can be anything really] start disabled: no initial value: [the number of rounds you want the players to play] Minimum Legal Value: 0 Maximum Legal Value: [Max number of rounds you want the player to be able to play. Should be the same as initial value]

    Set the out out to: Output: "onhitmin" Target entities: [the name of your game_end entity] Via this input: EndGame After a delay of second: 4 (note: let the player see the MVP's before the scoreboard by making this at least 4 seconds)


    How to use this setup:

    I will describe this using the gameroundwin entity; however, you should be able to apply this to Flag and CP_master entities as well.

    on output: Output: OnRoundWin Target entities: [math_counter name] Via this input: Subtract parameter Overide: 1


    Post me if you have any problems.

    Future game dev, in study
    • P1: Beggar
      Points: 312
    • C1: Member
    • A4: Graduate
      Account Age: 4 years

    Thanks for your help! :-)

    the God-Damn Sexilicious
  • You must be a member
Sponsor Us