Raised This Month: $51 Target: $400
 12% 

CSGO detecting team sides and team switches


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
goodBEan
Senior Member
Join Date: Jul 2010
Location: St. Louis Mo USA
Old 02-25-2019 , 12:30   CSGO detecting team sides and team switches
Reply With Quote #1

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.

Last edited by goodBEan; 02-25-2019 at 16:56.
goodBEan is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 02-25-2019 , 15:18   Re: CSGO detecting team sides and team switches
Reply With Quote #2

Event: "switch_team" - ["numplayers","numspectators","avg_rank","numt slotsfree","numctslotsfree"]
__________________
Ilusion9 is offline
DukeBruno123
Member
Join Date: Jan 2016
Location: Germany
Old 02-26-2019 , 03:07   Re: CSGO detecting team sides and team switches
Reply With Quote #3

HLTV does it somehow, so I assume its somewhere in the logs.

Try some of the convars you get when entering "find mp log"
DukeBruno123 is offline
goodBEan
Senior Member
Join Date: Jul 2010
Location: St. Louis Mo USA
Old 02-26-2019 , 22:24   Re: CSGO detecting team sides and team switches
Reply With Quote #4

Quote:
Originally Posted by DukeBruno123 View Post
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
goodBEan is offline
DukeBruno123
Member
Join Date: Jan 2016
Location: Germany
Old 02-26-2019 , 22:51   Re: CSGO detecting team sides and team switches
Reply With Quote #5

Quote:
Originally Posted by goodBEan View Post
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.
DukeBruno123 is offline
Reply



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 17:48.


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