Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 |
//============================================================================= // MK23Pickup //============================================================================= // MK23 pistol pickup class //============================================================================= // Killing Floor Source // Copyright (C) 2012 Tripwire Interactive LLC // - John "Ramm-Jaeger" Gibson and IJC //============================================================================= class MK23Pickup extends KFWeaponPickup; function inventory SpawnCopy( pawn Other ) { local Inventory I; For( I=Other.Inventory; I!=None; I=I.Inventory ) { if( MK23Pistol(I)!=None ) { if( Inventory!=None ) Inventory.Destroy(); InventoryType = class'DualMK23Pistol'; AmmoAmount[0] += MK23Pistol(I).AmmoAmount(0); MagAmmoRemaining += MK23Pistol(I).MagAmmoRemaining; I.Destroyed(); I.Destroy(); Return Super.SpawnCopy(Other); } } InventoryType = Default.InventoryType; Return Super.SpawnCopy(Other); } defaultproperties { Weight=2.000000 cost=500 AmmoCost=16 BuyClipSize=12 PowerValue=50 SpeedValue=45 RangeValue=60 Description="Match grade 45 caliber pistol. Good balance between power, ammo count and rate of fire." ItemName="MK23" ItemShortName="MK23" AmmoItemName=".45 ACP Ammo" CorrespondingPerkIndex=2 EquipmentCategoryID=1 InventoryType=Class'KFMod.MK23Pistol' PickupMessage="You got the MK.23" PickupSound=Sound'KF_MK23Snd.MK23_Pickup' PickupForce="AssaultRiflePickup" StaticMesh=StaticMesh'KF_pickups4_Trip.Pistols.MK23_Pickup' CollisionHeight=5.000000 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |