AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Scoreboard and score management (CSGO) (https://forums.alliedmods.net/showthread.php?t=311963)

Extremelyd1 11-10-2018 07:53

Scoreboard and score management (CSGO)
 
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 11-12-2018 07:48

Re: Scoreboard and score management (CSGO)
 
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 05-25-2019 07:21

Re: Scoreboard and score management (CSGO)
 
Still nobody that can help me with this?

Ilusion9 05-27-2019 08:53

Re: Scoreboard and score management (CSGO)
 
https://sm.alliedmods.net/new-api/sd...s/SetTeamScore

Extremelyd1 06-04-2019 16:38

Re: Scoreboard and score management (CSGO)
 
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).

https://i.imgur.com/f0DoSNl.jpg


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

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