Game score Question

newcoda12

L1: Registered
Apr 20, 2008
6
0
Is there a way to add or remove a teams score through entity/logic/coding besides physically capturing a flag or point?
 

Foreverkul

L4: Comfortable Member
Apr 12, 2008
157
14
Like wining? There is a game_round_win entity that you can trigger and it will end the round and give the specified team a point.
 

newcoda12

L1: Registered
Apr 20, 2008
6
0
close, I dont want them to win on just getting a point, like ctf I guess where you have to get 3 points to win
 

hydrage

L1: Registered
Apr 9, 2008
49
7
I'm wondering about this too. I'd like to be able to add points to a team's score using whatever arbitrary entity trigger logic I could cook up. :)
 

Jive Turkey

L3: Member
Jan 22, 2008
120
32
afaik, the game_score entity does just this. In fact, the bummer has been that it doesn't do individual scores, just team scores. Just set the "Team Score" flag, and be sure to set the "Allow Negative" flag if you want to remove points.
 

newcoda12

L1: Registered
Apr 20, 2008
6
0
afaik, the game_score entity does just this. In fact, the bummer has been that it doesn't do individual scores, just team scores. Just set the "Team Score" flag, and be sure to set the "Allow Negative" flag if you want to remove points.

i saw that too, but I cannot get the damn thing to work. I am not entirely sure what I am doing wrong. Just to test Ill made a map with a trig_multi, a game_score. I set the game_score to have team points and make the points 1. I set the output of the trigger to be onstarttouch -> addpoint on the game_score. Nadda.

I tried adding a ctf flag to have the HUD display the points thing, but still nothing. Cannot get it to add points.
 

Foreverkul

L4: Comfortable Member
Apr 12, 2008
157
14
i saw that too, but I cannot get the damn thing to work. I am not entirely sure what I am doing wrong. Just to test Ill made a map with a trig_multi, a game_score. I set the game_score to have team points and make the points 1. I set the output of the trigger to be onstarttouch -> addpoint on the game_score.

You have to use OnStartTouchAll not OnStartTouch and the input should be ApplyScore
 

newcoda12

L1: Registered
Apr 20, 2008
6
0
You have to use OnStartTouchAll not OnStartTouch and the input should be ApplyScore

Ok, I did as you instructed and still nothing - for extra testing I even added a game_text_tf to make sure the trigger is working. I see the text but no adding score.

I have added the vmf to let anyone that is willing to point out my lack of understanding. I am certain I am making a silly mistake somewhere and I am just not seeing it, another pair eyes is called for.

Incidently what is the different between OnstartTouch and onstarttouchall?

thanks for helping out
 

Foreverkul

L4: Comfortable Member
Apr 12, 2008
157
14
Do you mean that you want it to count as a FLAG CAPTURE and not a TEAM POINT? Because it works if you mean team point (thats not displayed on the HUD)
Or are you confusing 2 things? Because when you hold down TAB you can see it increased the teams point value.
 

newcoda12

L1: Registered
Apr 20, 2008
6
0
Do you mean that you want it to count as a FLAG CAPTURE and not a TEAM POINT? Because it works if you mean team point (thats not displayed on the HUD)
Or are you confusing 2 things? Because when you hold down TAB you can see it increased the teams point value.

Let me check real quick....


I am absolutely confusing the two... lol, thanks. Makes more sense, ok so my next question is: Is there a way to make the team score show up on the HUD without using TAB? Or would I have to use a sort of in map visual to show score?
 

Foreverkul

L4: Comfortable Member
Apr 12, 2008
157
14
Let me check real quick....


I am absolutely confusing the two... lol, thanks. Makes more sense, ok so my next question is: Is there a way to make the team score show up on the HUD without using TAB? Or would I have to use a sort of in map visual to show score?

Why do you need to do that? It seems rather redundant considering a player only needs to press TAB to see the score. Just use a text message to tell players a score has been made, and maybe even accompany it with a sound so people notice.
 

newcoda12

L1: Registered
Apr 20, 2008
6
0
Why do you need to do that? It seems rather redundant considering a player only needs to press TAB to see the score. Just use a text message to tell players a score has been made, and maybe even accompany it with a sound so people notice.

touche, and thanks!