Allow admins to use chat in the spectator UI

This commit is contained in:
SilentSpike 2015-08-08 13:19:07 +01:00
parent e59f0ce822
commit 5b881224c5

View File

@ -238,6 +238,9 @@ switch (toLower _mode) do {
if ((alive player) && {_dik in (actionKeys "curatorInterface")} && {!isNull (getAssignedCuratorLogic player)}) exitWith { if ((alive player) && {_dik in (actionKeys "curatorInterface")} && {!isNull (getAssignedCuratorLogic player)}) exitWith {
["zeus", [_display]] call FUNC(handleInterface); ["zeus", [_display]] call FUNC(handleInterface);
}; };
if ((isServer || {serverCommandAvailable "#kick"}) && {_dik in (actionKeys "Chat" + actionKeys "PrevChannel" + actionKeys "NextChannel")}) exitWith {
false
};
// Handle held keys (prevent repeat calling) // Handle held keys (prevent repeat calling)
if (_dik in GVAR(heldKeys)) exitwith {}; if (_dik in GVAR(heldKeys)) exitwith {};