THE GAME CUSTOMIZATION NETWORK: FPSB | RTSB | RPGB |
SUBSCRIBE
 
 
Ending a game on map (koth_Barn)
Advice please: I'm confused how to trigger the end of a map
Posted 2 years ago
Last post 1 year ago by captain-pot-noodle



the God-Damn Sexilicious
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 replies 388 views 0 favorites
1 year ago



Future game dev, in study
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 math_counter entity and a game_end 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 game_round_win 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.


If you're reading this then you've gone too far.
1 year ago



the God-Damn Sexilicious
Thanks for your help! :-)

-=Captain p0t n00dle=- -=Try My King of the Hill Map for TF2! ~ koth_barn=-
Add Reply
You must login or register to access this module!
Poster Summary
PostsMemberLast Post
[+] 1captain-pot-noodle1 year ago
[+] 1ncyphe1 year ago
Thread Stats on Author
Threads: 4
Total Views: 1,110
Total Replies: 18
Average Rating: -
Unrated Threads: 4
Total Favs: 0
First Submission: 2 years ago
Latest Submission: 1 year ago
Favorite Category: FPSB > Help (2 threads)