class Pickup_Lock extends Pickup_Default;

#exec OBJ LOAD FILE=..\Textures\RcTextures.utx

var Pawn P;

auto state Pickup
{
	function Touch( actor Other )
	{
	     P = Pawn(Other);
       	if ( ValidTouch(Other) && Inventory == None)
		{
            Car_R(p).activePowerup = self;
            Car_R(p).bCanPickupInventory = false;
            SetRespawn();
            setLock();
         }
 }
 }

function setLock()
{
Car_R(p).NetUpdateTime=-1;
Car_R(p).bLock=true;
Car_R(p).settimer(3,false);
settimer(3,false);
}

function timer()
{
Car_R(p).activepowerup=none;
Car_R(p).bCanPickupInventory=true;
destroy();
}

defaultproperties
{
     HudIcon=Texture'RcTextures.HUD.Lock'
     MaxDesireability=0.300000
     RespawnTime=5.000000
     PickupSound=Sound'PickupSounds.AdrenelinPickup'
     PickupForce="Pickup_Lock"
     DrawType=DT_StaticMesh
     StaticMesh=StaticMesh'RcStatic.Powerups.RacePowerup'
     CullDistance=5500.000000
     Physics=PHYS_Rotating
     DrawScale=0.050000
     AmbientGlow=128
     ScaleGlow=0.600000
     Style=STY_AlphaZ
     CollisionRadius=32.000000
     CollisionHeight=23.000000
     Mass=10.000000
     RotationRate=(Yaw=24000)
     PickupMessage="Lock"
}
