37 lines
448 B
Ucode
37 lines
448 B
Ucode
class a_CashTosser extends a_ActorBase;
|
|
|
|
|
|
var KFPlayerController pc;
|
|
|
|
|
|
function startTossCash(KFPlayerController inPc)
|
|
{
|
|
pc = inPc;
|
|
setTimer(0.01, true); //0.01
|
|
}
|
|
|
|
|
|
function stopTossCash()
|
|
{
|
|
setTimer(0.0, false);
|
|
}
|
|
|
|
|
|
function timer()
|
|
{
|
|
if (KFPawn(pc.pawn) != none)
|
|
KFPawn(pc.pawn).tossCash(1);
|
|
}
|
|
|
|
|
|
// self cleanup
|
|
function Termination()
|
|
{
|
|
pc = none;
|
|
super.Termination();
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
}
|