AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   CSGO detecting team sides and team switches (https://forums.alliedmods.net/showthread.php?t=314568)

goodBEan 02-25-2019 12:30

CSGO detecting team sides and team switches
 
Currently working on a system to manage csgo servers and need to know how to tell when teams are switched without using source/metamod. How do I tell in console that the team that initially joined as ct switches because of half time. The be blunt how do I tell mp_teamname1 is ct or t even after halftime and a few overtimes.

Also from the console how to I tell which player is on which team without the player doing anything?

As of right now the console doesn't mention when teams has switched.

update: we are trying to do this without sourcemod and metamod if possible.

Ilusion9 02-25-2019 15:18

Re: CSGO detecting team sides and team switches
 
Event: "switch_team" - ["numplayers","numspectators","avg_rank","numt slotsfree","numctslotsfree"]

DukeBruno123 02-26-2019 03:07

Re: CSGO detecting team sides and team switches
 
HLTV does it somehow, so I assume its somewhere in the logs.

Try some of the convars you get when entering "find mp log"

goodBEan 02-26-2019 22:24

Re: CSGO detecting team sides and team switches
 
Quote:

Originally Posted by DukeBruno123 (Post 2641009)
HLTV does it somehow, so I assume its somewhere in the logs.

Try some of the convars you get when entering "find mp log"

you mean these
mp_logdetail 0 "sv" Logs attacks. Values are: 0=off, 1=enemy, 2=teammate, 3=both)
mp_logdetail_items 0 "sv" Logs a line any time a player acquires or loses an item.
mp_logmoney 0 "sv" Enables money logging. Values are: 0=off, 1=on

I already have the mp log cvars set to log pretty much everything, still see nothing

DukeBruno123 02-26-2019 22:51

Re: CSGO detecting team sides and team switches
 
Quote:

Originally Posted by goodBEan (Post 2641131)
you mean these
mp_logdetail 0 "sv" Logs attacks. Values are: 0=off, 1=enemy, 2=teammate, 3=both)
mp_logdetail_items 0 "sv" Logs a line any time a player acquires or loses an item.
mp_logmoney 0 "sv" Enables money logging. Values are: 0=off, 1=on

I already have the mp log cvars set to log pretty much everything, still see nothing

Yeah exactly those. I tested a short bit yesterday and as far as I know there isn't really a way to tell if teams are switched besides getting the score of each team and manually calculating. Though then you would also have to figure out the values of mp_maxrounds and mp_overtime_maxrounds (Which are reported in the log when you change them). If your script is listening to the logs from the very beginning of when the server loads this might be a solution to your problem.


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

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