mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-15 08:04:39 +00:00
Took out observer msg
This commit is contained in:
parent
78354a2fcf
commit
a8c10b2d8e
1 changed files with 24 additions and 0 deletions
|
|
@ -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
|
// Prevent package from being activated if it is already
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue