KF2-Server-Extension/ServerExt/Classes/ExtInventoryManager.uc
2017-10-19 21:00:49 -05:00

23 lines
476 B
Ucode

class ExtInventoryManager extends KFInventoryManager;
// Dosh spamming barrier.
var transient float MoneyTossTime;
var transient byte MoneyTossCount;
reliable server function ServerThrowMoney()
{
if( MoneyTossTime>WorldInfo.TimeSeconds )
{
if( MoneyTossCount>=10 )
return;
++MoneyTossCount;
MoneyTossTime = FMax(MoneyTossTime,WorldInfo.TimeSeconds+0.5);
}
else
{
MoneyTossCount = 0;
MoneyTossTime = WorldInfo.TimeSeconds+1;
}
Super.ServerThrowMoney();
}