diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-12-16 05:14:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-12-16 06:20:36 +0300 |
commit | 912bbffb23c385178b3d831b58deb76103bac322 (patch) | |
tree | 4fc0aa6d4c2da5629d9ee2258f5fe6887e997866 /src/map/packets_struct.h | |
parent | a0f8fc8cd4a4bd6e245848835db2775596b9362f (diff) | |
download | hercules-912bbffb23c385178b3d831b58deb76103bac322.tar.gz hercules-912bbffb23c385178b3d831b58deb76103bac322.tar.bz2 hercules-912bbffb23c385178b3d831b58deb76103bac322.tar.xz hercules-912bbffb23c385178b3d831b58deb76103bac322.zip |
Add packet CZ_CAMERA_INFO
This will allow use client command:
/viewpointvalue - show/hide camera information
/setcamera range rotation latitude - same with @camerainfo
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 8fbe64e5f..95bf65b6d 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -2907,6 +2907,17 @@ struct PACKET_ZC_CAMERA_INFO { DEFINE_PACKET_HEADER(ZC_CAMERA_INFO, 0x0a78); #endif +#if PACKETVER >= 20160525 +struct PACKET_CZ_CAMERA_INFO { + int16 packetType; + int8 action; + float range; + float rotation; + float latitude; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(CZ_CAMERA_INFO, 0x0a77); +#endif + #if PACKETVER_MAIN_NUM >= 20181128 || PACKETVER_RE_NUM >= 20181031 // PACKET_ZC_AUTOSPELLLIST2 struct PACKET_ZC_AUTOSPELLLIST { |