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) "{}" \;
|
||||
|
||||
prepare_builddir:
|
||||
@echo "Creating build directory"
|
||||
@mkdir -p $(BUILDDIR)
|
||||
|
||||
%.smx: %.sp
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user