Game score Question

Discussion in 'Mapping Questions & Discussion' started by newcoda12, Apr 20, 2008.

  1. newcoda12

    newcoda12 L1: Registered

    Messages:
    6
    Positive Ratings:
    0
    Is there a way to add or remove a teams score through entity/logic/coding besides physically capturing a flag or point?
     
  2. Foreverkul

    Foreverkul L4: Comfortable Member

    Messages:
    157
    Positive Ratings:
    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.
     
  3. newcoda12

    newcoda12 L1: Registered

    Messages:
    6
    Positive Ratings:
    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
     
  4. hydrage

    hydrage L1: Registered

    Messages:
    49
    Positive Ratings:
    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. :)
     
  5. Jive Turkey

    Jive Turkey L3: Member

    Messages:
    120
    Positive Ratings:
    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.
     
  6. newcoda12

    newcoda12 L1: Registered

    Messages:
    6
    Positive Ratings:
    0
    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.
     
  7. Foreverkul

    Foreverkul L4: Comfortable Member

    Messages:
    157
    Positive Ratings:
    14
    You have to use OnStartTouchAll not OnStartTouch and the input should be ApplyScore
     
  8. newcoda12

    newcoda12 L1: Registered

    Messages:
    6
    Positive Ratings:
    0
    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
     
  9. Foreverkul

    Foreverkul L4: Comfortable Member

    Messages:
    157
    Positive Ratings:
    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.
     
    • Thanks Thanks x 1
  10. newcoda12

    newcoda12 L1: Registered

    Messages:
    6
    Positive Ratings:
    0
    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?
     
  11. Foreverkul

    Foreverkul L4: Comfortable Member

    Messages:
    157
    Positive Ratings:
    14
    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.
     
    • Thanks Thanks x 1
  12. newcoda12

    newcoda12 L1: Registered

    Messages:
    6
    Positive Ratings:
    0
    touche, and thanks!