This patch reverts first step of global weapon conversion that would have halted the release of the next version for too long.
39 lines
1.1 KiB
Ucode
39 lines
1.1 KiB
Ucode
class NiceDualiesPickup extends NiceWeaponPickup;
|
|
var int MagAmmoRemLeft;
|
|
var int MagAmmoRemRight;
|
|
function ShowDualiesInfo(Canvas C){
|
|
C.SetPos((C.SizeX - C.SizeY) / 2,0);
|
|
C.DrawTile( Texture'KillingfloorHUD.ClassMenu.Dualies', C.SizeY, C.SizeY, 0.0, 0.0, 256, 256);
|
|
}
|
|
function InitDroppedPickupFor(Inventory Inv){
|
|
local NiceDualies dualW;
|
|
super.InitDroppedPickupFor(Inv);
|
|
dualW = NiceDualies(Inv);
|
|
if(dualW != none){
|
|
MagAmmoRemLeft = dualW.MagAmmoRemLeft;
|
|
MagAmmoRemRight = dualW.MagAmmoRemRight;
|
|
}
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
Weight=1.000000
|
|
cost=150
|
|
BuyClipSize=30
|
|
PowerValue=35
|
|
SpeedValue=85
|
|
RangeValue=35
|
|
Description="A pair of custom 9mm handguns."
|
|
ItemName="Dual 9mms"
|
|
ItemShortName="Dual 9mms"
|
|
AmmoItemName="9mm Rounds"
|
|
AmmoMesh=StaticMesh'KillingFloorStatics.DualiesAmmo'
|
|
CorrespondingPerkIndex=2
|
|
EquipmentCategoryID=1
|
|
InventoryType=Class'NicePack.NiceDualies'
|
|
PickupMessage="You found another 9mm handgun"
|
|
PickupForce="AssaultRiflePickup"
|
|
StaticMesh=StaticMesh'KF_pickups_Trip.pistol.double9mm_pickup'
|
|
CollisionHeight=5.000000
|
|
}
|