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 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 |
class LAW extends KFWeaponShotgun; // Killing Floor's Light Anti Tank Weapon. // This is probably about as badass as things get.... simulated event WeaponTick(float dt) { if(AmmoAmount(0) == 0) MagAmmoRemaining = 0; super.Weapontick(dt); } /** * Handles all the functionality for zooming in including * setting the parameters for the weapon, pawn, and playercontroller * * @param bAnimateTransition whether or not to animate this zoom transition */ simulated function ZoomIn(bool bAnimateTransition) { if( Level.TimeSeconds < FireMode[0].NextFireTime ) { return; } super.ZoomIn(bAnimateTransition); if( bAnimateTransition ) { if( bZoomOutInterrupted ) { PlayAnim('Raise',1.0,0.1); } else { PlayAnim('Raise',1.0,0.1); } } } /** * Handles all the functionality for zooming out including * setting the parameters for the weapon, pawn, and playercontroller * * @param bAnimateTransition whether or not to animate this zoom transition */ simulated function ZoomOut(bool bAnimateTransition) { super.ZoomOut(false); if( bAnimateTransition ) { TweenAnim(IdleAnim,FastZoomOutTime); } } // Overridden to reset achievement simulated function bool StartFire(int Mode) { if ( super.StartFire(Mode) ) { if ( Instigator != none && PlayerController(Instigator.Controller) != none && KFSteamStatsAndAchievements(PlayerController(Instigator.Controller).SteamStatsAndAchievements) != none ) { KFSteamStatsAndAchievements(PlayerController(Instigator.Controller).SteamStatsAndAchievements).OneShotLawOrHarpoon(); } return true; } return false; } defaultproperties { ForceZoomOutOnFireTime=0.100000 MagCapacity=1 ReloadRate=3.000000 WeaponReloadAnim="Reload_LAW" MinimumFireRange=300 Weight=13.000000 bHasAimingMode=True IdleAimAnim="AimIdle" StandardDisplayFOV=75.000000 SleeveNum=3 TraderInfoTexture=Texture'KillingFloorHUD.Trader_Weapon_Images.Trader_Law' bIsTier3Weapon=True MeshRef="KF_Weapons_Trip.LAW_Trip" SkinRefs(0)="KF_Weapons_Trip_T.Supers.law_cmb" SkinRefs(1)="KF_Weapons_Trip_T.Supers.law_reddot_shdr" SkinRefs(2)="KF_Weapons_Trip_T.Supers.rocket_cmb" SelectSoundRef="KF_LAWSnd.LAW_Select" HudImageRef="KillingFloorHUD.WeaponSelect.LAW_unselected" SelectedHudImageRef="KillingFloorHUD.WeaponSelect.LAW" PlayerIronSightFOV=90.000000 ZoomTime=0.260000 ZoomedDisplayFOV=65.000000 FireModeClass(0)=Class'KFMod.LAWFire' FireModeClass(1)=Class'KFMod.NoFire' PutDownAnim="PutDown" SelectForce="SwitchToRocketLauncher" AIRating=1.500000 CurrentRating=1.500000 bSniping=False Description="The Light Anti Tank Weapon is, as its name suggests, a military grade heavy weapons platform designed to disable or outright destroy armored vehicles." EffectOffset=(X=50.000000,Y=1.000000,Z=10.000000) DisplayFOV=75.000000 Priority=195 HudColor=(G=0) InventoryGroup=4 GroupOffset=9 PickupClass=Class'KFMod.LAWPickup' PlayerViewOffset=(X=30.000000,Y=30.000000) BobDamping=7.000000 AttachmentClass=Class'KFMod.LAWAttachment' IconCoords=(X1=429,Y1=212,X2=508,Y2=251) ItemName="L.A.W" AmbientGlow=2 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |