Skip to content

Commit

Permalink
First
Browse files Browse the repository at this point in the history
  • Loading branch information
naydef committed Dec 1, 2017
1 parent 63bfe2e commit 665221c
Show file tree
Hide file tree
Showing 26 changed files with 8,190 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sourcemod/gamedata/udp-cap.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"Games"
{
/* Team Fortress 2 */
"tf"
{
"Signatures"
{
"CBaseServer::ProcessConnectionlessPacket"
{
"library" "engine"
"windows" "\x55\x8B\xEC\x81\xEC\x50\x0A"
"linux" "_ZN11CBaseServer27ProcessConnectionlessPacketEP11netpacket_s"
}
}
}
}
32 changes: 32 additions & 0 deletions sourcemod/scripting/include/udpcap.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#if defined _udpcap_included
#endinput
#endif
#define _udpcap_included

enum netadrtype_t
{
NA_NULL = 0,
NA_LOOPBACK,
NA_BROADCAST,
NA_IP,
};

forward Action UDPC_ProcessIncomingPacket(const char[] ip, int port, const char[] data, int length, netadrtype_t netaddrtype);



public Extension __ext_udpcap =
{
name = "UDPCap",
file = "UDPCap.ext",
#if defined AUTOLOAD_EXTENSIONS
autoload = 1,
#else
autoload = 0,
#endif
#if defined REQUIRE_EXTENSIONS
required = 1,
#else
required = 0,
#endif
};
Loading

0 comments on commit 665221c

Please sign in to comment.