Raised This Month: $32 Target: $400
 8% 

Scoreboard and score management (CSGO)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Extremelyd1
Junior Member
Join Date: Nov 2017
Old 11-10-2018 , 07:53   Scoreboard and score management (CSGO)
Reply With Quote #1

I'm working on a custom csgo gamemode in which I need to terminate the round in certain cases. This works fine with CS_TerminateRound(), however, the score is not being updated, so in order to do that I need to call CS_SetTeamScore() to manually handle the scores. This messes up the scoreboard though, since it also occurs that the round finishes normally (by eliminating an entire team for example).

Is there a way to manage the scoreboard and the team scores and keeping everything clean looking in the 'tab' display (the bar that tells you what happened which round and who won)?

Any help is greatly appreciated, and if anything is not clear or you need more information, please ask!
Extremelyd1 is offline
Extremelyd1
Junior Member
Join Date: Nov 2017
Old 11-12-2018 , 07:48   Re: Scoreboard and score management (CSGO)
Reply With Quote #2

I have aquired more information, but am still unsure on how to use it:
Apparently there is a 'gamerules' entity in csgo that has a few properties pertaining to the status of the match.
One of these properties is called 'm_iMatchStats_RoundResults', with a type of 'DataTable'. I assumed that this variable has something to do with the results of round and therefore with the display of the information on the 'tab' display or scoreboard.
The problem now, is that I do not know how to handle this information and how to mutate it. I can't find anything online regarding a 'DataTable' and how to work with it.
Extremelyd1 is offline
Extremelyd1
Junior Member
Join Date: Nov 2017
Old 05-25-2019 , 07:21   Re: Scoreboard and score management (CSGO)
Reply With Quote #3

Still nobody that can help me with this?
Extremelyd1 is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 05-27-2019 , 08:53   Re: Scoreboard and score management (CSGO)
Reply With Quote #4

https://sm.alliedmods.net/new-api/sd...s/SetTeamScore
__________________
Ilusion9 is offline
Extremelyd1
Junior Member
Join Date: Nov 2017
Old 06-04-2019 , 16:38   Re: Scoreboard and score management (CSGO)
Reply With Quote #5

The SetTeamScore function only updates the display value of the team scores (the 9 and 4 in the picture). However, I would like to manipulate the scores between those on the scoreboard (the 12 and 3x 0 values in the picture).

Extremelyd1 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode