Compare commits
15 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
2a9deb6a64 | ||
|
351e406f85 | ||
|
d6e518838f | ||
|
9e39f18230 | ||
|
3dd1e5a318 | ||
|
23e1c0b71e | ||
|
a1436cd205 | ||
|
0d320b7922 | ||
|
b2a0d0e4da | ||
|
273f058da9 | ||
|
c6f751bb67 | ||
|
00b7ac5a39 | ||
|
c0686dc4f9 | ||
|
7ab3a3cfd9 | ||
|
5293815bf6 |
@ -379,6 +379,16 @@ class SMConfig(object):
|
|||||||
def configure_windows(self, cxx):
|
def configure_windows(self, cxx):
|
||||||
cxx.defines += ['WIN32', '_WINDOWS']
|
cxx.defines += ['WIN32', '_WINDOWS']
|
||||||
|
|
||||||
|
def add_libamtl(self):
|
||||||
|
# Add libamtl.
|
||||||
|
self.libamtl = {}
|
||||||
|
for arch in self.archs:
|
||||||
|
def get_configure_fn(arch):
|
||||||
|
return lambda builder, name: self.StaticLibrary(builder, name, arch)
|
||||||
|
extra_vars = {'Configure': get_configure_fn(arch)}
|
||||||
|
libamtl = builder.Build('public/amtl/amtl/AMBuilder', extra_vars)
|
||||||
|
self.libamtl[arch] = libamtl.binary
|
||||||
|
|
||||||
def AddVersioning(self, binary, arch):
|
def AddVersioning(self, binary, arch):
|
||||||
if builder.target.platform == 'windows':
|
if builder.target.platform == 'windows':
|
||||||
binary.sources += ['version.rc']
|
binary.sources += ['version.rc']
|
||||||
@ -613,6 +623,7 @@ SM = SMConfig()
|
|||||||
SM.detectProductVersion()
|
SM.detectProductVersion()
|
||||||
SM.detectSDKs()
|
SM.detectSDKs()
|
||||||
SM.configure()
|
SM.configure()
|
||||||
|
SM.add_libamtl()
|
||||||
|
|
||||||
if SM.use_auto_versioning():
|
if SM.use_auto_versioning():
|
||||||
SM.generated_headers = builder.Build(
|
SM.generated_headers = builder.Build(
|
||||||
|
@ -1474,7 +1474,10 @@ void PlayerManager::InvalidatePlayer(CPlayer *pPlayer)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_UserIdLookUp[engine->GetPlayerUserId(pPlayer->m_pEdict)] = 0;
|
auto userid = engine->GetPlayerUserId(pPlayer->m_pEdict);
|
||||||
|
if (userid != -1)
|
||||||
|
m_UserIdLookUp[userid] = 0;
|
||||||
|
|
||||||
pPlayer->Disconnect();
|
pPlayer->Disconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1364,7 +1364,7 @@ bool CLocalExtension::IsSameFile(const char *file)
|
|||||||
|
|
||||||
bool CRemoteExtension::IsSameFile(const char *file)
|
bool CRemoteExtension::IsSameFile(const char *file)
|
||||||
{
|
{
|
||||||
/* :TODO: this could be better, but no one uses this API anyway. */
|
/* Check full path and name passed in from LoadExternal */
|
||||||
return strcmp(file, m_Path.c_str()) == 0;
|
return strcmp(file, m_Path.c_str()) == 0 || strcmp(file, m_File.c_str()) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,6 +53,10 @@ static CBaseEntity *FindEntityByNetClass(int start, const char *classname)
|
|||||||
if (network == NULL)
|
if (network == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
IHandleEntity *pHandleEnt = network->GetEntityHandle();
|
||||||
|
if (pHandleEnt == NULL)
|
||||||
|
continue;
|
||||||
|
|
||||||
ServerClass *sClass = network->GetServerClass();
|
ServerClass *sClass = network->GetServerClass();
|
||||||
const char *name = sClass->GetName();
|
const char *name = sClass->GetName();
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ methodmap ArrayStack < Handle
|
|||||||
// @param block Optionally specify which block to read from
|
// @param block Optionally specify which block to read from
|
||||||
// (useful if the blocksize > 0).
|
// (useful if the blocksize > 0).
|
||||||
// @param asChar Optionally read as a byte instead of a cell.
|
// @param asChar Optionally read as a byte instead of a cell.
|
||||||
// @return True on success, false if the stack is empty.
|
// @return Value popped from the stack.
|
||||||
// @error The stack is empty.
|
// @error The stack is empty.
|
||||||
public native any Pop(int block=0, bool asChar=false);
|
public native any Pop(int block=0, bool asChar=false);
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ methodmap ArrayStack < Handle
|
|||||||
//
|
//
|
||||||
// @param buffer Buffer to store string.
|
// @param buffer Buffer to store string.
|
||||||
// @param maxlength Maximum size of the buffer.
|
// @param maxlength Maximum size of the buffer.
|
||||||
// @oaram written Number of characters written to buffer, not including
|
// @param written Number of characters written to buffer, not including
|
||||||
// the null terminator.
|
// the null terminator.
|
||||||
// @error The stack is empty.
|
// @error The stack is empty.
|
||||||
public native void PopString(char[] buffer, int maxlength, int &written = 0);
|
public native void PopString(char[] buffer, int maxlength, int &written = 0);
|
||||||
|
@ -45,6 +45,8 @@
|
|||||||
#define CS_SLOT_KNIFE 2 /**< Knife slot. */
|
#define CS_SLOT_KNIFE 2 /**< Knife slot. */
|
||||||
#define CS_SLOT_GRENADE 3 /**< Grenade slot (will only return one grenade). */
|
#define CS_SLOT_GRENADE 3 /**< Grenade slot (will only return one grenade). */
|
||||||
#define CS_SLOT_C4 4 /**< C4 slot. */
|
#define CS_SLOT_C4 4 /**< C4 slot. */
|
||||||
|
#define CS_SLOT_BOOST 11 /**< Slot for healthshot and shield (will only return one weapon/item). */
|
||||||
|
#define CS_SLOT_UTILITY 12 /**< Slot for tablet. */
|
||||||
|
|
||||||
#define CS_DMG_HEADSHOT (1 << 30) /**< Headshot */
|
#define CS_DMG_HEADSHOT (1 << 30) /**< Headshot */
|
||||||
|
|
||||||
@ -156,6 +158,7 @@ enum CSWeaponID
|
|||||||
CSWeapon_BUMPMINE = 85,
|
CSWeapon_BUMPMINE = 85,
|
||||||
CSWeapon_MAX_WEAPONS_NO_KNIFES, // Max without the knife item defs, useful when treating all knives as a regular knife.
|
CSWeapon_MAX_WEAPONS_NO_KNIFES, // Max without the knife item defs, useful when treating all knives as a regular knife.
|
||||||
CSWeapon_BAYONET = 500,
|
CSWeapon_BAYONET = 500,
|
||||||
|
CSWeapon_KNIFE_CLASSIC = 503,
|
||||||
CSWeapon_KNIFE_FLIP = 505,
|
CSWeapon_KNIFE_FLIP = 505,
|
||||||
CSWeapon_KNIFE_GUT = 506,
|
CSWeapon_KNIFE_GUT = 506,
|
||||||
CSWeapon_KNIFE_KARAMBIT = 507,
|
CSWeapon_KNIFE_KARAMBIT = 507,
|
||||||
|
@ -547,7 +547,7 @@ native bool SQL_CheckConfig(const char[] name);
|
|||||||
* string to return the default driver.
|
* string to return the default driver.
|
||||||
* @return Driver Handle, or INVALID_HANDLE on failure.
|
* @return Driver Handle, or INVALID_HANDLE on failure.
|
||||||
*/
|
*/
|
||||||
native Handle SQL_GetDriver(const char[] name="");
|
native DBDriver SQL_GetDriver(const char[] name="");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reads the driver of an opened database.
|
* Reads the driver of an opened database.
|
||||||
@ -557,7 +557,7 @@ native Handle SQL_GetDriver(const char[] name="");
|
|||||||
* @param ident_length Maximum length of the buffer.
|
* @param ident_length Maximum length of the buffer.
|
||||||
* @return Driver Handle.
|
* @return Driver Handle.
|
||||||
*/
|
*/
|
||||||
native Handle SQL_ReadDriver(Handle database, char[] ident="", int ident_length=0);
|
native DBDriver SQL_ReadDriver(Handle database, char[] ident="", int ident_length=0);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves a driver's identification string.
|
* Retrieves a driver's identification string.
|
||||||
|
@ -314,7 +314,7 @@ native bool ReadDirEntry(Handle dir, char[] buffer, int maxlength, FileType &typ
|
|||||||
* Mac, this has no distinction from binary mode. On Windows, it causes the '\n'
|
* Mac, this has no distinction from binary mode. On Windows, it causes the '\n'
|
||||||
* character (0xA) to be written as "\r\n" (0xD, 0xA).
|
* character (0xA) to be written as "\r\n" (0xD, 0xA).
|
||||||
*
|
*
|
||||||
* Example: "rb" opens a binary file for writing; "at" opens a text file for
|
* Example: "rb" opens a binary file for reading; "at" opens a text file for
|
||||||
* appending.
|
* appending.
|
||||||
*
|
*
|
||||||
* @param file File to open.
|
* @param file File to open.
|
||||||
|
@ -682,7 +682,7 @@ enum ClientRangeType
|
|||||||
* @param size Maximum size of clients array.
|
* @param size Maximum size of clients array.
|
||||||
* @return Number of client indexes written to clients array.
|
* @return Number of client indexes written to clients array.
|
||||||
*/
|
*/
|
||||||
native int GetClientsInRange(float origin[3], ClientRangeType rangeType, int[] clients, int size);
|
native int GetClientsInRange(const float origin[3], ClientRangeType rangeType, int[] clients, int size);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the server's authentication string (SteamID).
|
* Retrieves the server's authentication string (SteamID).
|
||||||
|
@ -224,7 +224,7 @@ stock void TE_SendToClient(int client, float delay=0.0)
|
|||||||
* @param rangeType Range type to use for filtering clients.
|
* @param rangeType Range type to use for filtering clients.
|
||||||
* @param delay Delay in seconds to send the TE.
|
* @param delay Delay in seconds to send the TE.
|
||||||
*/
|
*/
|
||||||
stock void TE_SendToAllInRange(float origin[3], ClientRangeType rangeType, float delay=0.0)
|
stock void TE_SendToAllInRange(const float origin[3], ClientRangeType rangeType, float delay=0.0)
|
||||||
{
|
{
|
||||||
int[] clients = new int[MaxClients];
|
int[] clients = new int[MaxClients];
|
||||||
int total = GetClientsInRange(origin, rangeType, clients, MaxClients);
|
int total = GetClientsInRange(origin, rangeType, clients, MaxClients);
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit e00a845c6bc415995ddc4b7ec538d1704fdd0122
|
Subproject commit eb7b6ba084e13c50f7c2c53b285e6e6af44accd9
|
@ -1 +1 @@
|
|||||||
Subproject commit 7ba3e384e29ccdb5dbd3ac4a0fda16fd0a0144a8
|
Subproject commit 7e69f7eaf58a05e89912487af646b7121e19d1a4
|
12
tools/checkout-deps.ps1
vendored
12
tools/checkout-deps.ps1
vendored
@ -18,7 +18,17 @@ param(
|
|||||||
'tf2',
|
'tf2',
|
||||||
'insurgency',
|
'insurgency',
|
||||||
'sdk2013',
|
'sdk2013',
|
||||||
'dota'
|
'dota',
|
||||||
|
'orangebox',
|
||||||
|
'blade',
|
||||||
|
'episode1',
|
||||||
|
'bms',
|
||||||
|
'darkm',
|
||||||
|
'swarm',
|
||||||
|
'bgt',
|
||||||
|
'eye',
|
||||||
|
'contagion',
|
||||||
|
'doi'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user