mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-19 16:14:44 +00:00
Unknown asset attacker fix
This commit is contained in:
parent
7ae6d57a4e
commit
9746621ea3
|
|
@ -1556,10 +1556,15 @@ function CTFGame::awardScoreStaticShapeDestroy(%game, %cl, %obj)
|
|||
default:
|
||||
return;
|
||||
}
|
||||
teamDestroyMessage(%cl, 'MsgDestroyed', %tMsg, %cl.name, %obj.nameTag);
|
||||
messageClient(%cl, %msgType, %clMsg, %value, %dataName);
|
||||
%game.recalcScore(%cl);
|
||||
%game.shareScore(%scorer, %value);
|
||||
if(isObject(%cl))
|
||||
{
|
||||
teamDestroyMessage(%cl, 'MsgDestroyed', %tMsg, %cl.name, %obj.nameTag);
|
||||
messageClient(%cl, %msgType, %clMsg, %value, %dataName);
|
||||
%game.recalcScore(%cl);
|
||||
%game.shareScore(%scorer, %value);
|
||||
}
|
||||
else //when the asset attacker is unknown
|
||||
teamDestroyMessage(%cl, 'MsgDestroyed', %tMsg, "A teammate", %obj.nameTag);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -1741,10 +1741,15 @@ function SCtFGame::awardScoreStaticShapeDestroy(%game, %cl, %obj)
|
|||
default:
|
||||
return;
|
||||
}
|
||||
teamDestroyMessage(%cl, 'MsgDestroyed', %tMsg, %cl.name, %obj.nameTag);
|
||||
messageClient(%cl, %msgType, %clMsg, %value, %dataName);
|
||||
%game.recalcScore(%cl);
|
||||
%game.shareScore(%scorer, %value);
|
||||
if(isObject(%cl))
|
||||
{
|
||||
teamDestroyMessage(%cl, 'MsgDestroyed', %tMsg, %cl.name, %obj.nameTag);
|
||||
messageClient(%cl, %msgType, %clMsg, %value, %dataName);
|
||||
%game.recalcScore(%cl);
|
||||
%game.shareScore(%scorer, %value);
|
||||
}
|
||||
else //when the asset attacker is unknown
|
||||
teamDestroyMessage(%cl, 'MsgDestroyed', %tMsg, "A teammate", %obj.nameTag);
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
Loading…
Reference in a new issue