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 |
//============================================================================= // FlareRevolverPickup //============================================================================= // Killing Floor Source // Copyright (C) 2012 Tripwire Interactive LLC // - IJC Weapon Development //============================================================================= class FlareRevolverPickup extends KFWeaponPickup; function inventory SpawnCopy( pawn Other ) { local Inventory I; for ( I = Other.Inventory; I != none; I = I.Inventory ) { if ( FlareRevolver(I) != none ) { if( Inventory != none ) Inventory.Destroy(); InventoryType = Class'DualFlareRevolver'; AmmoAmount[0] += FlareRevolver(I).AmmoAmount(0); MagAmmoRemaining += FlareRevolver(I).MagAmmoRemaining; I.Destroyed(); I.Destroy(); Return Super.SpawnCopy(Other); } } InventoryType = Default.InventoryType; Return Super.SpawnCopy(Other); } defaultproperties { Weight=2.000000 cost=500 AmmoCost=13 BuyClipSize=6 PowerValue=60 SpeedValue=40 RangeValue=65 Description="Flare Revolver. A classic wild west revolver modified to shoot fireballs!" ItemName="Flare Revolver" ItemShortName="Flare Revolver" AmmoItemName="Liquid Gas Cartridges" CorrespondingPerkIndex=5 EquipmentCategoryID=1 InventoryType=Class'KFMod.FlareRevolver' PickupMessage="You got the Flare Revolver" PickupSound=Sound'KF_RevolverSnd.foley.WEP_Revolver_Foley_Pickup' PickupForce="AssaultRiflePickup" StaticMesh=StaticMesh'KF_IJC_Halloween_Weps.flaregun_pickup' CollisionHeight=5.000000 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |