mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-19 16:14:44 +00:00
Update
This commit is contained in:
parent
bedd3afe52
commit
818fced94e
|
|
@ -303,6 +303,8 @@ function serverCmdSendTaskToClient(%client, %targetClient, %fromCmdMap)
|
|||
{
|
||||
%obj = getTargetObject(%client.getTargetId());
|
||||
if(isObject(%obj))
|
||||
{
|
||||
if(%obj.getClassName() $= "Player" && !%client.player.ccActive)
|
||||
{
|
||||
%vec = %client.player.getMuzzleVector(0);
|
||||
%vec2 = vectorNormalize(vectorSub(%obj.getWorldBoxCenter(), %client.player.getMuzzlePoint(%slot)));
|
||||
|
|
@ -310,10 +312,17 @@ function serverCmdSendTaskToClient(%client, %targetClient, %fromCmdMap)
|
|||
if(%dot < 0.9)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
parent::serverCmdSendTaskToClient(%client, %targetClient, %fromCmdMap);
|
||||
}
|
||||
|
||||
function serverCmdScopeCommanderMap(%client, %scope)
|
||||
{
|
||||
parent::serverCmdScopeCommanderMap(%client, %scope);
|
||||
%client.player.ccActive = %scope;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// Prevent package from being activated if it is already
|
||||
|
|
|
|||
Loading…
Reference in a new issue