Enable protobuf checks for CS:GO

This commit is contained in:
BotoX 2016-06-12 14:16:24 +02:00
parent f177f78fe7
commit 73a72d37da
2 changed files with 2 additions and 12 deletions

View File

@ -39,7 +39,6 @@ prepare_newlines:
@find $(ZRINCLUDES) -name \*.inc -exec $(DOS2UNIX) "{}" \;
prepare_builddir:
@echo "Creating build directory"
@mkdir -p $(BUILDDIR)
%.smx: %.sp

View File

@ -147,10 +147,7 @@ VEffectsShakeClientScreen(client, Float:amplitude, Float:frequency, Float:durati
return;
}
// Future code using protocol buffers (not tested). Enabling this will bump
// SourceMod version requirement to a snapshot, we don't want to do that
// until that branch is declared stable.
/*if (GetUserMessageType() == UM_Protobuf)
if (GetUserMessageType() == UM_Protobuf)
{
PbSetInt(hShake, "command", 0);
PbSetFloat(hShake, "local_amplitude", amplitude);
@ -163,13 +160,7 @@ VEffectsShakeClientScreen(client, Float:amplitude, Float:frequency, Float:durati
BfWriteFloat(hShake, amplitude);
BfWriteFloat(hShake, frequency);
BfWriteFloat(hShake, duration);
}*/
// Write shake information to message handle.
BfWriteByte(hShake, 0);
BfWriteFloat(hShake, amplitude);
BfWriteFloat(hShake, frequency);
BfWriteFloat(hShake, duration);
}
// End usermsg and send to client.
EndMessage();