AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [CSGO] Danger Zone Server Problem (https://forums.alliedmods.net/showthread.php?t=326932)

CDboy 08-24-2020 02:46

[CSGO] Danger Zone Server Problem
 
Hello, I am writing a server plugin for danger zone mode, and I have completed a lot. However, I still have two questions:

1. How to get a player's and a team's score correctly in dz mode? There seems to be 3 ways or more: player_score event; CS_GetClientContributionScore; CS_GetTeamScore.

I have tested the player_score event but it seems to never happen in dz mode. And I don't know if the latter functions will return the correct score. Does anyone know about the danger zone score system?

2. How to record a GOTV demo with 128 updaterate and 128 cmdrate? I have set the server's sv_minupdaterate and sv_mincmdrate to 128, but the demo still has 32 up and cmd.

digin 08-24-2020 03:14

Re: [CSGO] Danger Zone Server Problem
 
for GOTV Demo 128 tick

PHP Code:

tv_snapshotrate "128"
tv_maxrate "128000" 


CDboy 08-24-2020 08:11

Re: [CSGO] Danger Zone Server Problem
 
Quote:

Originally Posted by digin (Post 2715341)
for GOTV Demo 128 tick

PHP Code:

tv_snapshotrate "128"
tv_maxrate "128000" 


That works, thank you! Anybody can help me with Question 1?

CDboy 08-25-2020 00:46

Re: [CSGO] Danger Zone Server Problem
 
Well, I guess csgo server itself does not calculate player's or team's score at all, is that right? Is the plugin that is calculating the score?

DexonRL 08-26-2020 02:39

Re: [CSGO] Danger Zone Server Problem
 
CS_GetClientContributionScore is used to get player's total score. client killed 2 players, ContributionScore = 4.

and CS_GetTeamScore is used to get the team score, for example 5-1 to terrorists.


All times are GMT -4. The time now is 13:32.

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