Passtime score limit?

DeOntwerper

L1: Registered
Nov 20, 2013
46
1
Heya there,

Might sound a rather stupid question but how do I go about setting the limit for goals on a custom passtime map?
 

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,257
999
Greetings!

The goal limit is controlled by the server cvar tf_flag_caps_per_round, which is the same one that controls the flag capture limit in CTF. Unfortunately this is a server cvar, and the only way a mapper can change it is by using a point_servercommand (which are frowned upon because of security concerns and are disallowed by default), or by including a config file with your map as a separate file.

The reason such things are controlled via server cvar rather than by the map is to give the server operator more control over the experience he offers players. I know that can get in the way when you are trying to make an unusual version of a game mode.

The people working on Pass Time are receptive to feedback. You should ask in the Official PASS Time Steam group about letting the mapper change the goal limit in the passtime_logic entity. I advise against taking this control away from the server operator, though.
 

wiseguy149

Emperor of Entities and Amateur of Aesthetics
May 12, 2009
103
220
Ah poop. As I was hoping to create a passtime bball map.
It still should be doable, you'd just have to create your own score system. Instead of goals, just make triggers that detect the ball and have them increment your own counter. And whenever the counter reaches some threshold, trigger a round win.
 

DeOntwerper

L1: Registered
Nov 20, 2013
46
1
It still should be doable, you'd just have to create your own score system. Instead of goals, just make triggers that detect the ball and have them increment your own counter. And whenever the counter reaches some threshold, trigger a round win.
Sorry for another question...how would I be able to create something with game_text_tf as I've never played with math counters etc before.
 
Mar 23, 2013
1,013
347
Sorry for another question...how would I be able to create something with game_text_tf as I've never played with math counters etc before.

the text of the entity is displayed if the entity recieves the "display" input. But aware that text displayed by game_text_tf is not displayed to people who have mini-HUD enabled, unlike game_text
 

DeOntwerper

L1: Registered
Nov 20, 2013
46
1
the text of the entity is displayed if the entity recieves the "display" input. But aware that text displayed by game_text_tf is not displayed to people who have mini-HUD enabled, unlike game_text
I've never dealt with those entities before so I literally have no clue.
 

wiseguy149

Emperor of Entities and Amateur of Aesthetics
May 12, 2009
103
220
I'm currently developing a counter/scoreboard system that would let you display the numbers on the wall somewhere, as opposed to the tf text, which is an (in my opinion) an ugly hud element.

I'll probably have it released as a prefab along with an explanation for how I constructed the entity setup sometime in the next few days, if you can be patient with me.
 

DeOntwerper

L1: Registered
Nov 20, 2013
46
1
Got the scoreboard working with triggers. However the only thing I am stumped on is using filters for the goals...as currently you can score an own goal...