GoldenEye: Source Forums

Debriefing => Questions, Help, & How To's => Topic started by: papel on August 06, 2017, 01:16:28 pm

Title: Match winner
Post by: papel on August 06, 2017, 01:16:28 pm
Hello friends!

What name of the event that displays the winner of the match?
The idea is to give points to the winners (first, second and third) placed.

Entropy-Soldier, thank you friend!
Title: Re: Match winner
Post by: Entropy-Soldier on August 06, 2017, 08:11:31 pm
It's called "round_ranks" and uses the format:

idx = userid of player in position x
scx = score of player in position x


Only supports 16 players since I didn't realize servers could have more when I made it, but should suit your needs just fine.

Code: [Select]
// Tell plugins the userIDs of who finished in what place on the round report.
"round_ranks"
{
"isfinal" "bool" // If true, this was the match report and thus the culmination of all the rounds played this map.
"id1" "short" // Player ID of whoever finished in first place
"sc1" "short" // Score of whoever finished in first place
"id2" "short"
"sc2" "short"
"id3" "short"
"sc3" "short"
"id4" "short"
"sc4" "short"
"id5" "short"
"sc5" "short"
"id6" "short"
"sc6" "short"
"id7" "short"
"sc7" "short"
"id8" "short"
"sc8" "short"
"id9" "short"
"sc9" "short"
"id10" "short"
"sc10" "short"
"id11" "short"
"sc11" "short"
"id12" "short"
"sc12" "short"
"id13" "short"
"sc13" "short"
"id14" "short"
"sc14" "short"
"id15" "short"
"sc15" "short"
"id16" "short"
"sc16" "short"
}


All of our custom events are located in "gesource/resource/modevents.res", so if you're wondering if we have a specific event to hook that's not included in the core source engine, that's the place to look.  Good luck with whatever you're making, it sounds interesting!
Title: Re: Match winner
Post by: papel on August 07, 2017, 03:43:45 am
Amazing. I will try to apply and come back with feddback. As always, thank you, my friend.
Title: Re: Match winner
Post by: papel on August 14, 2017, 04:23:04 pm
Entropy-Soldier,

All perfectly correct.

It worked as expected. The best players in the match will appreciate your support.

Thank you so much, my friend!
Title: Re: Match winner
Post by: Entropy-Soldier on August 14, 2017, 05:18:57 pm
Awesome!  I'm glad everything worked well!