Add OnSpectatorChatMessage forwards to catch chat

Messages and chatgroups can be changed or blocked.
This commit is contained in:
Peace-Maker
2016-11-14 01:16:39 -06:00
parent 2c88455744
commit e5db34a3e3
12 changed files with 355 additions and 29 deletions
+4 -7
View File
@@ -6,11 +6,14 @@ projectName = 'sourcetvmanager'
# smsdk_ext.cpp will be automatically added later
sourceFiles = [
'extension.cpp',
'commonhooks.cpp',
'natives.cpp',
'forwards.cpp',
'hltvserverwrapper.cpp',
'hltvdirectorwrapper.cpp',
'hltvclientwrapper.cpp'
'hltvclientwrapper.cpp',
os.path.join(Extension.sm_root, 'public', 'CDetour', 'detours.cpp'),
os.path.join(Extension.sm_root, 'public', 'asm', 'asm.c')
]
###############
@@ -36,12 +39,6 @@ for sdk_name in ['css', 'tf2', 'dods', 'hl2dm', 'csgo']:
binary = Extension.HL2Config(project, projectName + '.ext.' + sdk.ext, sdk)
compiler = binary.compiler
if builder.target_platform == 'linux':
binary.sources += [
os.path.join(Extension.sm_root, 'public', 'CDetour', 'detours.cpp'),
os.path.join(Extension.sm_root, 'public', 'asm', 'asm.c')
]
if sdk.name == 'csgo':
compiler.cxxincludes += [
os.path.join(sdk.path, 'common', 'protobuf-2.5.0', 'src'),