//-----------------------------------------------------------
// Ticker
//
// Keeps its vehicle base ticking when it is not being 
// driven, but is not empty either.
//
// Without a ticker, vehicles stop ticking when the driver 
// switches to a turret.
//
// This ticking will unfortunately not extend RandForce.
//-----------------------------------------------------------

class XS_Chopper_Ticker extends Actor;

var(Vehicle)    XS_Chopper      ChopperBase;

event Tick(float DeltaTime)
{
    if(ChopperBase != none
    // Nobody's driving.
    && ChopperBase.Driver == none
    // There's still someone in the turrets.
    && !ChopperBase.IsVehicleEmpty())
    {
        ChopperBase.Tick(DeltaTime);
    }
}

defaultproperties
{
}
