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 |
//============================================================================= // FlameChucker //============================================================================= class FlameThrower extends KFWeapon; simulated function bool StartFire(int Mode) { if( Mode == 1 ) return super.StartFire(Mode); if( !super.StartFire(Mode) ) // returns false when mag is empty return false; if( AmmoAmount(0) <= 0 ) { return false; } AnimStopLooping(); if( !FireMode[Mode].IsInState('FireLoop') && (AmmoAmount(0) > 0) ) { FireMode[Mode].StartFiring(); return true; } else { return false; } return true; } simulated function AnimEnd(int channel) { if(!FireMode[0].IsInState('FireLoop')) { Super.AnimEnd(channel); } } // Cool Nozzle Illumination (WARNING - Artist at play) :P simulated function WeaponTick(float dt) { Super.WeaponTick(dt); // if(FireMode[0].bIsFiring) // Skins[4] = Shader 'KillingFloorWeapons.FlameThrower.FTFireShader'; // else // Skins[4] = default.Skins[4]; } function bool RecommendRangedAttack() { return true; } function float SuggestAttackStyle() { return -1.0; } //TODO: LONG ranged? function bool RecommendLongRangedAttack() { return true; } defaultproperties { MagCapacity=100 ReloadRate=4.140000 ReloadAnim="Reload" ReloadAnimRate=1.000000 WeaponReloadAnim="Reload_Flamethrower" MinimumFireRange=300 bSteadyAim=True bHasAimingMode=True IdleAimAnim="Idle" QuickPutDownTime=0.500000 StandardDisplayFOV=70.000000 bModeZeroCanDryFire=True TraderInfoTexture=Texture'KillingFloorHUD.Trader_Weapon_Images.Trader_Flame_Thrower' bIsTier2Weapon=True MeshRef="KF_Weapons_Trip.Flamethrower_Trip" SkinRefs(0)="KF_Weapons_Trip_T.Supers.flamethrower_cmb" SkinRefs(2)="KillingFloorWeapons.Welder.FBFlameOrange" HudImageRef="KillingFloorHUD.WeaponSelect.FlameThrower_unselected" SelectedHudImageRef="KillingFloorHUD.WeaponSelect.FlameThrower" ZoomInRotation=(Pitch=-1000,Roll=1500) ZoomedDisplayFOV=70.000000 FireModeClass(0)=Class'KFMod.FlameBurstFire' FireModeClass(1)=Class'KFMod.NoFire' PutDownAnim="PutDown" PutDownAnimRate=1.000000 PutDownTime=1.000000 AIRating=0.700000 CurrentRating=0.700000 Description="A deadly experimental weapon designed by Horzine industries. It can fire streams of burning liquid which ignite on contact." EffectOffset=(X=100.000000,Y=25.000000,Z=-10.000000) DisplayFOV=70.000000 Priority=145 InventoryGroup=3 GroupOffset=8 PickupClass=Class'KFMod.FlameThrowerPickup' PlayerViewOffset=(X=5.000000,Y=7.000000,Z=-8.000000) BobDamping=6.000000 AttachmentClass=Class'KFMod.FlameThrowerAttachment' IconCoords=(X1=245,Y1=39,X2=329,Y2=79) ItemName="FlameThrower" DrawScale=0.900000 TransientSoundVolume=1.250000 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |