24 lines
587 B
C++
24 lines
587 B
C++
#include <string.h>
|
|
#include "mod_halflife.h"
|
|
|
|
static struct game_ports port_arr[] = {
|
|
{ 27015, 27024, ID_HL },
|
|
{ 0,0,0 }
|
|
};
|
|
|
|
static const char scanmsg1[] = "\xff\xff\xff\xff""details";
|
|
static const char scanmsg2[] = "\xff\xff\xff\xff\x54";
|
|
static const char scanmsg3[] = "\xff\xff\xff\xff""TSource Engine Query";
|
|
|
|
void ModHalfLife::scan(MultiSock* msock)
|
|
{
|
|
msock->send(port_arr, scanmsg1, strlen(scanmsg1));
|
|
msock->send(port_arr, scanmsg2, strlen(scanmsg2));
|
|
msock->send(port_arr, scanmsg3, strlen(scanmsg3));
|
|
}
|
|
|
|
int ModHalfLife::parse(NetPkt* pkt, GameList* slist)
|
|
{
|
|
return 0;
|
|
}
|