# SFVehicle.SFVehicleRepairKit

00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 |
    //=============================================================================
    // Spatial Fear
    // Name: SFVehicleRepairKit
    // Description: Item which repairs damaged vehicles
    //
    // Author: Gert Jen Peltenburg
    //=============================================================================
    class SFVehicleRepairKit expands SFPickup;

    state Activated
    {
     begin:
      if(numcopies>0)
       numcopies--;
      if(numcopies<1) {
       Pawn(Owner).NextItem();
       if(Pawn(Owner).SelectedItem == Self)
        Pawn(Owner).SelectedItem=None;

       Pawn(Owner).DeleteInventory(Self);
      }
      GotoState('Deactivated');
    }

    defaultproperties
    {
         ItemDescription="Vehicle Repair Kit: Mechanics equipment used to repair damaged vehicles"
         ItemName="Vehicle Repair Kit"
         PickupViewMesh=LodMesh'SFDecos.SFMbox'
         PickupViewScale=0.500000
         Mesh=LodMesh'SFDecos.SFMbox'
         DrawScale=0.500000
         MultiSkins(1)=Texture'K_General.Misc.JSFVRKBox1'
    }

class file time: 12/7/2003 3:58:26 PM - creation time: 12/7/2003 4:03:45 PM
Created with UnCodeX