mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Took out observer msg
This commit is contained in:
parent
78354a2fcf
commit
a8c10b2d8e
|
|
@ -82,6 +82,30 @@ function VehicleData::onDestroyed(%data, %obj, %prevState)
|
|||
// -----------------------------------------------------------------------------------------
|
||||
}
|
||||
|
||||
//Protect the privacy of an observing observer
|
||||
//No observing messages
|
||||
function DefaultGame::processGameLink(%game, %client, %arg1, %arg2, %arg3, %arg4, %arg5)
|
||||
{
|
||||
//the default behavior when clicking on a game link is to start observing that client
|
||||
%targetClient = %arg1;
|
||||
if ((%client.team == 0) && isObject(%targetClient) && (%targetClient.team != 0))
|
||||
{
|
||||
%prevObsClient = %client.observeClient;
|
||||
|
||||
// update the observer list for this client
|
||||
observerFollowUpdate( %client, %targetClient, %prevObsClient !$= "" );
|
||||
|
||||
serverCmdObserveClient(%client, %targetClient);
|
||||
displayObserverHud(%client, %targetClient);
|
||||
|
||||
if (%targetClient != %prevObsClient)
|
||||
{
|
||||
//messageClient(%targetClient, 'Observer', '\c1%1 is now observing you.', %client.name);
|
||||
//messageClient(%prevObsClient, 'ObserverEnd', '\c1%1 is no longer observing you.', %client.name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// Prevent package from being activated if it is already
|
||||
|
|
|
|||
Loading…
Reference in a new issue