131 lines
3.1 KiB
Ucode
131 lines
3.1 KiB
Ucode
class RPK47MachineGun extends KFWeapon
|
|
config(user);
|
|
|
|
|
|
// Use alt fire to switch fire modes
|
|
simulated function AltFire(float F)
|
|
{
|
|
DoToggle();
|
|
}
|
|
|
|
exec function SwitchModes()
|
|
{
|
|
DoToggle();
|
|
}
|
|
|
|
function bool RecommendRangedAttack()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
//TODO: LONG ranged?
|
|
function bool RecommendLongRangedAttack()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
function float SuggestAttackStyle()
|
|
{
|
|
return -1.0;
|
|
}
|
|
|
|
|
|
function float GetAIRating()
|
|
{
|
|
local Bot B;
|
|
|
|
B = Bot(Instigator.Controller);
|
|
if ( (B == None) || (B.Enemy == None) )
|
|
return AIRating;
|
|
|
|
return AIRating;
|
|
}
|
|
|
|
function byte BestMode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
simulated function SetZoomBlendColor(Canvas c)
|
|
{
|
|
local Byte val;
|
|
local Color clr;
|
|
local Color fog;
|
|
|
|
clr.R = 255;
|
|
clr.G = 255;
|
|
clr.B = 255;
|
|
clr.A = 255;
|
|
|
|
if( Instigator.Region.Zone.bDistanceFog )
|
|
{
|
|
fog = Instigator.Region.Zone.DistanceFogColor;
|
|
val = 0;
|
|
val = Max( val, fog.R);
|
|
val = Max( val, fog.G);
|
|
val = Max( val, fog.B);
|
|
if( val > 128 )
|
|
{
|
|
val -= 128;
|
|
clr.R -= val;
|
|
clr.G -= val;
|
|
clr.B -= val;
|
|
}
|
|
}
|
|
c.DrawColor = clr;
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
MagCapacity=40
|
|
ReloadRate=3.000000
|
|
ReloadAnim="Reload"
|
|
ReloadAnimRate=1.000000
|
|
WeaponReloadAnim="Reload_AK47"
|
|
Weight=8.000000
|
|
bHasAimingMode=True
|
|
IdleAimAnim="Iron_Idle"
|
|
StandardDisplayFOV=65.000000
|
|
bModeZeroCanDryFire=True
|
|
TraderInfoTexture=Texture'HMG_T.RPK.RPK47_Trader'
|
|
bIsTier2Weapon=True
|
|
MeshRef="HMG_A.RPK47_mesh"
|
|
SkinRefs(0)="HMG_T.RPK.RPK_0"
|
|
SkinRefs(1)="KF_Weapons3_Trip_T.hands.Priest_Hands_1st_P"
|
|
SkinRefs(2)="HMG_T.RPK.RPK_1"
|
|
SkinRefs(3)="HMG_T.RPK.RPK_2"
|
|
SkinRefs(4)="HMG_T.RPK.RPK_3"
|
|
SkinRefs(5)="HMG_T.RPK.RPK_4"
|
|
SkinRefs(6)="HMG_T.RPK.RPK_5"
|
|
SkinRefs(7)="HMG_T.RPK.RPK_6"
|
|
SkinRefs(8)="HMG_T.RPK.RPK_7"
|
|
SkinRefs(9)="KF_Weapons2_Trip_T.Special.Aimpoint_sight_shdr"
|
|
SelectSoundRef="HMG_S.RPK.rpk47_select"
|
|
HudImageRef="HMG_T.RPK.RPK47_Unselected"
|
|
SelectedHudImageRef="HMG_T.RPK.RPK47_selected"
|
|
PlayerIronSightFOV=65.000000
|
|
ZoomedDisplayFOV=32.000000
|
|
FireModeClass(0)=Class'ScrnHMG.RPK47Fire'
|
|
FireModeClass(1)=Class'KFMod.NoFire'
|
|
PutDownAnim="PutDown"
|
|
SelectForce="SwitchToAssaultRifle"
|
|
AIRating=0.550000
|
|
CurrentRating=0.550000
|
|
bShowChargingBar=True
|
|
Description="The RPK (Russian: Ruchnoy Pulemyot Kalashnikova, Kalashnikov hand-held machine gun) is a 7.62x39mm light machine gun of Soviet design, developed by Mikhail Kalashnikov in the late 1950s, parallel with the AKM assault rifle."
|
|
EffectOffset=(X=100.000000,Y=25.000000,Z=-10.000000)
|
|
DisplayFOV=65.000000
|
|
Priority=125
|
|
CustomCrosshair=11
|
|
CustomCrossHairTextureName="Crosshairs.HUD.Crosshair_Cross5"
|
|
InventoryGroup=3
|
|
GroupOffset=7
|
|
PickupClass=Class'ScrnHMG.RPK47Pickup'
|
|
PlayerViewOffset=(X=8.000000,Y=8.000000,Z=-3.000000)
|
|
BobDamping=4.000000
|
|
AttachmentClass=Class'ScrnHMG.RPK47Attachment'
|
|
IconCoords=(X1=245,Y1=39,X2=329,Y2=79)
|
|
ItemName="RPK-47 SE"
|
|
TransientSoundVolume=1.250000
|
|
}
|