mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-06 18:08:31 +00:00
add support for IServerPluginCallbacks v3 and v4
This commit is contained in:
parent
63c5c15a9f
commit
4e5ddf833b
@ -284,6 +284,29 @@ public:
|
|||||||
const char *pCvarValue)
|
const char *pCvarValue)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
virtual void OnEdictAllocated(edict_t *edict)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
virtual void OnEdictFreed(const edict_t *edict)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
virtual bool BNetworkCryptKeyCheckRequired(unsigned int unFromIP,
|
||||||
|
unsigned short usFromPort,
|
||||||
|
unsigned int unAccountIdProvidedByClient,
|
||||||
|
bool bClientWantsToUseCryptKey)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
virtual bool BNetworkCryptKeyValidate(unsigned int unFromIP,
|
||||||
|
unsigned short usFromPort,
|
||||||
|
unsigned int unAccountIdProvidedByClient,
|
||||||
|
int nEncryptionKeyIndexFromClient,
|
||||||
|
int numEncryptedBytesFromClient,
|
||||||
|
unsigned char *pbEncryptedBufferFromClient,
|
||||||
|
unsigned char *pbPlainTextKeyForNetchan)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
void PrepForLoad(unsigned int version)
|
void PrepForLoad(unsigned int version)
|
||||||
{
|
{
|
||||||
vsp_version = version;
|
vsp_version = version;
|
||||||
@ -298,8 +321,8 @@ void *mm_GetVspCallbacks(unsigned int version)
|
|||||||
if (vsp_bridge != NULL)
|
if (vsp_bridge != NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
/* Only support versions 1 or 2 right now */
|
/* Only support versions 1 to 4 right now */
|
||||||
if (version > 2)
|
if (version > 4)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
mm_vsp_callbacks.PrepForLoad(version);
|
mm_vsp_callbacks.PrepForLoad(version);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user