Overview | Package | Class | Source | Class tree | Glossary | Deus Ex 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 |
//============================================================================= // WeaponModAccuracy // // Increases Weapon Accuracy //============================================================================= class WeaponModAccuracy extends WeaponMod; // ---------------------------------------------------------------------- // ApplyMod() // ---------------------------------------------------------------------- function ApplyMod(DeusExWeapon weapon) { if (weapon != None) { if (weapon.BaseAccuracy == 0.0) weapon.BaseAccuracy -= WeaponModifier; else weapon.BaseAccuracy -= (weapon.Default.BaseAccuracy * WeaponModifier); weapon.ModBaseAccuracy += WeaponModifier; } } // ---------------------------------------------------------------------- // CanUpgradeWeapon() // ---------------------------------------------------------------------- simulated function bool CanUpgradeWeapon(DeusExWeapon weapon) { if (weapon != None) return (weapon.bCanHaveModBaseAccuracy && !weapon.HasMaxAccuracyMod()); else return False; } // ---------------------------------------------------------------------- // ---------------------------------------------------------------------- defaultproperties { WeaponModifier=0.100000 ItemName="Weapon Modification (Accuracy)" Icon=Texture'DeusExUI.Icons.BeltIconWeaponModAccuracy' largeIcon=Texture'DeusExUI.Icons.LargeIconWeaponModAccuracy' Description="When clamped to the frame of most projectile weapons, a harmonic balancer will dampen the vertical motion produced by firing a projectile, resulting in increased accuracy.|n|n<UNATCO OPS FILE NOTE SC108-BLUE> Almost any weapon that has a significant amount of vibration can be modified with a balancer; I've even seen it work with the mini-crossbow and a prototype plasma gun. -- Sam Carter <END NOTE>" beltDescription="MOD ACCRY" Skin=Texture'DeusExItems.Skins.WeaponModTex2' } |
Overview | Package | Class | Source | Class tree | Glossary | Deus Ex UnrealScript Documentation |
previous class next class | frames no frames |