Yes.

Except in HL1, there was a function that got called when a client had
mismatching files, it would pass the file that is mismatched, and you could
return either 1 or 0 to make it kick the client, or not.

Even allowed you to set a nice fancy message.

InconsistentFile
from dlls/client.cpp:

int InconsistentFile(const edict_t *player, const char *filename, char
*disconnect_message);
One of the ENGINE_FORCE_UNMODIFIED files failed the consistency check for
the specified player Return 0 to allow the client to continue, 1 to force
immediate disconnection (with an optional disconnect message of up to 256
characters).
comments:


Added in SDK 2.0.

-----Original Message-----
From: LDuke [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 01, 2007 5:16 PM
To: hlcoders@list.valvesoftware.com
Subject: Re: [hlcoders] InconsistentFile Function in Source

--
[ Picked text/plain from multipart/alternative ]
I think this is what ForceExactFile() does?


On 3/30/07, Spencer 'voogru' MacDonald <[EMAIL PROTECTED]> wrote:
>
> There is a little pet peeve I have with source.
>
> There seems to be no InconsistentFile function, like in HL1 where a
> GameDLL
> could decide to kick a player or not if a file was modified.
>
> It would be nice to have this put in Source, preferably with the same
> functionality as before and possibly have a CRC/MD5 hash of the clients
> file.
>
> Just a thought.
>
> - voogru.
>
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to