Enable protobuf checks for CS:GO
This commit is contained in:
parent
f177f78fe7
commit
73a72d37da
1
Makefile
1
Makefile
|
@ -39,7 +39,6 @@ prepare_newlines:
|
||||||
@find $(ZRINCLUDES) -name \*.inc -exec $(DOS2UNIX) "{}" \;
|
@find $(ZRINCLUDES) -name \*.inc -exec $(DOS2UNIX) "{}" \;
|
||||||
|
|
||||||
prepare_builddir:
|
prepare_builddir:
|
||||||
@echo "Creating build directory"
|
|
||||||
@mkdir -p $(BUILDDIR)
|
@mkdir -p $(BUILDDIR)
|
||||||
|
|
||||||
%.smx: %.sp
|
%.smx: %.sp
|
||||||
|
|
|
@ -147,10 +147,7 @@ VEffectsShakeClientScreen(client, Float:amplitude, Float:frequency, Float:durati
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Future code using protocol buffers (not tested). Enabling this will bump
|
if (GetUserMessageType() == UM_Protobuf)
|
||||||
// SourceMod version requirement to a snapshot, we don't want to do that
|
|
||||||
// until that branch is declared stable.
|
|
||||||
/*if (GetUserMessageType() == UM_Protobuf)
|
|
||||||
{
|
{
|
||||||
PbSetInt(hShake, "command", 0);
|
PbSetInt(hShake, "command", 0);
|
||||||
PbSetFloat(hShake, "local_amplitude", amplitude);
|
PbSetFloat(hShake, "local_amplitude", amplitude);
|
||||||
|
@ -163,13 +160,7 @@ VEffectsShakeClientScreen(client, Float:amplitude, Float:frequency, Float:durati
|
||||||
BfWriteFloat(hShake, amplitude);
|
BfWriteFloat(hShake, amplitude);
|
||||||
BfWriteFloat(hShake, frequency);
|
BfWriteFloat(hShake, frequency);
|
||||||
BfWriteFloat(hShake, duration);
|
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.
|
// End usermsg and send to client.
|
||||||
EndMessage();
|
EndMessage();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user