42 lines
542 B
Ucode
42 lines
542 B
Ucode
class a_DebugActor extends a_ActorBase;
|
|
|
|
|
|
// var KFPlayerController pc;
|
|
var HideMutInteraction hmi;
|
|
var int counter;
|
|
|
|
|
|
// function startSpam(KFPlayerController inPc)
|
|
function startSpam()
|
|
{
|
|
// pc = inPc;
|
|
setTimer(0.001, true);
|
|
}
|
|
|
|
|
|
function timer()
|
|
{
|
|
counter++;
|
|
hmi.buyAmmo();
|
|
hmi.buyKevlar();
|
|
hmi.buyHP();
|
|
|
|
if (counter > 1000)
|
|
{
|
|
setTimer(0.00, false);
|
|
Termination();
|
|
}
|
|
}
|
|
|
|
|
|
// self cleanup
|
|
function Termination()
|
|
{
|
|
hmi = none;
|
|
super.Termination();
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
}
|