mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +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:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(isObject(%cl))
|
||||||
|
{
|
||||||
teamDestroyMessage(%cl, 'MsgDestroyed', %tMsg, %cl.name, %obj.nameTag);
|
teamDestroyMessage(%cl, 'MsgDestroyed', %tMsg, %cl.name, %obj.nameTag);
|
||||||
messageClient(%cl, %msgType, %clMsg, %value, %dataName);
|
messageClient(%cl, %msgType, %clMsg, %value, %dataName);
|
||||||
%game.recalcScore(%cl);
|
%game.recalcScore(%cl);
|
||||||
%game.shareScore(%scorer, %value);
|
%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:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(isObject(%cl))
|
||||||
|
{
|
||||||
teamDestroyMessage(%cl, 'MsgDestroyed', %tMsg, %cl.name, %obj.nameTag);
|
teamDestroyMessage(%cl, 'MsgDestroyed', %tMsg, %cl.name, %obj.nameTag);
|
||||||
messageClient(%cl, %msgType, %clMsg, %value, %dataName);
|
messageClient(%cl, %msgType, %clMsg, %value, %dataName);
|
||||||
%game.recalcScore(%cl);
|
%game.recalcScore(%cl);
|
||||||
%game.shareScore(%scorer, %value);
|
%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