From 47da640d7763ee1e00badb7476ac5afc4f864367 Mon Sep 17 00:00:00 2001 From: Anand S Date: Sun, 15 Jul 2018 05:56:30 +0530 Subject: Add support for per-player FOV overrides and multipliers --- src/network/networkprotocol.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/network/networkprotocol.h') diff --git a/src/network/networkprotocol.h b/src/network/networkprotocol.h index 52cdf489c..5a13c1353 100644 --- a/src/network/networkprotocol.h +++ b/src/network/networkprotocol.h @@ -199,6 +199,7 @@ with this program; if not, write to the Free Software Foundation, Inc., Incremental inventory sending mode Unknown inventory serialization fields no longer throw an error Mod-specific formspec version + Player FOV override API */ #define LATEST_PROTOCOL_VERSION 38 @@ -370,7 +371,13 @@ enum ToClientCommand wstring reason */ - TOCLIENT_PLAYERITEM = 0x36, // Obsolete + TOCLIENT_FOV = 0x36, + /* + Sends an FOV override/multiplier to client. + + float fov + bool is_multiplier + */ TOCLIENT_DEATHSCREEN = 0x37, /* -- cgit v1.2.3