Sorry, I just got to playing around with this, but there's a new command
that was introduced in the HL v2.3 SDK, that lets you know whether a
server is running in secure mode or not.  Perhaps this will help you
out..

Below, is a response from the new server query command: infostring
You'll see down at the end of the string, that you have
secure\1....Obviously this server is using VAC..

** Notice that this is the only command that returns a string, as
opposed to a byte, as a result.

����infostringresponse
\protocol\46\address\66.150.49.246:27015\players\15\proxytarget\0\lan\0\
max\20\gamedir\cstrike\description\CounterStrike\hostname\OCD's Big
Empty CS
Server\map\fy_pool_day\type\d\password\0\os\l\secure\1\mod\1\modversion\
1\svonly\0\cldll\1


Now this is the response from the only server that still advertises that
Cheating-Death is required, and actually means it:

����infostringresponse
\protocol\46\address\146.20.84.22:27015\players\0\proxytarget\0\lan\0\ma
x\20\gamedir\firearms\description\FireArms\hostname\[I*N]-TeamION
Private (CD Required) FEEL THE
STEEL!\map\obj_bocage\type\d\password\1\os\w\secure\0\mod\1\modversion\2
\svonly\0\cldll\1 

As you can see, secure is set to 0.

Hopefully this will help anyone who was wondering how to accomplish this
task.  Just as an added note, here's an excerpt from the
server_protocol.txt from the HL SDK v2.3...


"infostring" (SDK 2.3)
        (int32)                 -1
        (string)                "infostringresponse"
        (string)                string containing key/value pairs
delimited by the '\' character.


GeSpot



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:hlds_apps-admin@;list.valvesoftware.com] On Behalf Of DjoDjo
Sent: September 30, 2002 15:32
To: [EMAIL PROTECTED]
Subject: [hlds_apps] How to know if VAC is running on a server?


Hi
I would like to know how could i "detect" if a server is running with
"secure 1" (VAC running) or not. I cant find any cvar for that when i do
a "rules" or "info" request by udp socket. I know it's possible, HLSW
does it.

Thx for help!

DjoDjo


_______________________________________________
hlds_apps mailing list
[EMAIL PROTECTED]
http://list.valvesoftware.com/mailman/listinfo/hlds_apps

_______________________________________________
hlds_apps mailing list
[EMAIL PROTECTED]
http://list.valvesoftware.com/mailman/listinfo/hlds_apps

Reply via email to