/*** * * Copyright (c) 2016-2019 Marco 'eukara' Hladik. All rights reserved. * * See the file LICENSE attached with the sources for usage details. * ****/ void Client_TriggerCamera(entity target, vector pos, vector end, float wait) { WriteByte(MSG_MULTICAST, SVC_CGAMEPACKET); WriteByte(MSG_MULTICAST, EV_CAMERATRIGGER); WriteCoord(MSG_MULTICAST, pos[0]); WriteCoord(MSG_MULTICAST, pos[1]); WriteCoord(MSG_MULTICAST, pos[2]); WriteCoord(MSG_MULTICAST, end[0]); WriteCoord(MSG_MULTICAST, end[1]); WriteCoord(MSG_MULTICAST, end[2]); WriteFloat(MSG_MULTICAST, wait); msg_entity = target; multicast([0,0,0], MULTICAST_ONE); }